Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding action handler register for esp_zigbee_host example (TZ-1518) #552

Open
czagaadam opened this issue Jan 30, 2025 · 1 comment
Open

Comments

@czagaadam
Copy link

czagaadam commented Jan 30, 2025

Hi All,

I'm developing a zigbee device (ESP32S3 host + ESP32H2 zcp) with I/O control functionality.
I started from esp_zigbee_host example on S3.
The H2 is running the ncp example without midification.
I think this example represents how to handle a button:
When GPIO_INPUT_IO_TOGGLE_SWITCH pin is toggled a zb command is sent.

Image

My question is: how to implement the backward situation
So when a light on/off command is received how to handle it with the S3 host program, I just want to toggle an output.
I've found this example: HA_on_off_light
In this example the handle registered by the esp_zb_core_action_handler_register
but this function is not available in S3 host device example and the signature is missing from esp_zigbee_core

Image

HA_on_off_light example:
Image

Maybe the issue is this HA_on_off_light is for H2 but I don't know.

Thanks for supporting me!

@github-actions github-actions bot changed the title Adding action handler register for esp_zigbee_host example Adding action handler register for esp_zigbee_host example (TZ-1518) Jan 30, 2025
@chshu
Copy link
Collaborator

chshu commented Feb 8, 2025

@czagaadam With ESP32-S3 + ESP32-H2 setup, we recommend the Gateway+RCP mode, you can check the esp_zigbee_gateway example.

The Host + NCP mode is used for 3rd party host SoC, which introduces complex communication logic between Host SoC and 15.4 SoC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants