Could someone help with this?
In this yaml, the icon colors are no longer working... not sure what broke them.
card:
show_header_toggle: false
title: TrueNAS Disk Temperature
type: entities
filter:
include:
- entity_id: /sensor.truenas_disks/
options:
name:
- []
secondary_info: >-
<b style='color:orange'>Serial:</b> <span style='color:white'>[[
{entity}.attributes.Serial ]]</span> <br> <b
style='color:orange'>Model:</b> [[ {entity}.attributes.Model ]] <br>
<b style='color:orange'>Type:</b> [[ {entity}.attributes.Type ]]
style: |
:host {
--paper-item-icon-color:
{% if int(states['this.entity_id'].state) > 45 %}
red
{% elif int(states['this.entity_id'].state) > 40 %}
yellow
{% else %}
var( ---state-icon-color )
{% endif %}
;
}
type: custom:secondaryinfo-entity-row
show_empty: true
sort:
method: state
numeric: true
reverse: true
type: custom:auto-entities