Custom Assistant Intents #2176
Replies: 4 comments 15 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.
-
|
As an alternative to renaming your entities, replacing |
Beta Was this translation helpful? Give feedback.
-
|
Is anyone working on a custom intent to add the currently playing song to favorites or a specific playlist? addind songs to playlists is now possible: https://github.com/orgs/music-assistant/discussions/3147 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 a blueprint is available in a dedciated repository. 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
playingwill 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
enin 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_idwhich is used to select the correct player when targetting an area. You could also check for players which have themass_player_attribute. 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