Knowing the device_ieee value is there a way to configure the events so that they can be picked by the UI or even modify the device yaml to define them there (that would be best IMHO)
For a HA beginner like myself it is not 100% clear where this automation definition would go, sorry.
Tibu, thank you for your solution , it is the right one for me.
I’m using SONOFF SNZB-01 with Conbee II.
I’m listening for the zha_event in automation:
toggle event (single click) toggle the wardrobe light
double click toggle the wardrobe light and bedroom light
Crucial, for the beginner as me, your suggestion on how build it using device_ieee
I just received a sonoff button but I can’t get it connected via the solutions above.
I tried:
Connecting it trough ZHA (Tasmotized ZBBridge). Connects perfectly but obviously only as a battery entitiy.
Listening to zha_event while clicking. Nothing. It only changes state when it goes offline when I reset the button.
Tried to add it trough EventSensor but no luck either.
As the zha_event doesn’t change, I guess the button doesn’t send any signal. Should the LED on the button blink when you press the button? Mine doesn’t do anything.
I’ve been investing waaaaaaay too much time in setting up a simple button here so I hope someone might have a solution for this issue!
I am having this issue as well. I got it paired okay but when I sub to zha_event on the dev tool page and press the button, no messages are transpiring
Hopefully this will help you guys. I managed to get it working by creating an automation and then taking a look at the code created by the automation.
If you’re not able to do that then here’s what you can do:
Go to the Zigbee switch you’ve paired to Home Assistant. Select the 3 dots next to Reconfigure Device, then select download diagnostics. In that file you’ll find a section that says “device_reg_id”, that’s what you need to fill in below like in my 3 examples.
I’m also having trouble with this. I understand the SN-ZB01 is an event, not an entity. But how do you get it paired in the first place so that HA can receive its events? I’m using Conbee II with ZHA. I tried putting it into pairing mode by holding the rest button for 5 seconds, then the red light flashes 3 times, but the ZHA “searching for Zigbee devices” page never finds it. I’ve tried holding the reset button continuously for a minute too.
I tried listening for zha_event on the developer tools page but when I press this button nothing happens — presumably because it hasn’t been paired yet.
I tried again on a more recent version of Home Assistant, and this time ZHA pairing worked fine. I just had to hold the reset button for 10 seconds with a paperclip.