Currently, when telling a voice assistant to “turn on the ”, it turns on ALL lights in that area. The same way a device now has a “main entity”, could we not give an area “main devices”.
Let me specify my kitchen lights are the kitchen ceiling lights, but it doesn’t turn on the cabinet or mood lighting unless specifically asked. Right now, they either need to go in a different room or be removed from voice entirely.
I came on here to request exactly the same thing - I’d like to be able to do this as I have some accent lights in a room that I don’t want to be turned on/off by saying “Hey Jarvis, turn the lights on”. At the moment I have to create a new area called, eg, “Living Room (Shadow)" to put the accent lights in so they’re not included. Which is not ideal!
Did you try something with labels ?
not sure it works the way you do it but if you label all your lights with “main” or “accent” label and give the following context to your voice assistant (in the prompt if you use a conversation agent):
“When light is required in an area, only light up the “main” labelled lights of the area”
You can also give this context area per area directly in the voice assistant conversation agent prompt, but that would be far more cumbersome…
Why not make a custom sentence that triggers your own more specific automation? Adding a custom sentence to trigger an automation - Home Assistant
This seems to be the answer to most of the voice assistant-related WTHs I’ve read. Unless you just want the voice assistant to be a glorified remote control, you’re always going to have to add the details of how it should interpret commands in your specific environment.
That’s what the prompt is for, give the context of how it should interpret the commands in your environment. If you do it well, you do it once. But these are token consumed for each command, thus it has to remain balanced…
My preference is always (in HA and elsewhere) to have AI do only the things it can do better or faster than the conventional tools. If you can do it reasonably quickly and easily using conventional automation features that should be the first choice, then use AI only for the stuff the automation can’t do well.
In most of the situations people are complaining about in these WTHs an intent from the voice assistant ought to be the same as pushing a button on the wall. Once the intent is clearly ‘turn on the lights’, that can trigger a conventional automation (the same one you would trigger if the user pressed the button on the wall by the door with a picture of a light bulb on it) that can do the right thing. In a room with multiple lights you wouldn’t just trigger a turnon action from the button - you’d use a scene or something - and you should do the same with the voice intent. If the OP always uses the phrase “turn on the lights” or something very close to it that interpretation can be done using the built-in intent engine and it’s better in every way - faster, more consistent, more cost/energy efficient, not dependent on another service - than using an LLM.
You can have it fall back to using an LLM if the intent is unclear, which is important if there are ‘non expert’ users, multiple languages in use, or other complexities (including more complex expectations - see below). I completely agree that where an LLM is used the prompt should include context to assist with interpretation, but I think that for the simple stuff it should be about helping the LLM identify ‘which button the speaker intended to press’ rather than what to do as a result of that intent.
Of course, in an ‘ideal’ automated home using a voice assistant to do something as mundane as turn on the lights should almost never happen - presence, ambient light level, curtain positions, the state of the TV etc should be controlling the lights 99% of the time. The cases where a voice assistant is really useful in a home where the everyday stuff is properly automated tend to be much more complex than just ‘the equivalent of pushing a button’, and much more likely to need an LLM to populate fields in a complex script, and that’s going to require more context including in the prompt.