hass-music-assistant icon indicating copy to clipboard operation
hass-music-assistant copied to clipboard

mass.play_announcement plays the file but return an error and stop any HomeAssistant scripts sequence

Open I-G-1-1 opened this issue 8 months ago • 8 comments

What version of Music Assistant has the issue?

2.1.0b8

What version of the Home Assistant Integration have you got installed?

2024.6.4

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • [X] Yes

The problem

when using MusicAssistant service "mass.play_announcement" the file is correctly played by the media_player entity, but HomeAssistant give error and if the service call is inside a script it stop the script sequence.

01

same problem with the service "tts.google_say" and a MusicAssistant player as media_player entity

How to reproduce

as said below

Music Providers

www folder on HomeAssistant installation

Player Providers

Chromecast

Full log output

mass.play_announcement error:

2024-06-24 15:28:11.099 INFO (MainThread) [music_assistant.players] Playback announcement to player Camera (with pre-announce: True): http://192.168.xxx.xxx:8123/local/01.mp3
2024-06-24 15:28:14.379 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_announcement: file not found: http:/192.168.xxx.xxx:8123/local/01.mp3

tts.google_say error:

2024-06-24 16:43:45.794 INFO (MainThread) [music_assistant.players] Playback announcement to player Camera (with pre-announce: True): http://192.168.xxx.xxx:8123/api/tts_proxy/1e4e888ac66f8dd41e00c5a7ac36a32a9950d271_en_-_google_translate.mp3
2024-06-24 16:43:46.920 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_announcement: file not found: http:/192.168.xxx.xxx:8123/api/tts_proxy/1e4e888ac66f8dd41e00c5a7ac36a32a9950d271_en_-_google_translate.mp3

Additional information

HomeAssistant error:

ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: MusicAssistantError: file not found: http:/192.168.xxx.xxx:8123/local/01.mp3

What version of Home Assistant Core are your running

2024.6.4

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Raspberry Pi

I-G-1-1 avatar Jun 24 '24 17:06 I-G-1-1