Hello guys.
I need your help. I would like to swap Icon colors, Orange when OFF and Blue when ON.
This is my code but I am not able to get it work
On the other hand… are there any way to hide the STATUS showed on the right side??
type: entities
title: Colector SR Alex
entities:
- type: custom:template-entity-row
entity: light.colector_alex_banos_y_pasillos
name: Baños y Pasillo
secondary_info: none
icon: mdi:heating-coil
icon_color: >
[[[ return (entity.state.toLowerCase() !== 'on') ? "orange" :
"var(--paper-item-icon-color)"; ]]]
- type: custom:template-entity-row
entity: light.colector_alex_hab_alex
name: Hab. Alex
secondary_info: none
icon: mdi:heating-coil
icon_color: >
[[[ return (entity.state.toLowerCase() !== 'on') ? "orange" :
"var(--paper-item-icon-color)"; ]]]
- type: custom:template-entity-row
entity: light.colector_alex_hab_martina
name: Hab. Martina
secondary_info: none
icon: mdi:heating-coil
icon_color: >
[[[ return (entity.state.toLowerCase() !== 'on') ? "orange" :
"var(--paper-item-icon-color)"; ]]]
- type: custom:template-entity-row
entity: light.colector_alex_hab_valeria
name: Hab. Valeria
secondary_info: none
icon: mdi:heating-coil
icon_color: >
[[[ return (entity.state.toLowerCase() !== 'on') ? "orange" :
"var(--paper-item-icon-color)"; ]]]