forked from geekofweek/homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensors.yaml
253 lines (252 loc) · 8.97 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
252
253
#################################################################
## Sensors
#################################################################
- platform: time_date
display_options:
- 'date_time'
- platform: ring
monitored_conditions:
- battery
- last_activity
- last_ding
- last_motion
- volume
- platform: qnap
host: REDACTED.101
port: 443
username: REDACTED
password: REDACTED
ssl: true
verify_ssl: false
monitored_conditions:
- status
- memory_percent_used
- system_temp
- cpu_usage
- cpu_temp
- network_link_status
- network_tx
- network_rx
- drive_temp
- volume_size_free
- volume_size_used
- drive_smart_status
- volume_percentage_used
- platform: darksky
api_key: REDACTED
monitored_conditions:
- summary
- minutely_summary
- hourly_summary
- daily_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
- platform: uptime
unit_of_measurement: hours
- platform: plex
name: REDACTED
host: REDACTED.101
port: REDACTED
username: REDACTED
password: REDACTED
server: REDACTED
- platform: pi_hole
host: REDACTED.4
- platform: pi_hole
host: REDACTED.5
- platform: template
sensors:
back_door_sensor_batt:
value_template: '{{ states.binary_sensor.back_door_opened.attributes.battery_level }}'
friendly_name: 'Back Door Sensor'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.binary_sensor.back_door_opened.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
basement_door_sensor_batt:
value_template: '{{ states.binary_sensor.basement_door_opened.attributes.battery_level }}'
friendly_name: 'Basement Door Sensor'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.binary_sensor.basement_door_opened.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
front_door_sensor_batt:
value_template: '{{ states.binary_sensor.front_door_opened.attributes.battery_level }}'
friendly_name: 'Front Door Sensor'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.binary_sensor.front_door_opened.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
siren_batt:
value_template: '{{ states.wink.siren.attributes.battery_level }}'
friendly_name: 'Alarm Siren'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.wink.siren.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
front_door_lock_batt:
value_template: '{{ states.lock.front_door.attributes.battery_level }}'
friendly_name: 'Front Door Lock'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.lock.front_door.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
back_door_lock_batt:
value_template: '{{ states.lock.back_door.attributes.battery_level }}'
friendly_name: 'Back Door Lock'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.lock.back_door.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
basement_door_lock_batt:
value_template: '{{ states.lock.basement_door.attributes.battery_level }}'
friendly_name: 'Basement Door Lock'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.lock.basement_door.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
basement_drain_water_sensor_batt:
value_template: '{{ states.binary_sensor.basement_drain_water_sensor_liquid_detected.attributes.battery_level }}'
friendly_name: 'Basement Drain Water Sensor'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.binary_sensor.basement_drain_water_sensor_liquid_detected.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
sump_pump_water_sensor_batt:
value_template: '{{ states.binary_sensor.sump_pump_water_sensor_liquid_detected.attributes.battery_level }}'
friendly_name: 'Sump Pump Water Sensor'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.binary_sensor.sump_pump_water_sensor_liquid_detected.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
roomba_batt:
value_template: '{{ states.vacuum.roomba.attributes.battery_level }}'
friendly_name: 'Roomba'
unit_of_measurement: '%'
icon_template: >
{% set battery_level = states.vacuum.roomba.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
- platform: template
sensors:
media_center:
value_template: '{{ states.remote.media_center.attributes.current_activity }}'
friendly_name: 'Media Center'
- platform: template
sensors:
USER2_work_offset:
entity_id: sensor.date__time
value_template: '{{ (as_timestamp(states.calendar.work.attributes.start_time) - as_timestamp(now()) ) }}'
- platform: template
sensors:
holidays_calendar:
friendly_name: 'Holiday'
value_template: '{{ states.calendar.holidays_in_united_states.attributes.message }}'
- platform: google_travel_time
name: USER2 To Home
api_key: REDACTED
origin: device_tracker.USER2DEVICE
destination: zone.home
- platform: google_travel_time
name: USER1 To Home
api_key: REDACTED
origin: device_tracker.USER1DEVICE
destination: zone.home
- platform: google_travel_time
name: USER2 To REDACTED
api_key: REDACTED
origin: device_tracker.USER2DEVICE
destination: zone.work
- platform: google_travel_time
name: USER2 To REDACTED
api_key: REDACTED
origin: device_tracker.USER2DEVICE
destination: zone.work_2
- platform: google_travel_time
name: USER2 To REDACTED
api_key: REDACTED
origin: device_tracker.USER2DEVICE
destination: zone.work_3