Template dont want show “0”, i dont know why…
That’s i why i made like this.
type: template
double_tap_action:
action: none
entity: sensor.number_of_lights_on
icon: mdi:lightbulb
icon_color: |-
{% set state=states('sensor.number_of_lights_on') %}
{% if state=='0' %}
black
{% elif state!='0' %}
yellow
{% endif %}
content: |-
{% set state=states('sensor.number_of_lights_on') %}
{% if state=='0' %}
{{'wył.'}}
{% elif state!='0' %}
{{(states('sensor.number_of_lights_on'))}}
{% endif %}
tap_action:
action: none
hold_action:
action: none
and when is off is info “wył” (off)
and numbers when are on.

