Sonoff mini, node-red and scenes confusion

This is a bit of a sanity check really.

I have recently installed a Sonoff mini in a wall switch to control the ceiling pendant light. I also have two other lights in the room. When I switch on the ceiling light at the wall switch, I want all lights to turn on or off. This is fine until I come to call a scene, or control the lights from a Hue switch that is by the bedside.
As the ceiling light is set to turn of all lights if it is switched off at the wall, It is difficult to set a scene where the ceiling light is off but the other two lights are on because as as soon as the ceiling light turns off, the other lights want to turn off too. The same applies if I activite a scene from the HA app.

I have had to create a traffic light node that stops the signal from the wall switch from turning off all lights.
Hopefully the image of my nodes makes this make sense.
I do have it working as it should, but I am just sense checking that I have not overly complicated this??

Nothing stands out as a problem. It may be worth mentioning the traffic node is extremely old and not maintained. It used to be part of the core NR nodes but was removed for that reason.

Not that it is a security risk but because it may be broken by a newer version of NR in the future. I believe there are replacements available that are maintained. FWIW I use it and currently have 11 deployed.

1 Like