home-assistant / intents

Intents to be used with Home Assistant
https://developers.home-assistant.io/docs/voice/overview/
Creative Commons Attribution 4.0 International
456 stars 519 forks source link

Set default area/location to trigger action #1141

Open duhow opened 1 year ago

duhow commented 1 year ago

Given the "assistant" is set to a default location (eg. bedroom), saying turn on the light without more details, should get the current area location and replace with it.

I'm guessing changes are needed in both the home-assistant/intents parser and the core.

Is this tracked somewhere?

synesthesiam commented 1 year ago

Some pieces for this are already in place. The requires_context portion of an intent can require an area without it being named. A satellite will then pass in a context like { "area": "bedroom"} with its call to conversation/process