multiple endpoint #12064
-
|
Hi, I'm using an ESP32-C6 for managing smart home devices. As a starting point, I'm experimenting with the Zigbee_On_Off_Light example code. My goal is to use a single ESP32 to control multiple water pumps for plant irrigation. Specifically, I want to control 5 GPIO pins, each connected to a separate relay. I have a few questions: Can the Zigbee_On_Off_Light example be adapted to handle multiple endpoints? What would be the best approach to map different Zigbee commands to separate GPIOs/relays? Are there any limitations I should be aware of when controlling multiple relays from one ESP32 using this approach? Any guidance or example code would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@P-R-O-C-H-Y - PTAL. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @vince159, Its totally possible to have multiple endpoints to control the relays. Instead of using the In the screenshot you can see 2 Binary INPUTS (Sensors) and 2 Binary OUTPUTS (Controls) |
Beta Was this translation helpful? Give feedback.

Hello @vince159, Its totally possible to have multiple endpoints to control the relays. Instead of using the
Zigbee_On_Off_Lightexample, go with the Zigbee_Binary_Input_Output. To quickly explain, the BINARY INPUT is for feedback or a status of relay, which can be set only from the device itself (esp32), but the BINARY OUTPUT gives you the option to control the relay from the HomeAssistant or the device itself, like the light switch.In the screenshot you can see 2 Binary INPUTS (Sensors) and 2 Binary OUTPUTS (Controls)