open-zigbee / zigbee-bridge

An open source ZigBee gateway solution with node.js.
https://open-zigbee.github.io/zigbee-bridge
26 stars 4 forks source link

Ikea Tradfri Button #8

Open sdirkwinkel opened 6 years ago

sdirkwinkel commented 6 years ago

The Ikea Tradfri button usually enters a zigbee group with the lamps it's controlling. I'd like to use the button for other purposes with the zigbee2mqtt project.

In https://github.com/Koenkk/zigbee2mqtt/issues/102 adding an empty group with just the button and controller was proposed, but no way to implement this was found. How can this be accomplished using zigbee-bridge (zigbee-shepard)? I've found the bind method on endpoints but nothing similar to add a controller. Do i have to use a zApp with mount()?

zephyrus commented 6 years ago

Should be possible to be accomplished by https://open-zigbee.github.io/zigbee-bridge/API.html#bindcid-dsteporgrpid-callback, but need verification with real devices. These scenarios are not tested yet.