-
Couldn't load subscription status.
- Fork 7.7k
Decouple relay and multiple press action for zigbee light switch? #11743
-
Hi, I’m wondering if these features are supported?
Basically I need to detach a relay from the button and bind the switch to a zigbee light.
This feature is pretty common with aqara switches.
Is there some documentation/example I could refer to get this working?
Beta Was this translation helpful? Give feedback.
All reactions
Hi @ferbulous,
Yes, these features are supported!
The Arduino-ESP32 Zigbee library does support the functionality you're looking for - binding switches to Zigbee lights and effectively "detaching" the relay from the button. This is exactly what smart switches like Aqara do.
Key Features Available:
-
Switch-to-Light Binding
The library provides comprehensive binding capabilities:- Automatic binding: Switches can automatically discover and bind to lights
- Manual binding: You can manually configure which lights the switch controls
- Multiple binding: One switch can control multiple lights simultaneously
-
Manual Binding Mode (Key for your use case)
The library includes a setManualBinding(true)...
Replies: 1 comment
-
Hi @ferbulous,
Yes, these features are supported!
The Arduino-ESP32 Zigbee library does support the functionality you're looking for - binding switches to Zigbee lights and effectively "detaching" the relay from the button. This is exactly what smart switches like Aqara do.
Key Features Available:
-
Switch-to-Light Binding
The library provides comprehensive binding capabilities:- Automatic binding: Switches can automatically discover and bind to lights
- Manual binding: You can manually configure which lights the switch controls
- Multiple binding: One switch can control multiple lights simultaneously
-
Manual Binding Mode (Key for your use case)
The library includes a setManualBinding(true) function that allows you to:- Disable automatic binding
- Manually configure which lights the switch controls
- Store light configurations in NVS (Non-Volatile Storage) so they persist after power loss
Example you can look into is Zigbee_On_Off_MultiSwitch
This example demonstrates exactly what you need:
- Controls up to 3 different lights independently
- Uses manual binding mode
- Stores light configurations in NVS
- Provides serial commands to configure lights by endpoint and IEEE address
Beta Was this translation helpful? Give feedback.