-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinary_sensors.yaml
41 lines (41 loc) · 1.27 KB
/
binary_sensors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#Binary sensor for vegagerdin
#Hellisheidi
- platform: template
sensors:
road_hellisheidi:
device_class: opening
value_template: >-
{{ is_state_attr('sensor.road_condition_hellisheidi', 'passable', 'true') }}
#{{ state_attr('sensor.road_condition_hellisheidi', 'passable') }}
icon_template: >-
{% if state_attr('sensor.road_condition_hellisheidi', 'passable') == "true" %}
mdi:car
{% else %}
mdi:car-off
{% endif %}
#Kjalarnes
- platform: template
sensors:
road_kjalarnes:
device_class: opening
value_template: >-
{{ is_state_attr('sensor.road_condition_kjalarnes', 'passable', 'true') }}
icon_template: >-
{% if state_attr('sensor.road_condition_kjalarnes', 'passable') == "true" %}
mdi:car
{% else %}
mdi:car-off
{% endif %}
#Holtavörðuheiði
- platform: template
sensors:
road_holtavorduheidi:
device_class: opening
value_template: >-
{{ is_state_attr('sensor.road_condition_holtavorduheidi', 'passable', 'true') }}
icon_template: >-
{% if state_attr('sensor.road_condition_holtavorduheidi', 'passable') == "true" %}
mdi:car
{% else %}
mdi:car-off
{% endif %}