-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
211 lines (190 loc) · 5.27 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
## Note: leading spaces in each line are critical
## to yaml interpretation - do not delete them
### SENSORS ###
#
# Filters are considered a type of sensor
#
- platform: statistics
name: "7 Day Avg Soil Temperature"
entity_id: sensor.soil_probe_ds18b20_temperature # probe reports every hour
state_characteristic: average_linear
sampling_size: 168 # 7 days = 168 hours
precision: 1
- platform: statistics
name: "24hr Avg Water Pressure"
entity_id: sensor.water_pressure
state_characteristic: mean
sampling_size: 1440 # allow for reporting every minute for 24 hours
max_age:
hours: 24
precision: 2
- platform: statistics
name: "24hr Max Water Pressure"
entity_id: sensor.water_pressure
state_characteristic: value_max
max_age:
hours: 24
- platform: statistics
name: "24hr Min Water Pressure"
entity_id: sensor.water_pressure
state_characteristic: value_min
max_age:
hours: 24
# - platform: statistics
# name: "10m Avg Master Bedroom Temperature"
# entity_id: sensor.espresense_masterbdrm_ds18b20_temperature
# state_characteristic: mean
# sampling_size: 600 # default state value is the running average of this many samples
# precision: 2 # number of decimal places
- platform: filter
name: "Filtered Living Rm Visible Light"
unique_id: filtered_living_rm_visible_light
entity_id: sensor.raw_living_rm_visible_light # sensor is set to update every minute
filters:
- filter: outlier
radius: 5 # default radius is 2 if unspecified
window_size: 5 # num of prev states to define median (default = 1)
- filter: lowpass
time_constant: 5 # Loosely relates to the amount of time it takes for a state to influence the output
precision: 0
- platform: filter
name: "Filtered KFLWILDW56 BU Local Rad Lx"
unique_id: filtered_kflwildw56_bu_local_rad_lx
entity_id: sensor.kflwildw56_backed_up_local_solar_rad_lx # sensor provides mean value every minute
filters:
- filter: outlier
radius: 1000 # default radius is 2 if unspecified
window_size: 10 # num of prev states to define median (default = 1)
- filter: lowpass
time_constant: 10 # Loosely relates to the amount of time it takes for a state to influence the output
precision: 0
#
# MQTT_ROOM- room of device/beacon location
# Add one entry for each device tracked
#
- platform: mqtt_room
device_id: !secret ys_UUID_device_id
name: "YS cell BLE room"
state_topic: !secret ys_UUID_state_topic
timeout: 60
away_timeout: 120
- platform: mqtt_room
device_id: !secret kt_UUID_device_id
name: "KT cell BLE room"
state_topic: !secret kt_UUID_state_topic
timeout: 60
away_timeout: 120
#
# SNMP sensors
#
- platform: snmp
unique_id: junior_temperature
name: "junior temperature"
device_class: temperature
host: junior.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.2.0
scan_interval: 3600
accept_errors: true
unit_of_measurement: "°C"
- platform: snmp
unique_id: junior_system_fan_status
name: "junior system fan status"
host: junior.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.4.1.0
scan_interval: 3600
accept_errors: true
value_template: >
{% if value | int(default=0) == 1 %}
OK
{% else %}
FAULT
{% endif %}
- platform: snmp
unique_id: junior_cpu_fan_status
name: "junior CPU fan status"
host: junior.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.4.2.0
scan_interval: 3600 # one hour
accept_errors: true
value_template: >
{% if value | int(default=0) == 1 %}
OK
{% else %}
FAULT
{% endif %}
- platform: snmp
unique_id: bacman_temperature
name: "bacman temperature"
device_class: temperature
host: bacman.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.2.0
scan_interval: 3600 # one hour
accept_errors: true
unit_of_measurement: "°C"
- platform: snmp
unique_id: bacman_system_fan_status
name: "bacman system fan status"
host: bacman.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.4.1.0
scan_interval: 3600 # one hour
accept_errors: true
value_template: >
{% if value | int(default=0) == 1 %}
OK
{% else %}
FAULT
{% endif %}
- platform: snmp
unique_id: bacman_cpu_fan_status
name: "bacman CPU fan status"
host: bacman.shencentral.net
baseoid: 1.3.6.1.4.1.6574.1.4.2.0
scan_interval: 3600 # one hour
accept_errors: true
value_template: >
{% if value | int(default=0) == 1 %}
OK
{% else %}
FAULT
{% endif %}
#
# Time & Date
#
- platform: time_date
display_options:
- "time"
- "date"
- "date_time"
- "time_date"
- "time_utc"
#- 'beat'
#
# INFLUXDB SENSORS
#
- platform: influxdb
host: a0d7b954-influxdb
port: 8086
username: !secret influxdb_user
password: !secret influxdb_pwd
scan_interval: 3600
queries:
- name: "InfluxDB DB size"
unit_of_measurement: MB
value_template: "{{ (value|float / 1024 /1024)|round(1) }}"
group_function: sum
measurement: '"monitor"."shard"'
database: _internal
where: "time > now() - 10s"
field: diskBytes
#
# RESTful sensors
#
- platform: rest
resource: https://api.ipgeolocation.io/astronomy?lat=28.8519&long=-82.0033&apiKey=5e276b3bc63e4871a546b4f51bed9289
name: ip_geo_location
scan_interval: 300
value_template: "OK"
json_attributes:
- moonrise
- moonset
- moon_altitude