How to hide the media player entities card if no devices are playing
Emiliano Guerzoni
Project Manager / Technical Manager renewables/energy efficiency projects | Demand Manager digital energy domain at algoWatt
Hi and welcome to a new episode of my daily newsletter?Tips & Tricks on HomeAssistant.
If you get a new e-mail about the availability of this article, please open it, read it, react and comment. It will be appreciated and will give me a much better idea of who is actually reading all this stuff.
Thank you so much!
As we saw here, the Google Cast integration?allows us to control our Google devices for video streaming as well as audio directly via Home Assistant. As soon as the integration has been configured, we only need to add the Google cast entities mediaplayer.xxxx to our dashboard.
It's quite simple.
Considering I've several Google devices at home, the side effect is having all the mediaplayer entities displayed on the GUI even if they are OFF:
How to optimize the user interface to only display entities when they are playing?
This is the right article for you, let's get going!
Software configuration
Home Assistant code (yaml) / procedure
Take a look at the following video in which I'm going to configure a super smart entities card:
Thank you for reading and watching. ?? I hope you have enjoyed this article and video too.
I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below.
Your feedbacks will be very appreciated!