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.
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.