#I'm using multiple-enitity-row, and am struggling changing the icon color for an entity:
1 messages · Page 1 of 1 (latest)
This works, but can't modify based on state:
type: entities
entities:
- type: custom:multiple-entity-row
entity: binary_sensor.downstairs_occupancy
icon: mdi:sofa
name: Family Room
show_state: false
action: none
entities:
- entity: light.frsw1
name: false
icon: mdi:light-recessed
state_color: true
- entity: light.frsw2
name: false
icon: mdi:floor-lamp
state_color: true
- entity: light.entertainment_center
name: false
icon: mdi:vhs
state_color: true
- entity: cover.family_room_blinds
icon: mdi:blinds-horizontal
name: false
styles:
--paper-item-icon-color: red
Tried this too:
style: |
:host {
--paper-item-icon-color: [[[
if (entity.state === 'open') return
'yellow';
return 'grey';
]]];
}