I have a basic working custom sentnce and intent to get the area of the voice satellite I’m speaking to:
language: "en"
intents:
GetSatelliteArea:
data:
- sentences:
- "what room is this"
requires_context:
area:
slot: true
GetSatelliteArea:
speech:
text: "This is the {{ area_name(area) }}"
I also have some code that finds the correct climate device based on the area:
{{
expand(area_entities(area))
| selectattr('domain', 'eq', 'climate')
| map(attribute='entity_id')
| list
}}
I’m assuming I need a script/automation that can take the area
as a variable and then trigger that from the intent script but I’m struggling to figure out how to put these together. Ultimately I want to be able to say “cool” or “heat” and it change the HVAC mode accordingly for the device in the room which the voice satellite is in.
Any ideas?