#Google AI not changing device brightness
1 messages · Page 1 of 1 (latest)
i'm guessing the dimmable lights are exposed to Assist. have you tried the default conversation agent? does that work?
yes, it does
then i'm guessing the issue is with the prompt for the Gemini integration or how it picks tools to run, but I lack the experience with Gemini to tell you how to fix it. maybe someone else will be able to help
you're using this integration, right? https://www.home-assistant.io/integrations/google_generative_ai_conversation/
yep
is there any way to check the LLM request logs and verify that the context/system prompt contains tooling for setting brightness?
If I tell it to change the brightness, it says that brightness was changed (it wasnt), and when I ask it to what value did it change the brightness, it says that it didn’t receive new information after dimming it
can you please add an issue about it on github?
I’ll try, thank you!
could try asking it what tool it is using
like I'll ask my LLM "What tool did you use and what arguments did you provide it with?"
Here ask it which tool and which args it used
Because definitely it sent something wrong to HA, although using right method HassLightSet (?)
Yeah that's wrong
not necessarily. the brightness needs to be in the 0-100 scale. can you ask for a lower value, like 70?
i'm assuming you have an area called/aliased "Living" and a light entity named/aliased "Light" "Living" in that area
the light itself is called living light and the area is living
it did get the brightness right though, it’s fully on
should i try with another name for the light?
oh it worked
telling it to set to maximum makes it complain about the error again
i think i found what’s wrong now
it tries to go up to 255, but the light only accepts up to 100
yes, which is why i said #1324789180710256781 message
i think at that point it was conflicting with the names too
it should work regardless of whether your light is called "living light"
it seems like hue also created a “living” light group (with just this light), maybe that could be it, i’ll exclude it and check
but who knows exactly what it's trying to make HA do and how it thinks it should work 🤷♂️ i still think the system prompt and integration need to be checked a bit, hence the request to add an issue
i'll add it in a bit, thank you for the help!
as a workaround for now, I added in the template "The brightest value of a light can be 100, assimilate the value given with the scale given.", which works for setting a light's brightness
One last question, I'm new to issues, sorry, in what repo would this fit?