I can’t seem to figure out why I’ll randomly loss control of music assistant. My speaker will continue to play music from my Youtube Music playlist but any attempt to control from MA results in a “Please call connect first” error message
2025-02-13 20:20:24.552 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue Bedroom speaker - crossfade: False
2025-02-13 20:20:25.480 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 89, in wrapper
await func(self, *args, **kwargs)
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 617, in play_media
await player_prov.play_media(
File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/hass_players/__init__.py", line 302, in play_media
await self.hass_prov.hass.call_service(
File "/app/venv/lib/python3.12/site-packages/hass_client/client.py", line 178, in call_service
raise NotConnected(msg)
hass_client.exceptions.NotConnected: Please call connect first.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 91, in wrapper
raise PlayerCommandFailed(str(err)) from err
music_assistant_models.errors.PlayerCommandFailed: Please call connect first.
2025-02-13 20:20:32.474 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 89, in wrapper
await func(self, *args, **kwargs)
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 617, in play_media
await player_prov.play_media(
File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/hass_players/__init__.py", line 302, in play_media
await self.hass_prov.hass.call_service(
File "/app/venv/lib/python3.12/site-packages/hass_client/client.py", line 178, in call_service
raise NotConnected(msg)
hass_client.exceptions.NotConnected: Please call connect first.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 91, in wrapper
raise PlayerCommandFailed(str(err)) from err
music_assistant_models.errors.PlayerCommandFailed: Please call connect first.
2025-02-13 20:20:42.784 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:20:44.955 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:21:18.928 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/player_queues.py", line 570, in stop
await player_provider.cmd_stop(queue_id)
File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/hass_players/__init__.py", line 242, in cmd_stop
await self.hass_prov.hass.call_service(
File "/app/venv/lib/python3.12/site-packages/hass_client/client.py", line 178, in call_service
raise NotConnected(msg)
hass_client.exceptions.NotConnected: Please call connect first.
2025-02-13 20:21:22.479 ERROR (MainThread) [music_assistant] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 89, in wrapper
await func(self, *args, **kwargs)
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 617, in play_media
await player_prov.play_media(
File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/hass_players/__init__.py", line 302, in play_media
await self.hass_prov.hass.call_service(
File "/app/venv/lib/python3.12/site-packages/hass_client/client.py", line 178, in call_service
raise NotConnected(msg)
hass_client.exceptions.NotConnected: Please call connect first.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 91, in wrapper
raise PlayerCommandFailed(str(err)) from err
music_assistant_models.errors.PlayerCommandFailed: Please call connect first.
2025-02-13 20:21:23.601 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:25:08.988 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:25:10.676 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:25:14.825 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/play_pause: Please call connect first.
2025-02-13 20:25:15.726 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/volume_set: Please call connect first.
2025-02-13 20:25:16.268 ERROR (MainThread) [music_assistant.webserver] Error handling message: players/cmd/volume_set: Please call connect first.