Custom Assistant Intents #2176
Replies: 2 comments 13 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.
-
Are these instructions valid as of HA 2025.1.0? I'm facing the same "Unexpected error during intent recognition" as described above. |
Beta Was this translation helpful? Give feedback.
-
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. The PLAY command must be supported by the user from HA 2025.1.0; an example will be provided eventually. 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. (Jan 25: Soon I will adjust the below so this is no longer a requirement) 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