I have living room sealing ambilights with two segments. I want to control them independently. And it would be nice to have relay switch off when both segments are off and relay on when one, or both segments are on.
I managed to figure out how to control segment with switch. And I can do it with two key wall mount regular switch. But relay stays on, when both segments are off. And if I switch off leds in app, then segmens are not reacting to switch.
Any ideas how to make it work with API?