-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsensors.yaml
100 lines (85 loc) · 2.46 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Weather sensor
- platform: yr
monitored_conditions:
- temperature
- symbol
- humidity
# Darksky weather sensor
- platform: darksky
api_key: !secret darksky_key
monitored_conditions:
- precip_probability
- temperature
- precip_intensity
# Time and date sensor
- platform: time_date
display_options:
- 'date'
- 'time'
# Net status
- platform: speedtest
monitored_conditions:
- ping
- download
- upload
# Backyard soil sensors
- platform: mqtt
state_topic: "home/backyard/soil"
name: "Soil Moisture Tomatoes"
unit_of_measurement: "%"
value_template: '{{ value_json.moisture1 | round(2) }}'
- platform: mqtt
state_topic: "home/backyard/soil"
name: "Soil Moisture Potatoes"
unit_of_measurement: "%"
value_template: '{{ value_json.moisture2 | round(2) }}'
- platform: mqtt
state_topic: "home/backyard/soil"
name: "Soil Moisture Onions"
unit_of_measurement: "%"
value_template: '{{ value_json.moisture3 | round(2) }}'
# Xiaomi Mi Flora sensor
# - platform: miflora
# mac: 'C4:7C:8D:64:31:1F'
### ESP8266 Multisensors - Node 1
- platform: mqtt
state_topic: "home/sensornode1"
name: "SN1 Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "home/sensornode1"
name: "SN1 LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "home/sensornode1"
name: "SN1 PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "home/sensornode1"
name: "SN1 Temperature"
unit_of_measurement: "°C"
value_template: '{{ value_json.temperature | round(1) }}'
### ESP8266 Multisensors - Node 2
- platform: mqtt
state_topic: "home/sensornode2"
name: "SN2 Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "home/sensornode2"
name: "SN2 LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "home/sensornode2"
name: "SN2 PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "home/sensornode2"
name: "SN2 Temperature"
unit_of_measurement: "°C"
value_template: '{{ value_json.temperature | round(1) }}'