#Use area in Assist debug.
1 messages · Page 1 of 1 (latest)
And, while i am here, where is actual code for default intents in HA repo?
I tried to search HassTurnOn, but found only one usage in __init__.py for intent component, and it's intended only for Cover, Switch, Valve and MediaPlayer...
I have >10 years in Java/Kotlin, but in this project i can't find a shit. 🙂 Looks like to do that, one should be Python dev...
(for the context, i'm trying to fix this: https://github.com/home-assistant/core/issues/122823)
Should i start with https://github.com/home-assistant/hassil instead?
Or this: https://github.com/home-assistant/intents ?
Or is it complex thing, that should be set up in several repos?
I'm curious if it's intentional, that, e.g., error sentences are held in intents repo, but tested in hass repo...
Oh damn, looks like it's intents repo, and there's 61 PR requests awaiting already...
Alright, i ran tests on intents repo, trying to reproduce error with duplicates, and so far couldn't
Looks like it's logic in default_agent.py of hass repo. Digging in.
I believe that setting preferred_area_id into slots in intents.py should do the trick - there's logic for deduplication by that slot. If i find the way to set it from assist satellite area, it should work.
If you have a real device's device id, you could use the websocket API to do a test: https://developers.home-assistant.io/docs/voice/pipelines/
Make sure to pass device_id in, and it should use that device's area to do the processing.
Thank you, I will try it.
@ocean canopy but "should use that device's area" is a stretch. I found that device's area isn't set in intent call to preferred_area_id slot. I tried to set that field, and everything started to work good. (I used hard-coded area there, since couldn't test with dynamic one).
If API call works, I will post PR.
@ocean canopy i actually connected Whisper, Piper and my S3 Box to dev container, and made proper testing 🙂 Thanks for help!
Now i have trouble with unit-tests - can't actually run the suite because of https://discord.com/channels/330944238910963714/1273361280731975721
Do you have any insights?
Thanks in advance!
@ocean canopy thank you for help. Tests ran, opened the PR for that: https://github.com/home-assistant/core/pull/123957. My first PR to HA, and GitHub got broken right after i submitted it. Coincidence? 🙂