Home Assistant Community

Secondaryinfo-entity-row change color icon

#1

Hi, I have a secondaryinfo-entity-row with a sensor like the entity. I would like to change color icon depending on other entity status. Is it possible?

            - entity: sensor.washer_power
              icon: 'mdi:washing-machine'
              name: Washer
              secondary_info: >-
                Today: [[ sensor.washer_energy_today ]][[
                sensor.washer_energy_today.attributes.unit_of_measurement ]] -
                Total: [[ sensor.washer_energy_total ]][[
                sensor.washer_energy_total.attributes.unit_of_measurement ]]
              type: 'custom:secondaryinfo-entity-row'
0 Likes