Home Assistant Voice PE with Music Assistant problems with Music Assistant Player Name

I have two Home Assistant Voice PE hardware devices, one in the kitchen and one in the living room. I use these to playback music with Music Assistant running on Home Assistant on a Raspberry Pi. One I call ‘Jarvis’ and the other ‘Nabu’ and I use separate wake words for each ‘Hey Jarvis’ and ‘OK Nabu’.

I use a couple of automations for the voice commands. When I give a voice command the Voice PE will respond with the format ‘song_name playing on mass_player_name’, for example it would say ‘Nothings Shocking playing on Jarvis’ and then play the song.

This has worked well, however, I haven’t used it for a few months and restarted Home Assistant and updated everything today.

It is now responding with ‘Nothings Shocking playing on Jarvis favourite current song Jarvis’ and then plays the song.

How can I stop it including the extra ‘favourite current song Jarvis’ as this is annoying?

I know that one of the updates to Music Assistant introduced a ‘favourite current song’ button which seems to be included in ‘mass_player_name’.

In case it is useful the voice response in my automation is set by the following:

response_input:
          name: Response for Assist
          description: The response which will be given by Assist.
          selector:
            text:
              multiline: false
              multiple: false
          default: '{{ ''Shuffling'' if ''shuffle'' in trigger.sentence | lower  else
            ''''}} {{ trigger.slots.media_name }} {{ '''' if ''shuffle'' in trigger.sentence
            | lower else ''playing''}} on {{ mass_player_name }}'

Thanks for your help!

How is the mass_player_name variable defined?

Thanks for getting back to me. In the blueprint it seems to be defined with:

mass_player_name: '{{ mass_player_entity_id | map(''state_attr'', ''friendly_name'')
      | join('', '') }}'

and the entity id by:

mass_player_entity_id: "{{ player_entity_id_by_player_name or player_entity_id_by_area_name
      \nor player_entity_id_by_assist_area or [default_player_entity_id] }}\n"```

The best option would just be to update the name of the media_player entity. Just find it and click it in the Entities dashboard then click the gear button in the popup to access the entity’s settings where you can change the name.