Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

multiple endpoint #12064

Answered by P-R-O-C-H-Y
vince159 asked this question in Q&A
Discussion options

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.
Thanks!

You must be logged in to vote

Hello @vince159, Its totally possible to have multiple endpoints to control the relays. Instead of using the Zigbee_On_Off_Light example, 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)

Replies: 2 comments

Comment options

@P-R-O-C-H-Y - PTAL.

You must be logged in to vote
0 replies
Comment options

Hello @vince159, Its totally possible to have multiple endpoints to control the relays. Instead of using the Zigbee_On_Off_Light example, 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)
image

You must be logged in to vote
0 replies
Answer selected by P-R-O-C-H-Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Area: Zigbee Issues and Feature Request about Zigbee

AltStyle によって変換されたページ (->オリジナル) /