I used to have some very basic intents working with home assistant for playing music with Music Assistant.
MusicSearch:
description: This is the default music control tool to be used and no others. It must be given a parameter called music_queryz of type string that contains the song or artist to be played
async_action: true
speech:
text: "Playing {{music_queryz}}"
action:
- delay:
seconds: 3
- action: music_assistant.play_media
metadata: {}
data:
media_id: '{{music_queryz}}'
enqueue: replace
radio_mode: true
target:
entity_id: "{{ states('sensor.choose_speaker_cmd_music_system') }}"
There were other more complex scripts but this one just allowed a single song to be played via the speaker associated with the voice unit. I am not sure when it stopped working however I did notice today that there were issues. After reconnecting spotify to Music Assistant again I thought it would be all sorted however all I was getting was failed intents from the speech and even typed it was failing. I had migrated to Qwen 3 from Llama 3.1 so I tested it on Llama 3.1 only to have it fail differently with json returned instead.
I tried a simpler version just to try to have it call the intent and it was sporadic.
MusicSearch:
description: This is the default music control tool to be used and no others. It must be given a parameter called music_queryz of type string that contains the song or artist to be played
async_action: true
speech:
text: "Playing Music"
This produced the same fail in Quen 3 (logs showed nothing useful)
And even though there was no variable actually being used I was seeing json still being produced by Llama
GPT completely ingored it and went for HassMediaSearchAndPlay and I am wondering if there is some sort of conflict between them and if there is a way if this is the case to suppress one. I tried the 3 methods of Music assistant to incorporate voice. The first 2 kept timing out during set up and the 3rd was just sporadic working less than 5% the time and then only on the default speaker. I would love to hear from people who have this setup and working.