Open Marc3l1988 opened 1 year ago
When i use your template: sidebar: template: |
{% if states('sensor.current_lights_on') | float > 0 %} <li>{{states('sensor.current_lights_on')}} lampen aan</li> {% endif %} {% if states('sensor.current_media_players_on') | float > 0 %} <li>{{states('sensor.current_media_players_on')}} speakers aan</li> {% endif %}
The sidebar is empty. When i remove this part: {% if states('sensor.current_lights_on') | float > 0 %}
It is working, and it says goodmorning. It seems that the code for the count of the lightning is not correct. :)
When i use your template: sidebar: template: |
The sidebar is empty. When i remove this part: {% if states('sensor.current_lights_on') | float > 0 %}
It is working, and it says goodmorning. It seems that the code for the count of the lightning is not correct. :)