Home Assistant - 2nd Gen Switch RGB working!

Anybody using node-red might find this useful for decoding scenes. I got inspired by the notification node @pdong made. This one is the flip side, for handling scene activations.
It just takes the input msg from home assistant (or anything that has the same scene_id and scene_data) values) and adds two new properties (button and click_count). This way it’s easier to build logic on button and click_count instead of scene codes.

2 Likes