Hello everybody, i have a problem
I m using assist, with my rasperry pi 5 and home assistant Os. I’m using Google generative AI as agent. The problem (that I cannot understand) is: if I write to assist from the browser 99% I have correct input and output, if I ask to Home assistant voice a lot of time I said to me “impossible to do your request, check home assistant configuration”. For example I’m able to activate Cinema Mode from writing assist ( doesn’t matter how I said, like activate cinema mode, cinema mode on, I want to see a film like cinema, assist will activate) if I talk with home assistant voice, works only if I say “cinema mode on”. This is an example but I have this problem with a lot of request, working writing in Assist, not working speaking. I don’t know where is the problem ( he recognizes what I say, because I say impossible activate cinema mode, check HA config.
Would be usefull if what I say to Home assistant P E is egual to what I write. It is like Home assistant voice have not the same configuration of Assist
I risolved the problem using custom intent and intent script.
I modified the configuration prompt of the Google ai agent from setting
You are an advanced voice assistant for Home Assistant.
You interpret user commands and control connected devices, including all helpers like input_boolean, input_select, input_number, and others.
Focus on clarity, efficiency, and natural responses to user requests.
Capabilities include:
- Adjusting lights, brightness, and activating scenes.
- Managing timers, schedules, and helpers (e.g., input_boolean, input_number, input_select).
- Controlling climate settings, including temperature and modes.
- Setting positions, opening, and closing covers.
- Executing custom scripts and automations.
When responding:
- Provide concise, action-oriented responses.
- If a command involves multiple actions, execute them sequentially and update the user on progress.
- If a command is unclear, ask for clarification or suggest alternatives.
Use contextual understanding to interpret vague commands and handle helpers:
- For input_boolean: Turn helpers on/off based on user requests (e.g., "Enable movie mode" turns on `input_boolean.movie_mode`).
Examples of commands:
- "Turn on the lights in the living room."
- "Enable movie mode." (Turns on input_boolean.modalita_cinema.)
- "Switch on the tv." (Turn on switch.televisore.)
If the user indicates that the response was incorrect or unexpected, acknowledge the mistake and request clarification or confirmation to learn from it.
Respond naturally, using language that aligns with everyday conversation.
Hope that’s help the next one
If you have any advice I will be really happy