Custom Assistant Intents #2176
OzGav
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
so I tried adding everything as described here... if I use the assist debugging under "developer tools" I'm able to type in my sentences and see they are parsed and matched... BUT when I try to actually pass the exact same sentence to Assist, it gives me the error "Unexpected error during intent recognition" ... it seems to do this for any of the custom sentences... any thoughts? do you have this file working currently as described here? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note that this discussion will be updated (including the attached files) as HA core updates occur. (Updated for HA 2024.7.0 All Volume, Pause, Resume, Previous and Next intents removed. Improvements have been made to attempt to mimic HA's capability to identify the correct player when targetting an area)
HA supports the commands of NEXT, PREVIOUS, PAUSE, UNPAUSE and VOLUME when targeted at a specific player or to an area. If you use the OpenAI feature of the HA integration then you can add PLAY to that list. For the remaining service calls (including targetting areas) you can use custom sentences. Note that targetting an area which has multiple players may result in unpredictable behaviour although for Mute, Clear Queue and Stop the player that is in the state of
playing
will be targeted.Firstly add this file to \\YOUR_HA_IP\config\custom_sentences\en
media.yaml.zip
Of course you can change this file to reflect your language and change the
en
in the file path accordingly. Please share any translations below.Next you need to add to your configuration.yaml file the following. Note I have the unique characters
ma_
in myentity_id
which is used to select the correct player when targetting an area. If you don't want to add those characters you can either use a different set of characters and adjust the templates accordingly or remove all of the area based intents and not use that functionality.Beta Was this translation helpful? Give feedback.
All reactions