It’s just not documented well. I was only able to see it could broadcast to specific devices by the new GUI that it ships with. I was then able to work out what the commands from HA had to be to send to specific devices.
I did encounter another state that I would like to account for… “unavailable.” Although as it’s not a valid playing state, I’m not sure it’s something that can be accounted for easily.
I keep a few of my Sonos speakers powered off using a Z-wave appliance module because I don’t use them often. I would like to show them as unavailable, or–even better–show a button that would allow me to turn on the relevant appliance module instead!
I’ve just added your code to a conditional Lovelace card so that when the power is off, it displays only a button to turn it on; and if the power is on and the device_tracker shows it is “home”, then it shows your display instead:
Now, powering on the appliance module from this button will likely take some scripting. I might try it, but as it stands that’s over my head.
EDIT: I can’t believe this worked. This may seem really straightforward for most of you, but I don’t code. This script does exactly what I was shooting for:
…I’m using this card and scripts in two areas, for two different Sonos devices. Now I need to figure out a smooth way to unjoin the master from another device while it’s playing, and what that UI will look like…
Im trying to set the buttons up to change radio stations on a squeezebox system.
I have the stations saved in ‘Playlists’ in LMS but cant get the stations to change.
I believe that if you are calling the ‘playlist play’ method of the Logitech Media Server CLI, you need to include the folder name as well as the playlist name. So if you have saved the playlist to a folder called ‘Playlists’, the second parameter should be:
- /Playlists/Radio_2
If you were really going belt and braces, you could include the full directory path to your playlist folder as well as the playlist name.
I tried what you suggested Chris but it still won’t select a station coming up with the same errors as before, either:
Failed to call service media_player/play_media. Expecting Value 1 line 1 (char0)
Or
Failed to call service media_player/play_media. extra keys not allowed @ data [‘command’ ]
Sorry, I didn’t think to check the rest of your code, which is not the correct way to call a service from the shortcut object on the mini media card. Does this work?
Am I correct to conclude that the icon state color only reacts on ‘off’ to ‘playing’? Chromecast device properly changes on these status changes. However my SONOS media player icon color always stays on when it returns from ‘playing’ to ‘paused’. Unless I have overlooked one of the configuration options, can’t we have the icon color react to ‘playing’=ON and ‘something else-off,idle, paused’ = OFF?
Sorry to bring back an old topic. but, is there a way to not have an idle_view ie. always full view?
Also, Is there a way to have the media browser icon directly on the card?
Hi All, I am using HACS to load the player but it is not loading. i already deleted the cache, reloaded. deleted the app restarted has and tried again but with the same result.
Hi,
I know i am a little out of topic, but I got here searching for answers (which i found, thanks to this post)
but i am really interested in your ui, the look of it, could you let me know what “theme” it is that you are using or its completely custom?