-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensors.yaml
31 lines (29 loc) · 1.05 KB
/
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
#####
This method is deprecated!
Use mqtt.yaml instead!
#####
# ferð á vegum MQTT sensor
# Kjalarnes
- platform: mqtt
name: "road_condition_kjalarnes"
state_topic: "homeassistant/vegagerdin/kjalarnes"
icon: mdi:highway
value_template: "{{ value_json['condition_description'] }}"
json_attributes_topic: "homeassistant/vegagerdin/kjalarnes"
json_attributes_template: "{{ value_json | tojson }}"
# Hellisheiði
- platform: mqtt
name: "road_condition_hellisheidi"
state_topic: "homeassistant/vegagerdin/hellisheidi"
icon: mdi:highway
value_template: "{{ value_json['condition_description'] }}"
json_attributes_topic: "homeassistant/vegagerdin/hellisheidi"
json_attributes_template: "{{ value_json | tojson }}"
# Holtavörðuheiði
- platform: mqtt
name: "road_condition_holtavorduheidi"
state_topic: "homeassistant/vegagerdin/holtavorduheidi"
icon: mdi:highway
value_template: "{{ value_json['condition_description'] }}"
json_attributes_topic: "homeassistant/vegagerdin/holtavorduheidi"
json_attributes_template: "{{ value_json | tojson }}"