I think theres and issue with !include
that requires a HA restart instead of the normal reload of the page.
Iâve just updated to 0.84.2 and did a full reboot. It does not work. When I edit the file in the raw config editor I get the following error:
Not sure, the instructions were written before 0.84.0 came out and !include worked, not sure if they dropped support for it. That would be weird.
Iâll update to 0.84.0 later today and have a look.
Yes, that should work.
Canât you add Spotify playlists as favourites in Sonos? That way you should be able to start them from the source menu.
Yeah, and Iâve done that - however I want to make it super easy for my girlfriend to have a button that just says âShowerâ or something and it will play a pre-defined list on the Sonos in the bathroom But yes, there are work-arounds
Itâs quite strange. I uses !includes for everything⊠automations, scripts, etc. but it doesnât seem to work in this specific case
Ah, yes I see.
Yeah Spotify URIs are really convenient, itâs a pity they only work through the Spotify Component.
What about adding some Entity buttons that calls media_player.select_source
to trigger the favourite playlist?
Good idea - Iâll have a look at that. I tried your Sonos grouping now, and that also works great.
Adding the show source part, letâs you have a good view with grouping option enabled, and you can juggle playlists. As optimal as it gets currently I think
Any further plans for the Sonos support on stuff you are planning to add?
Thanks for the help!
TJ
Thanks, the Sonos group feature is still very new, so if you have any feedback or issues, please let me know.
No plans for any new features at the moment, but feature requests are always welcome.
I see youâre a fan of !include
well, yes, I found a ui-lovelace.yaml file of over 4000 lines rather unmanageableâŠ
sorry if this is off topic here, but please let me know how you do that in Lovelace?
(I have a set of tiles, I like to use in more than 1 view, and thus like a way to !include that. Right now I have these views copy that code, which is a waste and not very manageable of course.)
Itâs a misunderstanding. I use includes in my configuration.yaml
but i tried according to this tutorial https://github.com/kalkih/mini-media-player#sonos-group-joinunjoin. And so far include in lovelace-ui does not work when storage is the default action of handling ui-lovelace.
Hmm, not sure I completely follow, but as an illustration:
In regular Ha we created a set of tiles in a dedicated file, and call that set eg group.activity_tiles
this group could be placed anywhere.
As I understand it now, the full set of yaml code needs to be placed in the places where I want this set of Tiles to be displayed�
while I was looking for a way to !include activity_tiles.yaml (in which this set would be created) in any of the views I want the tiles to show up in.
Also wanted just to come back and say AWESOME, This now works with Fire Tablets, and I am so happy. Thank you for excellent card and work here!
Thatâs great!
Thank you for the kind words.
Hey @kalkih this cards is really awesome. Thanks a lot!..
For some reason I cannot make the card to show the artwork.
I opened an issue describing the problem. https://github.com/kalkih/mini-media-player/issues/45
Hi,
First off, thanks for this component, works like a charm. The only issue I have is with Alexa TTS. The âAlexa as media playerâ component works fine and I can send {âentity_idâ: âmedia_player.kitchen_echoâ, âmessageâ: âzapitâ} to my kitchen echo but no matter source I select in the drop down, I never hear anything from my echoâs.
Enabling debug logging shows that no matter what source I select, itâs always trying to output to media_player.spotify, which I donât think will work. media_player.spotify is the entity ID that I have in my config.
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140198944978872] Received {'type': 'call_service', 'domain': 'media_player', 'service': 'alexa_tts', 'service_data': {'message': 'zapit', 'entity_id': 'media_player.spotify'}, 'id': 20}
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=alexa_tts, service_data=message=zapit, entity_id=media_player.spotify>
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.components.api] STREAM 140199400771680 FORWARDING <Event call_service[L]: domain=media_player, service=alexa_tts, service_data=message=zapit, entity_id=media_player.spotify>
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.components.api] STREAM 140199400771680 WRITING data: {"event_type": "call_service", "data": {"domain": "media_player", "service": "alexa_tts", "service_data": {"message": "zapit", "entity_id": "media_player.spotify"}}, "origin": "LOCAL", "time_fired": "2018-12-18T01:20:25.788652+00:00", "context": {"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx", "user_id": null}}
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140198945881448] Sending {'id': 28, 'type': 'event', 'event': {'event_type': 'call_service', 'data': {'domain': 'media_player', 'service': 'alexa_tts', 'service_data': {'message': 'zapit', 'entity_id': 'media_player.spotify'}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 12, 18, 1, 20, 25, 788652, tzinfo=<UTC>), 'context': {'id': 'xxxxxxxxxxxxxxxxxxxxxxxx', 'user_id': None}}}
2018-12-18 01:20:25 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140198944978872] Sending {'id': 20, 'type': 'result', 'success': True, 'result': None}
My config:
artwork: cover
artwork_border: true
entity: media_player.spotify
icon: 'mdi:spotify'
idle_view: true
media_buttons:
- name: Simon's Playlist
type: playlist
url: 'spotify:user:xxx:playlist:1sQlinRFYVYT2txUOlVTHu'
- name: Sarah's Playlist
type: playlist
url: 'spotify:user:xxx:playlist:5ilsrBtYkARYYtuNNmqQ1m'
- name: Nanny's Playlist
type: playlist
url: 'spotify:user:xxx:playlist:4mWKj2kbbapnIj0ORh8W0q'
- name: Bozeman-What is Love
type: music
url: 'spotify:track:2DOykLfhy5XEHxZeb3AaPA'
power_color: true
show_progress: true
show_shuffle: true
show_source: true
show_tts: alexa
type: 'custom:mini-media-player'
Any help would be appreciated.
Thanks
Simon
Thanks! Letâs investigate this more over @ github.
Hey,
The Text To Speak will play on the entity of which card itâs sent from, media_player.spotify
in your example.
Spotify doesnât support TTS, so it doesnât matter what source you select, it will never play.
If you want your echo to output the TTS message, you would have to send the TTS message from a card where the entity is the echo.
- entity: media_player.kitchen_echo
type: custom:mini-media-player
show_tts: alexa
Iâm building a remote control card for the Bravia tv Media component, I would like to figure out if there would be a way to integrate this card with the mini Media player