I am trying to expose the area’s temperature and humidity to voice assistant since Home Assistant does not do that. But I think I am getting myself in a chicken/egg situation.
The idea is:
Ask voice assistant: “What is the temperature in the Living Room”
Voice Assistant find the sensor based on a template:
Voice assistant response with: “The temperature in the living room is $$ degrees”
The issue is that it feels to me a 2 step process, find out the room from the query, get the temperature/humidity/etc from the sensor and then compose the message. Has anyone attempted something similar?
@TelmoX But for - getting the llm to (insert thing here) you need more than the template, you need to write a script or an intent script like jack said.
Think tools.how would yih build a tool (script) to return that data.
Your case: I need a thing I use a tool to get a thing. The tool is the intent script or script. Inside the script you’ll use your template to get the data and return it as the response
It is getting an undefined when doing the last map(attribute='state') the previous part of the selector works and select the sensor ['sensor.living_room_temperature'] but trying to select the state returns an undefined
Do I need to fetch the first element because the return is an array?
I was also asking because I would like to learn about the optimization of the queries so in the future I don’t have to ask, and I may be able to help people in similar situation.