-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsensors.yaml
251 lines (221 loc) · 7.26 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
#################################################################
## Dark Sky
#################################################################
- platform: darksky
api_key: !secret darksky_key
monitored_conditions:
- summary
- icon
- nearest_storm_distance
- nearest_storm_bearing
- precip_type
- precip_intensity
- precip_probability
- temperature
- apparent_temperature
- dew_point
- wind_speed
- wind_bearing
- cloud_cover
- humidity
- pressure
- visibility
- ozone
- minutely_summary
- hourly_summary
- daily_summary
- temperature_max
- temperature_min
- apparent_temperature_max
- apparent_temperature_min
- precip_intensity_max
#################################################################
## Uniteruptable Power Supply
#################################################################
- platform: apcupsd
resources:
- bcharge
- linev
- loadpct
- nominv
- nompower
- numxfers
- status
- timeleft
- tonbatt
#################################################################
## Speedtest.net and Fast.com
#################################################################
- platform: speedtest
minute:
- 0
- 30
monitored_conditions:
- ping
- download
- upload
#################################################################
## Master and Bedroom MQTT Switch Sensor
#################################################################
- platform: mqtt
state_topic: "gundam212LinkL/feeds/masterSwitchState"
name: 'Master Switch'
- platform: mqtt
state_topic: "gundam212LinkK/feeds/bedroomSwitchState"
name: 'Bedroom Switch'
###########################################################
## Projector State
###########################################################
- platform: mqtt
state_topic: "gundam212LinkL/feeds/projectorState"
name: 'Projector State'
qos: 0
- platform: template
sensors:
projectorstatus:
friendly_name: 'Projector Status'
value_template: >-
{%- if is_state("sensor.projector_state", "0" ) and is_state("switch.projector", "on" ) %}
Powering Off
{% elif is_state("sensor.projector_state", "1" ) and is_state("switch.projector", "on" ) %}
On
{% else %}
Off
{%- endif %}
###########################################################
## Kitchen Motion State
###########################################################
- platform: template
sensors:
kitchen_motion:
friendly_name: 'Kitchen Motion'
value_template: >-
{%- if is_state("sensor.fibaro_system_fgms001_motion_sensor_burglar_2_10", "0" ) %}
Inactive
{% elif is_state("sensor.fibaro_system_fgms001_motion_sensor_burglar_2_10", "8" ) %}
Active
{% elif is_state("sensor.fibaro_system_fgms001_motion_sensor_burglar_2_10", "3" ) %}
Tampered
{% else %}
Sleeping
{%- endif %}
###########################################################
## Closet Motion State
###########################################################
- platform: template
sensors:
closet_motion:
friendly_name: 'Closet Motion'
value_template: >-
{%- if is_state("sensor.aeotec_zw100_multisensor_6_burglar_3_10", "0" ) %}
Inactive
{% elif is_state("sensor.aeotec_zw100_multisensor_6_burglar_3_10", "8" ) %}
Active
{% elif is_state("sensor.aeotec_zw100_multisensor_6_burglar_3_10", "3" ) %}
Tampered
{% else %}
Unknown
{%- endif %}
###########################################################
## Closet Motion State
###########################################################
- platform: google_travel_time
name: Current Location to School
api_key: !secret google_api_key
origin: device_tracker.gundam212iphone_destinyiphone
destination: "University of Texas at Dallas - Richardson, TX"
###########################################################
## Speedtest Statistics
###########################################################
- platform: statistics
name: Download Speed
entity_id: sensor.speedtest_download
- platform: statistics
name: Upload Speed
entity_id: sensor.speedtest_upload
- platform: statistics
name: Ping Time
entity_id: sensor.speedtest_ping
###########################################################
## Template Sensors for Tracked Devices
###########################################################
- platform: template
sensors:
router:
friendly_name: 'Router'
value_template: >-
{%- if is_state("device_tracker.source", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
wireless:
friendly_name: 'Wireless AP'
value_template: >-
{%- if is_state("device_tracker.wirelessinvertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
printer:
friendly_name: 'Printer'
value_template: >-
{%- if is_state("device_tracker.printerinvertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
bedroom_echo_dot:
friendly_name: 'Bedroom Echo Dot'
value_template: >-
{%- if is_state("device_tracker.kindle0ffb01ae2invertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
livingroom_echo_dot:
friendly_name: 'Livingroom Echo Dot'
value_template: >-
{%- if is_state("device_tracker.kindle1c2b57cb9invertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
bedroom_switch_esp8266:
friendly_name: 'Bedroom Switch ESP8266'
value_template: >-
{%- if is_state("device_tracker.linkkinvertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
main_switch_esp8266:
friendly_name: 'Main Switch ESP8266'
value_template: >-
{%- if is_state("device_tracker.wizneteffeedinvertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}
- platform: template
sensors:
roku:
friendly_name: 'Roku'
value_template: >-
{%- if is_state("device_tracker.np1gs3d4008651invertedio", "home" ) %}
Online
{%- else -%}
Offline
{%- endif %}