I have a set of lights grouped together. This grouping generates a switch for the group which is:
off when all the lights are off
on when any of the lights is on
Is it possible to reverse this logic so that the group switch is
off when any the lights is off
on when all the lights are on
The problem I want to solve (or at least change) is that I have a RF433 button which will toggle the state of that group switch. I would like to put a preference on “switch all the lights on, even when some are already on” rather than the default “switch off the lights off if any of them is on”.
Right now I have a workaround in AppDaemon where I keep the state of the button and manage the lights one by one (all of them change their state together, but they are called one by one and not though their group switch). reversing the logic of the switch would simplify that setup.
Would you know how to combine several types of services (I was lucky to just have lights, so all went into service: switch.turn_on and service: switch.turn_off but I do not know how to handle, say, two lights and one radio (they have their own service)