Good day
I am trying to change the state from “ON” to “1000 W” How do I do that? I have tried various options, but no luck
- entity: sensor.gwmod_element_power
secondary_info: last-updated
icon: mdi:heating-coil
name: Geyser Element Power
show_state: true
state: >-
[[[
{% if is_state('sensor.gwmod_element_power', 'ON') %}
1000 W
{% else %}
0 W
{% endif %}
]]]
card_mod:
style: >-
:host { {% if states('sensor.gwmod_element_power') ==
'ON' %}
--paper-item-icon-color: red;
color: red;
{% else %}
--paper-item-icon-color: green;
color: white;
{% endif %} }