hi all,
I have bought and setup a four button zigbee scene switch that i’d like to use to trigger some automations.
The switch is showing in HA as a device and the logbook records an entry every time i press (or double press/hold) a button. The logbook entries are " TS0044 27 fired event ‘4002’ "
I can see the automation trigger isn’t device type, and probably needs to be event, but i’m not sure of where to start with the YAML.
once the above was identified, using the data makes a really simple automation trigger.
the automation trigger type is ‘event’ and the event type 'deconz_event'.
the event data field has:
unique_id: b4:e3:f9:ff:fe:15:12:f9
event: 4002
obviously the unique_id needs to match the unique_id for your switch that you’ll get from the event trace, and the event needs to match to the button press type you want (single press, double press, hold press)
that’s the trigger sorted for the automation which you can then programme as you would normally, enjoy!
In the automation gui add a device trigger. Then choose the device. Below that the available triggers will appear, eg "button_4_double" action. Then choose conditions and actions.