music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.39k stars 51 forks source link

2.0.0b24 - Squeezebox Radio won't connect/turn on #1177

Closed wryandginger closed 1 year ago

wryandginger commented 1 year ago

What version of Music Assistant has the issue?

2.0.0b24

The problem

I have 3 Squeezelite-Esp32 devices and 1 Squeezebox Radio. The Squeezelite devices work just fine, but the Squeezebox Radio doesn't connect fully to music assistant.

The Squeezebox Radio is running the baby_8.0.1_r16916 community firmware, but I have also tried this on the 7.73 r16876 firmware too with the same result.

If you try to switch to the music assistant library from the radio, it will say it can't connect and ask to try again. Music assistant is then able to play music to the radio, but it shows up as "OFF" and the volume slider is greyed out. You can still link this to other speakers.

Sometimes, if you reboot your whole home assistant instance, the Squeezebox Radio will connect flawlessly (even showing the cover art and meta data!), but I can't reliably reproduce. Sometimes I get log information (see below), but often there's nothing that appears in the logs.

How to reproduce

  1. Connect a Squeezebox Radio to Music Assistant 2.0

Relevant log output

2023-04-02 09:58:31 DEBUG music_assistant.providers.slimproto -- Socket client connected: ('192.168.XXX.XXX', 37680) 2023-04-02 09:58:31 DEBUG aioslimproto.client -- HELO received: b"\t\x00\x00\x04 +\x11\x14\x99\x1f\xa3\xeb\xea\xab\xf4\xf9m\x81\xa0\xc5F\x80NS\x00\x00\x00\x00\x00\x00\x00'\x10\x00ENModel=baby,ModelName=Squeezebox Radio,Firmware=8.0.1-r16916,alc,aac,ogg,ogf,flc,aif,pcm,mp3,MaxSampleRate=48000,AccuratePlayPoints,ImmediateCrossfade,test,Rtmp=2,Proxy=192.168.XXX.XXX:9001,SyncgroupID=" 2023-04-02 09:58:31 DEBUG aioslimproto.client -- Player connected: 00:04:20:XX:XX:XX 2023-04-02 09:58:31 DEBUG music_assistant.event -- queue_updated 00:04:20:XX:XX:XX 2023-04-02 09:58:31 DEBUG music_assistant.event -- player_updated 00:04:20:XX:XX:XX 2023-04-02 09:58:31 DEBUG music_assistant.event -- player_updated 00:04:20:XX:XX:XX 2023-04-02 09:58:31 DEBUG aioslimproto.client -- Unhandled event: vers - event_data: b"\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x10\x00\x00d\x00\x0e\xd6$\x005\xd5@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 2023-04-02 09:58:31 DEBUG music_assistant.event -- player_updated 00:04:20:XX:XX:XX 2023-04-02 09:58:31 DEBUG aioslimproto.client.Squeezebox Radi -- Unhandled event: setd - event_data: b"\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x10\x00\x00d\x00\x0e\xd66\x005\xd5@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 2023-04-02 09:58:31 DEBUG aioslimproto.client.Squeezebox Radi -- Unhandled event: setd - event_data: b"\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x10\x00\x00d\x00\x0e\xd6k\x005\xd5@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 2023-04-02 09:58:31 DEBUG aioslimproto.client.Squeezebox Radi -- STMf received - connection closed. 2023-04-02 09:58:31 DEBUG aioslimproto.client.Squeezebox Radi -- STMf received - connection closed. 2023-04-02 09:58:31 DEBUG music_assistant.event -- player_updated 00:04:20:XX:XX:XX

Additional information

No response

What version of Home Assistant Core are your running

2023.3.6

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

marcelveldt commented 1 year ago

This will be fixed as soon as the missing CLI commands are implemented, as well as the "cometd" support. I'm aware of it but did not yet have time to fix it, too much other stuff going on. It will be fixed somewhere in the next weeks.

OzGav commented 1 year ago

@wryandginger please confirm this is fixed with beta 36

wryandginger commented 1 year ago

Confirmed that a Logitech Squeezebox connects with beta 35 (installed this morning). Volume controls appear to work.

Thanks @OzGav and @marcelveldt