freeathome icon indicating copy to clipboard operation
freeathome copied to clipboard

Fix clicking relays when turning off lights that are already off

Open Tho85 opened this issue 1 year ago • 1 comments

I have a scene that turns off all lights at night. I noticed that the in-wall relays click when I turn on this scene, even if the light has already been off. This will probably reduce the lifetime of the relays.

I fixed this by respecting the state monitored by the component, and only sending a turn on/off signal if the device is not yet on/off. Working good so far over the last months.

Tho85 avatar Aug 28 '23 19:08 Tho85