I have no idea how to apply this in Node Red. I have a Event State node listening for “zha_event”. I place a debug node behind it and press the button and get this:
Connect the Event State to a switch node to filter which button the event originated from set the property to payload.event.device_ieee then add a rule for your device_ieee.
if your device has different click types you will need a second switch for payload.event.command.
Would be ever so kind as to give some more details,
I have a Samsung Smartthings button (zigbee) that I am trying to setup in Node Red but cannot for the life of me figure it out.
I managed to get it to recognize the zha_event but I am stuck on what to do next to make a switch that will toggle a light on/off
This is just catching all zha_events - if I want to expand in the future, this makes it easy. I then have a switch node to expand when I have additional switches to add which uses the IEEE serial number from the device that sent the zha_event event.
Do you have any troubles with NR not receiving ZHA events after a few days? I have two HA instances running, and my backup one that lives on a Rpi4 stops showing ZHA events in NR but they are in fact being received in HA