I’m being a bit of a nit pick when it comes to integrating Alexa and home assistant. I use emulated hue for all my lights and it works great. I have AppDaemon handle all my automations and its lightning fast. I like that. So… on to my issue.
In my current setup, I create groups in the Alexa app. I can use phrases to turn the whole group on or off. The unique part about this setup that I love is the following scenario:
I have 4 lights in a group. 2 lights are currently on. With Alexa, I can ask her to turn on the group and the remaining lights will turn on.
This is the same for turning off lights as well. 4 lights, 2 lights are on, 2 are off. I can tell Alexa to turn the lights off.
This is all great, but Alexa can be pretty slow if there is many lights. AppDaemon with Home assistant turning on/off devices is so much faster. So I’d like to emulate this functionality using AppDaemon or a custom component.
The issue I am running into is based on 2 limitations:
In home assistant, if a device is on, you cannot tell it to turn on again. HA will simply ignore the service call. (at least this is what appears to happen)
In Alexa, turn on/ turn off phrasing can only be tied to a single control. You can’t link "Turn on X’ to Script A and “Turn off X” to script B. This would be required if I wanted to fire a turn on script and a turn off script in HA.
So my dilemma is I need a device in HA that is agnostic of a state but acts like a input_boolean. So I can call turn_on/turn_off regardless of it’s state.
I’ve linked input_booleans to a list of entities, but no matter what logic I use i get into one of the following scenarios:
I have 5 lights, 4 are on. I want to turn them all on, but the input_booleans state is already on. Or vice versa with the devices being off.
Does anyone have ideas on skirting around this issue? maybe some other control? maybe I can make a new component for HA (I don’t really know the API yet).