Hi all
I have a sonoff zigbee button and trying to sniff out the events when the button is pressed. In particular, looking to get the device_ieee id. But when I look at my events, it’s not appearing. Only occasionally does zha_event actually show up as an available events, but even then, when I start listening, nothing is listed while I push the button and the button is definitely doing its thing.
Any ideas? Does the Sonoff have different events to listen for?
With my sonoff button after pairing via ZHA and listening for ‘zha_event’ as you’ve described I see ‘off’ events for a short push and ‘toggle’ events with a longer press e.g
{
“event_type”: “zha_event”,
“data”: {
“device_ieee”: “xxxx”,
“unique_id”: “xxxx”,
“endpoint_id”: 1,
“cluster_id”: 6,
“command”: “off”,
“args”: []
},
“origin”: “LOCAL”,
“time_fired”: “2020-10-27T15:33:53.184667+00:00”,
“context”: {
“id”: “d1963712186911eb95d1eddc6adb31d4”,
“parent_id”: null,
“user_id”: null
}
}
Thanks @debenvalley,
Could you please give me more info on “pairing via ZHA”? How is that done? Maybe I’ve done this part wrong as I just connected using the AlexIT addon.
I use the AlexIT Add-On for my Sonoff Wifi devices too but the Sonoff button is Zigbee so you’ll need a Zigbee controller (I use a ConBee) along with the ZHA Integration in order to use it.