Hi all,
What I’m doing wrong with this icon_color script?
Simply, if I’m trying to call the state of another entity besides the one assigned to the card - it doesn’t work.
- type: custom:mushroom-entity-card
entity: sensor.khol_inside_temperature
primary_info: state
secondary_info: name
name: Inside
icon: mdi:home-thermometer
badge_color: ''
icon_color: >-
{% set temp_out =
states( 'sensor.khol_outside_temperature' )| float(0) %}
{% set temp_in=states(entity)|float(0) %}
{% if temp_out < temp_in %} red {% elif temp_out > temp_in %} blue {% elif
temp_out == temp_in %} yellow {% else %} grey {% endif %}
Thanks in advance