I just need a bit of help in finding my mistake. I would like the text to change colour depending on the value of the sensor. but I can’t see the mistake I have made, can you help
- entity: select.octopus_import
type: custom:multiple-entity-row
name: Octopus Current Traff
icon: mdi:television-off
toggle: false
show_state: false
state_color: true
entities:
- entity: select.octopus_import
name: Import
toggle: false
$: |
.text-content:not(.info) {
color:
{% if is_state(‘sselect.octopus_import’, ‘day’) %}
green
{% elif is_state(‘select.octopus_import’, ‘cheap’) %}
yellow
{% elif is_state(‘select.octopus_import’, ‘max’) %}
red
{% endif %}- entity: select.octopus_export
name: Export
toggle: false