Attempt to fix icons for some template sensors
This commit is contained in:
@@ -271,7 +271,7 @@ template:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ fn.friendly }}
|
{{ fn.friendly }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.window_faults') | int > 0 %}
|
{% if this.state | int > 0 %}
|
||||||
mdi:window-open
|
mdi:window-open
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:window-closed
|
mdi:window-closed
|
||||||
@@ -335,7 +335,7 @@ template:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ fn.friendly }}
|
{{ fn.friendly }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.door_faults') | int > 0 %}
|
{% if this.state | int > 0 %}
|
||||||
mdi:door-open
|
mdi:door-open
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:door-closed
|
mdi:door-closed
|
||||||
@@ -365,7 +365,7 @@ template:
|
|||||||
| list %}
|
| list %}
|
||||||
{{ window_names }}
|
{{ window_names }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.windows_open') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:window-closed
|
mdi:window-closed
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:window-open
|
mdi:window-open
|
||||||
@@ -392,7 +392,7 @@ template:
|
|||||||
| list %}
|
| list %}
|
||||||
{{ window_names }}
|
{{ window_names }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.front_windows_open') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:window-closed
|
mdi:window-closed
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:window-open
|
mdi:window-open
|
||||||
@@ -418,7 +418,7 @@ template:
|
|||||||
| list | count %}
|
| list | count %}
|
||||||
{{ windows_open }}
|
{{ windows_open }}
|
||||||
icon: >
|
icon: >
|
||||||
{% if states('sensor.living_room_windows_open') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:window-closed
|
mdi:window-closed
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:window-open
|
mdi:window-open
|
||||||
@@ -442,7 +442,7 @@ template:
|
|||||||
| list %}
|
| list %}
|
||||||
{{ door_names }}
|
{{ door_names }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.doors_open') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:door-closed
|
mdi:door-closed
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:door-open
|
mdi:door-open
|
||||||
@@ -476,7 +476,7 @@ template:
|
|||||||
| list %}
|
| list %}
|
||||||
{{ interior }}
|
{{ interior }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.interior_doors') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:door-closed
|
mdi:door-closed
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:door-open
|
mdi:door-open
|
||||||
@@ -507,7 +507,7 @@ template:
|
|||||||
{% set doors_open = states('sensor.doors_open') | int %}
|
{% set doors_open = states('sensor.doors_open') | int %}
|
||||||
{{ doors_open + windows_open }}
|
{{ doors_open + windows_open }}
|
||||||
icon: >-
|
icon: >-
|
||||||
{% if states('sensor.air_leaks') | int == 0 %}
|
{% if this.state | int == 0 %}
|
||||||
mdi:leak-off
|
mdi:leak-off
|
||||||
{% else %}
|
{% else %}
|
||||||
mdi:leak
|
mdi:leak
|
||||||
|
|||||||
Reference in New Issue
Block a user