Squeezebox users - there are new services in the 0.110 release, as well as a refactor of the integration code. A new code owner has taken over which means it looks like the code will be regularly maintained. All good news.
The new services are squeezebox.sync and squeezebox.unsync, which are for synchronisation. There is also squeezebox.call_query. The purpose of this thread is to allow people to share info about how they are being used.
The sync/unsync seem relatively easy. This will hopefully allow, for example, mini media player card to have speaker groups like it does for sonos.
The call_query has a lot of potential for querying and playing with the query results. The sample data for the query (you can find this in the services tab of dev tools) is
command: albums
parameters: '0,20,Revolver'
The results are store in the query_result attribute of the player, in my case:
It would be nice if the new integration would recognize players when they are powered off while HA starts.
The old integration had the same problem. All players must be online at the startup.
Currently Iâm using an old custom component for squeezebox in order to define the players manually in yaml.
In my experience that is not the case. But do you mean soft âoffâ or completely denied of power so it is no longer connected to the network? Most squeezebox devices are actually still running and connected to the LMS server when turned âoffâ at the device or via the LMS web client or via home assistant. This means you can turn it on via the network too.
Do you know if LMS pushes some sort of notification when a client/player is added, or would HA need to poll the LMS server to see if any new players are added?
Do the powered off entities show in the LMS interface?
I would love to see some application of these query as well. I use it in my house and it is integrated in home assistant but not really used because like you I donât know how/what to do with it.
Iâm on 0.110.1 and my squeezebox players arenât showing up anymore. Anyone else having issues? Iâm on LMS 8.0 now. Everything works outside of HA
Logger: pysqueezebox.pysqueezebox
Source: main.py:356
First occurred: 5:29:53 PM (1 occurrences)
Last logged: 5:29:53 PM
Failed communicating with LMS: <class âconcurrent.futures._base.TimeoutErrorâ>
I think HA needs to pull this information in order to get all the players. I donât think that the LMS sends a notification when a new player is added.
The offline players are not listed in the LMS. In HA they are listed with the attribute ârestoredâ.
By the way @kalkih, author of the great mini-media-player lovelace card tells me he is working on getting squeezebox sync into his player. (It can already group and ungroup sonos, soundtouch , snapcast , bluesound and yamaha_musiccast.)
You can also group players with the group player plugin in the LMS server. Basically creates a sync for you and becomes another squeezebox platyer. Are you experiencing any issues now with 0.110? It seems whenever I restart the HA server there isnât enough time for them to populate. Every once in a while I get them to show up but it seems they changed things to speed up startup.
Can you give a little more example of how this search might work in the UI? I did a query via the developer tools, but didnât see the query result in the player state.
If you donât have time to flush out something complete just let me know how I might put this into the front end.