This is an experimental feature, ongoing discussion can be found here: https://github.com/Koenkk/zigbee2mqtt/issues/782
Zigbee has support for binding which makes it possible that devices can directly control each other without the intervention of zigbee2mqtt or any home automation software.
When to use this
A use case for this is e.g. the TRADFRI wireless dimmer. Binding the dimmer directly to a bulb or group has the following advantages:
- Smoothness; this will greatly improve the dimming feedback as the dimmer directly dims the bulb and thus does not have to make the MQTT/home automation software roundtrip.
- It will work even when home automation software, zigbee2mqtt or the coordinator is down.
Binding can be configured using the following topics:
TARGET_DEVICE_FRIENDLY_NAMEwill bind the source device to the target device. In the above example, the TRADFRI wireless dimmer would be the source device and the bulb the target device.
TARGET_DEVICE_FRIENDLY_NAMEwill unbind the devices.
Binding specific endpoint
This is not applicable for most users
By default, the first endpoint is taken. In case your device has multiple endpoints, e.g.
right. The following can be done to specifcy an endpoint:
- Source: append the endpoint friendly name to the topic, e.g.
- Target: append the endpoint friendly name to the payload, e.g.
Not all devices support this, it basically comes down to the Zigbee implementation of the device itself. Below is a list of results.
IKEA TRADRI remote control (E1524)
This device does not support binding (limitation of the device). A workaround is to sniff the group ID where the remote is sending it’s commands to and add bulbs to the same group.
- Pair the device to Zigbee2mqtt.
- Setup your Zigbee traffic sniffer by following How to sniff Zigbee traffic.
- Press a button on the device, this will produce the following message in Wireshark:
- Retrieve the group from the message, which is
0xeb12in the above example.
- Convert this hexadecimal number to decimal using Hexadecimal to Decimal Converter. E.g.
- Add this group to
configuration.yamland add your device (e.g.) bulb to this group. (documentation)