Voice PE does not run locally, but Intent is processed correctly in Dev Tools

I am very new to Voice in HA. In the process of testing it and trying to understand how it works, I have noticed a weird issue with (at least) one particular light. When I as it to turn on the lights in the kitchen, it does not try to run that locally, and then eventually fails to even try it in OpenAI, but that’s another issue, I think.

Here’s the trace from the call to Voice Assist:

Or Assist:

However, this same sentence in Assist in Developer Tools seems to work correctly:

Is this happening to anyone else? Can someone explain to me what may be going on?

FWIW, “luz de la cocina” is the entity name, but it is a switch I have changed with a helper to a light. Could this be the problem?

Thanks!

Have you exposed light.luz_de_la_cocina to Assist as well as switch.luz_de_la_cocina? If so, you’ll get an error because two “devices” have the same name (even though there’s only one device in reality).

I think Developer Tools just parses the sentence, it doesn’t try to execute it.

“Error talking to openAI” sounds like HA voice pipeline is not able to connect to openAI.

Error performing tasks gives “could not do that” error or if it see two of same light I expect it try to turn on both or just one.

I generally check individual logs to get to final cause with voice.
TTS log
STT log
esp device log
voice assistant debug
HA log
Each will give individual confirmation of what has or has not occured.

Above is just info, I think openAI has issue according to log you provide.

if command is not locally recognized it will send to AI.
You can test without AI first to ensure local works well them move to test with AI

So it was a combination of both actually. The light was not exposed somehow even though I’ve got everything else expose by default, and also both elements had the same “name”. I’ve changed the name and exposed the light and it is working as expected now.
Thanks so much!