Node Red Events with no state change

Hi

I am testing a Xiaomi button.
According to this: https://home-assistant.io/components/binary_sensor.xiaomi_aqara/
Some of the buttons (eg: WXKG02LM) will always have an off state

Question: Which Node Red node do I use? “Events:state changed” doesnt work because no state has changed when I click a button.

1 Like

Have you tried the all events node combined with a switch as a filter?

Edit: I’ve never actually used that node. If it doesn’t send individual messages, then you should be able to do a regex on the message to see if the event you are looking for was triggered.

I have, but that feels cumbersome.

Assume then that you cannot trigger on events that have no state change… which is disappointing.