I’m trying to figure out if there’s a simple way for me to display any media player that’s currently active on the default view? I’ve had a look at the group visibility stuff but from what I can see I’d have to make a separate group for each media player, include them all in the default view, and write an automation for each to show/hide based on it’s current status - which feels really messy.
I use another approach, with customizer and customUI.
This way, I can have dynamic attributes, including the “hidden” value for any object.
Create a group with all media_player of your interest (or anything), and put this group wherever you want.
Then, in the customize section add for each one the template status for “hidden” :
I’ve noticed this getting likes every so often, so thought it would be worth updating with my latest version. I’ve now got it set up as a package and the automation has been tidied up a bit. I found this version more reliable than the one I posted above.
I tried this but its not working, i put the automation separately and the sensor in sensor yaml, the sensor shows up but still its not recognising, im using custom ui on hassio, any pointers for me? thanks
Don’t delay! Do yourself a favor and install the Auto-Entities card. It will change the way you do everything on the frontend and only for the better. Extremely powerful with filters and sorting plus it’s super easy to use.
I was using conditional cards for everything. Auto-Entities is so slick that I ended up tossing my whole frontend and went with Auto-Entities as the base for all my cards now.
It cut in half the number of cards I had and no more editing when I make changes to basic stuff. For example when adding a new media player to the network it just shows up, no editing required.
It’s not just for media players, it works on all entities, Lighting, door/windows sensors, etc. It’s a game changer. So get it sooner rather than later.
Is it possible in the ‘custom:auto-entities’ to define the artwork for the domain currently playing ?
What I’m asking: is it possible to show the artwork from the mediabplayer (and eventually other attributes) in this script ?
Thank you @PCRx
Auto-entities worked like a charm. New media players are auto added and the cover of media playing is also displayed.
That saved me a ton of work, I just copied your code and Boom, it worked. Thanks