Shelly Button 1 in Node Red

Hello together,

does someone know how I can implement Shelly Button 1 in Node Red.

Currently it is only working as automation.

Thanks

Use the events state node:

It will give you all events of zha, so you need to filter it on the device type with switch node or function node

1 Like

I did mine by enabling MQTT on the device and reading the topic and payload. Debug was as follows

09/05/2022, 21:16:18node: b620e40f1ab1abf8
shellies/shellybutton1-XXXXXXXXXXXX/input_event/0 : msg.payload : string[28]
“{“event”:“S”,“event_cnt”:70}”

.


It is very easy to do it with just HA Shelly integration alone. Just check my example below.
Use EVENTS:ALL and SWITCH nodes.