-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensor.yaml
413 lines (362 loc) · 15.2 KB
/
sensor.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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
- platform: template
sensors:
family_home:
friendly_name: "Family Home"
value_template: >-
{{ is_state('device_tracker.life360_damien_seidel', 'home')
or is_state('device_tracker.damien_ios', 'home')
or is_state('device_tracker.damiens_iphone', 'home')
or is_state('device_tracker.damiens_iphone_2', 'home')
or is_state('device_tracker.olia_ios', 'home')
or is_state('device_tracker.olias_iphone_2', 'home')
or is_state('device_tracker.life360_olia_krivtchoun', 'home')
or is_state('sensor.family_status', 'Home') }}
family_status:
friendly_name: "Family Status"
value_template: >-
{% if is_state('person.damien', 'home')
or is_state('person.olia', 'home') %}
Home
{% else %}
Away
{% endif %}
day_night:
friendly_name: "Day/Night"
value_template: >-
{% if is_state('sun.sun', 'above_horizon') %}
Day
{% else %}
Night
{% endif %}
icon_template: >-
{% if is_state('sun.sun', 'above_horizon') %}
mdi:weather-sunny
{% else %}
mdi:weather-night
{% endif %}
- platform: integration
source: sensor.gamingrig_smartplug_energy_power
name: "Gaming Rig Energy Spent"
unit_prefix: k
round: 2
- platform: integration
source: sensor.dishwasher_smartplug_energy_power
name: "Dishwasher Energy Spent"
unit_prefix: k
round: 2
- platform: integration
source: sensor.familyroom_tv_smartplug_energy_power
name: "Family Room TV Energy Spent"
unit_prefix: k
round: 2
- platform: integration
source: sensor.bugzapper_smartplug_energy_power
name: "Bug Zapper Energy Spent"
unit_prefix: k
round: 2
- platform: solaredge_local
name: SolarEdge
ip_address: 192.168.1.118
- platform: radarr
api_key: !secret radarr_api_key
host: !secret radarr_host
port: !secret radarr_port
monitored_conditions:
- movies
- upcoming
- diskspace
- commands
- status
days: 14
unit: TB
- platform: radarr_upcoming_media
api_key: !secret radarr_api_key
host: !secret radarr_host
port: !secret radarr_port
days: 14
ssl: false
theaters: false
max: 5
- platform: sonarr_upcoming_media
api_key: !secret sonarr_api_key
host: !secret sonarr_host
port: !secret sonarr_port
days: 14
ssl: false
max: 5
- platform: emby_upcoming_media
api_key: !secret emby_api_key
user_id: !secret emby_user_id
host: !secret emby_host
port: !secret emby_port
ssl: false
max: 5
use_backdrop: true
group_libraries: true
- platform: qbittorrent
url: !secret qbittorrent_host
username: !secret qbittorrent_username
password: !secret qbittorrent_password
- platform: openhardwaremonitor
host: !secret open_hardware_monitor_host
- platform: min_max
name: home_temperature_average
type: mean
entity_ids:
- sensor.dining_room_temperature_humidity_sensor_temperature
- sensor.henrys_room_temperature_humidity_sensor_temperature
- sensor.cellar_temperature_humidity_sensor_temperature
- sensor.master_bedroom_temperature_humidity_sensor_temperature
- sensor.kitchen_temperature_humidity_sensor_temperature
- sensor.office_temperature_humidity_sensor_temperature
- platform: min_max
name: home_pressure_average
type: mean
entity_ids:
- sensor.dining_room_temperature_humidity_sensor_pressure
- sensor.henrys_room_temperature_humidity_sensor_pressure
- sensor.cellar_temperature_humidity_sensor_pressure
- sensor.master_bedroom_temperature_humidity_sensor_pressure
- snesor.kitchen_temperature_humidity_sensor_pressure
- sensor.office_temperature_humidity_sensor_pressure
- platform: min_max
name: home_humidity_average
type: mean
entity_ids:
- sensor.dining_room_temperature_humidity_sensor_humidity
- sensor.henrys_room_temperature_humidity_sensor_humidity
- sensor.cellar_temperature_humidity_sensor_humidity
- sensor.master_bedroom_temperature_humidity_sensor_humidity
- snesor.kitchen_temperature_humidity_sensor_humidity
- sensor.office_temperature_humidity_sensor_humidity
- platform: version
- platform: statistics
name: power_per_minute
entity_id: sensor.kitchen_fridge_smartplug_energy_total
sampling_size: 60 # This is assuming you are getting 1 sample a second. Adjust otherwise.
- platform: template
sensors:
realtime_power:
friendly_name: Realtime Power
value_template: "{{ state_attr('sensor.energy_sensor_statistics', 'mean') / (1000 * 60) }}"
- platform: statistics
entity_id: sensor.energy
name: Energy Sensor Statistics
- platform: mqtt
name: Air Quality - PM 1 um
unit_of_measurement: μg/m3
state_topic: tele/cfd682/AE1P0
- platform: mqtt
name: Air Quality - PM 2.5 um
unit_of_measurement: μg/m3
state_topic: tele/cfd682/AE2P5
- platform: mqtt
name: Air Quality - PM 10 um
unit_of_measurement: μg/m3
state_topic: tele/cfd682/AE10P0
- platform: mqtt
name: Air Quality - Particals 0.3 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD0P3
- platform: mqtt
name: Air Quality - Particals 0.5 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD0P5
- platform: mqtt
name: Air Quality - Particals 1 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD1P0
- platform: mqtt
name: Air Quality - Particals 2.5 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD2P5
- platform: mqtt
name: Air Quality - Particals 5 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD5P0
- platform: mqtt
name: Air Quality - Particals 10 um
unit_of_measurement: ppd
state_topic: tele/cfd682/PPD10P0
- platform: rest
name: Kitchen Tablet
json_attributes:
- isScreenOn
- batteryLevel
- kioskMode
- screenBrightness
- motionDetectorState
- maintenanceMode
- appFreeMemory
- appUsedMemory
- totalFreeMemory
- totalUsedMemory
- hostname4
- ip4
- mac
- locationLatitude
- locationLongitude
- locationAltitude
- startUrl
- currentPage
resource: !secret tablet_info
value_template: '{{ value_json.isScreenOn }}'
scan_interval: 10
- platform: rest
name: Kitchen Tablet Settings
json_attributes:
- timeToScreenOffV2
- screenBrightness
- motionSensitivity
- motionDection
- motionDetectionAcoustic
- motionSensitivityAcoustic
- screenOffInDarkness
- darknessLevel
resource: !secret tablet_settings
value_template: '{{ value_json.motionSensitivity }}'
scan_interval: 10
# - platform: mqtt
# name: "Workshop Light Current usage"
# state_topic: "shellies/shellyswitch25-workshop/relay/0/power"
# unit_of_measurement: 'W'
# device_class: 'power'
# state_class: 'measurement'
# - platform: mqtt
# name: "Under House Storage Light Current usage"
# state_topic: "shellies/shellyswitch25-workshop/relay/1/power"
# unit_of_measurement: 'W'
# device_class: 'power'
# state_class: 'measurement'
# - platform: mqtt
# name: "Workshop Shelly Temp"
# state_topic: "shellies/shellyswitch25-workshop/temperature"
# unit_of_measurement: 'c'
# - platform: template
# sensors:
# dishwaser:
# friendly_name: Dishwasher
# value_template: "{{ state_attr('sensor.dishwasher_vibration_action', 'strength') }}"
# bedroom_temperature:
# friendly_name: "Bedroom temperature"
# value_template: "{{ state_attr('climate.master_bedroom_aircon', 'current_temperature') }}"
# unit_of_measurement: "°C"
# living_room_temperature:
# friendly_name: "Living Room temperature"
# value_template: "{{ state_attr('climate.living_room_aircon', 'current_temperature') }}"
# unit_of_measurement: "°C"
# henrys_room_temperature:
# friendly_name: "Henry Room temperature"
# value_template: "{{ state_attr('climate.henrys_room_aircon', 'current_temperature') }}"
# unit_of_measurement: "°C"
# office_temperature:
# friendly_name: "Office temperature"
# value_template: "{{ state_attr('climate.office_aircon', 'current_temperature') }}"
# unit_of_measurement: "°C"
# outdoor_temperature:
# friendly_name: "Outdoor temperature"
# value_template: "{{ state_attr('climate.living_room_aircon', 'outdoor_temp') }}"
# unit_of_measurement: "°C"
# front_door:
# friendly_name: "Front Door"
# value_template: >-
# {% if is_state('binary_sensor.front_door_sensor_contact', 'on') %}
# Door Open
# {% else %}
# Door Closed
# {% endif %}
# icon_template: >-
# {% if is_state('binary_sensor.front_door_sensor_contact', 'on') %}
# mdi:door-open
# {% else %}
# mdi:door-closed
# {% endif %}
# living_room_door:
# friendly_name: "Living Room Door"
# value_template: >-
# {% if is_state('binary_sensor.living_room_sliding_door_sensor_contact', 'on') %}
# Door Open
# {% else %}
# Door Closed
# {% endif %}
# icon_template: >-
# {% if is_state('binary_sensor.living_room_sliding_door_sensor_contact', 'on') %}
# mdi:door-open
# {% else %}
# mdi:door-closed
# {% endif %}
# office_door:
# friendly_name: "Office Door"
# value_template: >-
# {% if is_state('binary_sensor.office_sliding_door_sensor_contact', 'on') %}
# Door Open
# {% else %}
# Door Closed
# {% endif %}
# icon_template: >-
# {% if is_state('binary_sensor.office_sliding_door_sensor_contact', 'on') %}
# mdi:door-open
# {% else %}
# mdi:door-closed
# {% endif %}
# home_temperature_average_rounded:
# friendly_name: "Home Temperature Average"
# unit_of_measurement: '°C'
# value_template: "{{ (states('sensor.home_temperature_average') | float ) | round(1) }}"
# home_pressure_average_rounded:
# friendly_name: "Home Pressure Average"
# unit_of_measurement: 'hPa'
# value_template: "{{ (states('sensor.home_pressure_average') | float ) | round(0) }}"
# home_humidity_average_rounded:
# friendly_name: "Home Humidity Average"
# unit_of_measurement: '%'
# value_template: "{{ (states('sensor.home_humidity_average') | float ) | round(0) }}"
# energy_consumption_total:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_total')|float + states('sensor.kitchen_diswasher_smartplug_energy_total')|float + states('sensor.server_smartplug_energy_total')|float + states('sensor.gamingrig_smartplug_energy_total')|float + states('sensor.bug_zapper_smart_plug_energy_total')|float )|round(2) }}"
# energy_consumption_yesterday:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_yesterday')|float + states('sensor.kitchen_diswasher_smartplug_energy_yesterday')|float + states('sensor.server_smartplug_energy_yesterday')|float + states('sensor.gamingrig_smartplug_energy_yesterday')|float + states('sensor.bug_zapper_smart_plug_energy_yesterday')|float )|round(2) }}"
# energy_consumption_today:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_today')|float + states('sensor.kitchen_diswasher_smartplug_energy_today')|float + states('sensor.server_smartplug_energy_today')|float + states('sensor.gamingrig_smartplug_energy_today')|float + states('sensor.bug_zapper_smart_plug_energy_today')|float )|round(2) }}"
# carport_christmas_lights_cost_total:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_total')|float * states('input_number.energy_cost')|float )|round(2) }}"
# carport_christmas_lights_cost_yesterday:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_yesterday')|float * states('input_number.energy_cost')|float )|round(2) }}"
# carport_christmas_lights_cost_today:
# value_template: "{{ ( states('sensor.carport_christmas_lights_smart_plug_energy_today')|float * states('input_number.energy_cost')|float )|round(2) }}"
# dishwasher_cost_total:
# value_template: "{{ ( states('sensor.kitchen_dishwasher_smartplug_energy_total')|float * states('input_number.energy_cost')|float )|round(2) }}"
# dishwasher_cost_yesterday:
# value_template: "{{ ( states('sensor.kitchen_dishwasher_smartplug_energy_yesterday')|float * states('input_number.energy_cost')|float )|round(2) }}"
# dishwasher_cost_today:
# value_template: "{{ ( states('sensor.kitchen_dishwasher_smartplug_energy_today')|float * states('input_number.energy_cost')|float )|round(2) }}"
# server_cost_total:
# value_template: "{{ ( states('sensor.server_smartplug_energy_total')|float * states('input_number.energy_cost')|float )|round(2) }}"
# server_cost_yesterday:
# value_template: "{{ ( states('sensor.server_smartplug_energy_yesterday')|float * states('input_number.energy_cost')|float )|round(2) }}"
# server_cost_today:
# value_template: "{{ ( states('sensor.server_smartplug_energy_today')|float * states('input_number.energy_cost')|float )|round(2) }}"
# gamingrig_cost_total:
# value_template: "{{ ( states('sensor.gamingrig_smartplug_energy_total')|float * states('input_number.energy_cost')|float )|round(2) }}"
# gamingrig_cost_yesterday:
# value_template: "{{ ( states('sensor.gamingrig_smartplug_energy_yesterday')|float * states('input_number.energy_cost')|float )|round(2) }}"
# gamingrig_cost_today:
# value_template: "{{ ( states('sensor.gamingrig_smartplug_energy_today')|float * states('input_number.energy_cost')|float )|round(2) }}"
# bug_zapper_cost_total:
# value_template: "{{ ( states('sensor.bug_zapper_smart_plug_energy_total')|float * states('input_number.energy_cost')|float )|round(2) }}"
# bug_zapper_cost_yesterday:
# value_template: "{{ ( states('sensor.bug_zapper_smart_plug_energy_yesterday')|float * states('input_number.energy_cost')|float )|round(2) }}"
# bug_zapper_cost_today:
# value_template: "{{ ( states('sensor.bug_zapper_smart_plug_energy_today')|float * states('input_number.energy_cost')|float )|round(2) }}"
# total_cost:
# value_template: "{{ states('sensor.carport_christmas_lights_cost_total')|float + states('sensor.dishwasher_cost_total')|float + states('sensor.server_cost_total')|float + states('sensor.bug_zapper_smart_plug_energy_total')|float + states('sensor.gamingrig_cost_total')|float }}"
# total_cost_yesterday:
# value_template: "{{ states('sensor.carport_christmas_lights_cost_yesterday')|float + states('sensor.dishwasher_cost_yesterday')|float + states('sensor.server_cost_yesterday')|float + states('sensor.bug_zapper_smart_plug_energy_yesterday')|float + states('sensor.gamingrig_cost_yesterday')|float }}"
# total_cost_today:
# value_template: "{{ states('sensor.carport_christmas_lights_cost_today')|float + states('sensor.dishwasher_cost_today')|float + states('sensor.server_cost_today')|float + states('sensor.bug_zapper_smart_plug_energy_today')|float + states('sensor.gamingrig_cost_today')|float }}"
#- platform: sonarr_upcoming_media
# api_key: !secret sonarr_api_key
# host: !secret sonarr_host
# port: !secret sonarr_port
# days: 7
# ssl: false
# max: 10