You’ve asked this a couple of times. The answer to your question has been answered several times in this thread, which is why you probably haven’t got a reply. The answer is yes - if you have set up the spotify integration and the spotcast custom component (technically I suppose this is not needed now if you just want to use the new media browser.)
There is actually a spotify example in the git readme.
I’m not sure if this is an overall HA/Lovelace issue, or if there’s something in the card coding that can fix this. But when the card is to the left side, the source dropdown flies out “under” the side panel (regardless of if it’s minimized like in this example or not)
When the card is close to bottom of the page, list also drops below the edge… especially frustrating on the phone, as it means edge of the screen. Could we have source selection on top ofthe card (in full artowr mode), please? Or being aware about edge and opening up?
Not sure if you were referencing my card, but f so. I don’t believe that I mentioned anything about doing it in one card. In my current layout I have multiple cards all fulfilling a different role.
Turns out this is due to the way Roku implements the “Space” in the source list. It’s not really a ‘space’ it’s a non-breaking space. Soo I had to use ALT-0160 instead of space when typing it out. Problem solved.
Is there a possibility with css to set max-width for info items? I have it combined with a button card and the title of song overlaps with the buttons.
Thank you!
The script that is being called for the tap action is just to play the selected playlist on the media player that is in the input_select.
I am not sure if you can just use the Call-Service for a sonos media player, but it should work. I am using Logitech Media Server.
Would I be able to a relayed speaker switch. We live in a small house and use one sonos connect amp and a 4 way speaker switch for each room. I’d like to select which rooms are in use from this card. Planning on adding relays to my QED speaker selector.
So they wouldn’t be a media.player, but a switch, obviously no volume control.
2020-10-20 10:41:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2746982040] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 138, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1335, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1370, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 470, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 655, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 507, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/squeezebox/media_player.py", line 483, in async_play_media
content = json.loads(media_id)
File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Hopefully a simply question that is driving me mad that I can’t find the answer: how can I create a shortcut button that plays a Spotify playlist via my Sonos?
So far I’ve got the playlist saved as a favourite in Sonos and tried the URIs I’ve seen in the examples. Everything I try gets me an error in the logs like ’ Could not find a Sonos playlist named “spotify:user:spotify:playlist:37i9dQZF1DWXF8Nf1uycDZ” ’
In the example below, tests 1-3 don’t work. Test 4 works because I created an actual Sonos playlist called ‘Test’ with a track in it. So maybe it only works with Sonos playlists?
Just started using this to improve upon the Hue HDMI Sync Box card. Since it is not a conventional media player, I wish there were a way to change the background image based on the power state.