I have a quiestion about idle_view. I dont think I understand it,or my other config options are overwriting it.
I have one sonos speaker. When playing I display the full artwork, taking up a good amount of space, and I like that. When I stop playing music, and it’s paused. I want to go to the normal, small player.
Right now it stays on the last source and displays the artwork.
Hey folks, I’m fairly new to home assistant and stumbled across this in hacs. I’m struggling with the install. The files are in the right place (see below)
[root@hothserv1 mini-media-player]# pwd
/opt/home-assistant/www/community/mini-media-player
[root@hothserv1 mini-media-player]# ls
mini-media-player-bundle.js mini-media-player-bundle.js.gz
[root@hothserv1 mini-media-player]# ls -ltrh
total 196K
-rw-r--r--. 1 root root 152K Aug 7 08:45 mini-media-player-bundle.js
-rw-r--r--. 1 root root 41K Aug 7 08:45 mini-media-player-bundle.js.gz
I set up the Resources for it. (note I tried both the suggested path during the install and the one where my other hacs lovelace ui mod is installed. Any help pointing me in the right direction would be much apprecited!
So I’m unable to add the mini-media-player from the manual method here? The guide kind of falls short at this step. The guide on the repo page is really good about telling me where things need to be up until getting to the card section.
Pretty sure this is unrelated to this card since the card isn’t caching anything at all, so a simple refresh should give you a “fresh start”, unless something has changed in HA and it’s now caching cards or something.
You can easily check if the card is the issue by taking a look at the media players attributes in developer tools, check the attributes and see if they match what’s shown in the card.
Your idle_view configuration is incorrect.
try this:
... rest of card config
idle_view:
when_paused: true
after: 30
Note: after in this configuration is redundant and can be removed since when_paused is already set to true and will render the idle view directly when playback is paused.
Ok I think I figured it out thanks for your help @tom_l I was expecting to see exactly what I saw in the example so it didn’t really click in my head when I actually got it working. I’ve started playing with the card options and seeing elements appear so I’m pretty sure I have it working. Time to start tweaking it
The documentation is really poor (missing!?) for users in “non yaml mode”…
I’m not using the GUI to configure cards myself so if someone wants to improve the documentation I would be very happy
After this i stopped the music (always using the card) and then i went to the developer/states and this is the result of the attributes of the same device:
So now added through the resources tab (had to dig deep to find that again, and this time with that last post from the above mentioned thread… EUREKA!)