I’m trying to configure a Glance Card using a combination of media entities and sensors. Simply to display when a certain device is in use. The iocn colour of the media entites, such as Sonos and Chromecast, changes when in use. I want to mimic this behaviour with the two below sensors. I’m not sure if this is possible, or if it is, where I’m going wrong in my configuration.
For the computer and the television I’m using TP-Link HS110 sockets and creating a sensor based off the power consumption to tell me whether they are on or off. That works fine, but I’ve been trying to get the icon to change colour like the rest of the media entities automatically do. Am I going about this the wrong way? I’m not great when it comes to templating.
Cheers!
You can see that the TV and Computer (Maurice) are on.
Thanks again for the help. For some reason that wouldn’t work either so I assumed it was the way I had configured the sensors as opposed to the customisation on the frontend; I’m still learning! I created binary_sensors for both devices and now it works.