#How to change the colour of 'entities' declared in a 'subtitle' based on state?

1 messages · Page 1 of 1 (latest)

cunning lance
#

Hi,

I am new to HA and have built a dashboard but I would like add so features but cannot find the tool with the functionality.

This is for my CCTV section (see attached).

  1. I would like to change the colour of the entities (icons and text) in the 'subtitle cards' based on the state of the motion and alert sensors I configured. I would like the motion entitiy to turn 'amber' when in detected state, and action entity to turn 'red' when in detected state.

  2. I would like to remove the text associated with the entities if possible.

  3. I would like to make the border of the camera cards change colour based on the state of my motion and alert sensors. So just a line around the card changes colour.

The cards I used are as follows

  1. subtitle cards = Heading Card configuration
  2. camera cards = Mushroom Entity Card configuration

I tried card-mod but I dpn't think these cards have a 'ha' to configure. The red text test works on my entites cards but not on these ones.

Regards

dw07

dreamy locust
#

You're going to need to share some code so we can see what you've got set up.
The Heading card and Mushroom Entity card both have ha-card sections; usually layout-type card do not have the ha-card section.