-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
579 lines (544 loc) · 16.9 KB
/
configuration.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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret latitude
longitude: !secret longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Amsterdam
# Customization file
customize: !include customize.yaml
# Packages
packages: !include_dir_named packages
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
themes: !include themes.yaml
# Lovelace
lovelace:
mode: yaml
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
# discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
stream:
ffmpeg:
# MySQL instead of SQLite
recorder:
db_url: !secret database
purge_keep_days: 3
# include:
# domains:
# - device_tracker
# - light
# entities:
# - climate.woonkamer
# - sensor.temperature_158d00027308f7
# - sensor.temperature_158d000272fed0
# - sensor.cv_druk
# - sensor.wasmachine_watts
# - sensor.droger_watts
# - binary_sensor.door_window_sensor_158d00022daba6
# - binary_sensor.door_window_sensor_158d0002518b9d
# - binary_sensor.door_window_sensor_158d00027502b6
# - binary_sensor.door_window_sensor_158d0002bf9d5c
# - binary_sensor.door_window_sensor_158d0002434bb7
# - binary_sensor.motion_sensor_158d0002b48e7e
# - binary_sensor.motion_sensor_158d0002b5d5d1
# - binary_sensor.motion_sensor_158d0002b4331f
# - binary_sensor.water_leak_sensor_158d00023a4bcf
# - sensor.power_consumption
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Text to speech
tts:
- platform: google
language: 'nl'
# Cloud
cloud:
# System health
system_health:
# Xiaomi
xiaomi_aqara:
discovery_retry: 5
gateways:
- key: !secret xiaomi_aqara_gateway_key
# Asus router
asuswrt:
host: !secret asuswrt_host
username: !secret asuswrt_username
password: !secret asuswrt_password
device_tracker:
- platform: asuswrt
track_new_devices: False
- platform: google_maps
username: !secret google_username
password: !secret google_password
max_gps_accuracy: 100
# Zones
zone:
- name: justbetter
latitude: !secret justbetter_latitude
longitude: !secret justbetter_longitude
icon: mdi:office-building
- name: kapsalon
latitude: !secret kapsalon_latitude
longitude: !secret kapsalon_longitude
icon: mdi:content-cut
# Cameras
camera:
- platform: generic
name: Voor
still_image_url: !secret camera_voor_image
stream_source: !secret camera_voor_stream
username: !secret camera_username
password: !secret camera_password
authentication: digest
- platform: generic
name: Tuin
still_image_url: !secret camera_tuin_image
stream_source: !secret camera_tuin_stream
username: !secret camera_username
password: !secret camera_password
authentication: digest
- platform: generic
name: Voor 2
still_image_url: !secret camera_voor2_image
stream_source: !secret camera_voor2_stream
username: !secret camera_username
password: !secret camera_password
authentication: digest
climate:
# InComfort
- platform: InComfort
name: Woonkamer
host: !secret incomfort_host
sensor:
# Plex server
- platform: plex
name: Plex server
host: !secret plex_host_remote
username: !secret plex_username
password: !secret plex_password
# Plex home
- platform: plex
name: Plex home
host: !secret plex_host_home
username: !secret plex_username
password: !secret plex_password
# Weer
- platform: buienradar
monitored_conditions:
- condition
- conditiondetailed
- symbol
- temperature
# PostNL
- platform: postnl
name: PostNL
username: !secret postnl_username
password: !secret postnl_password
# Xiaomi Flower Care (also see the "plant" configuration)
- platform: miflora
name: plant 1
mac: 'C4:7C:8D:67:3F:51'
- platform: miflora
name: plant 2
mac: 'C4:7C:8D:67:3E:BB'
- platform: miflora
name: plant 3
mac: 'C4:7C:8D:67:3E:12'
- platform: miflora
name: plant 4
mac: 'C4:7C:8D:6A:9E:DB'
- platform: miflora
name: plant 5
mac: 'C4:7C:8D:6A:9F:98'
# Droger
- platform: template
sensors:
droger_amps:
friendly_name_template: "{{ states.switch.droger.name}} amperage"
value_template: '{{ states.switch.droger.attributes["current_a"] | float }}'
unit_of_measurement: 'A'
droger_watts:
friendly_name_template: "{{ states.switch.droger.name}} wattage"
value_template: '{{ states.switch.droger.attributes["current_power_w"] | float }}'
unit_of_measurement: 'W'
droger_total_kwh:
friendly_name_template: "{{ states.switch.droger.name}} totaal"
value_template: '{{ states.switch.droger.attributes["total_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
droger_volts:
friendly_name_template: "{{ states.switch.droger.name}} voltage"
value_template: '{{ states.switch.droger.attributes["voltage"] | float }}'
unit_of_measurement: 'V'
droger_today_kwh:
friendly_name_template: "{{ states.switch.droger.name}} vandaag"
value_template: '{{ states.switch.droger.attributes["today_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
# Wasmachine
- platform: template
sensors:
wasmachine_amps:
friendly_name_template: "{{ states.switch.wasmachine.name}} amperage"
value_template: '{{ states.switch.wasmachine.attributes["current_a"] | float }}'
unit_of_measurement: 'A'
wasmachine_watts:
friendly_name_template: "{{ states.switch.wasmachine.name}} wattage"
value_template: '{{ states.switch.wasmachine.attributes["current_power_w"] | float }}'
unit_of_measurement: 'W'
wasmachine_total_kwh:
friendly_name_template: "{{ states.switch.wasmachine.name}} totaal"
value_template: '{{ states.switch.wasmachine.attributes["total_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
wasmachine_volts:
friendly_name_template: "{{ states.switch.wasmachine.name}} voltage"
value_template: '{{ states.switch.wasmachine.attributes["voltage"] | float }}'
unit_of_measurement: 'V'
wasmachine_today_kwh:
friendly_name_template: "{{ states.switch.wasmachine.name}} vandaag"
value_template: '{{ states.switch.wasmachine.attributes["today_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
# Jacuzzi
- platform: template
sensors:
jacuzzi_amps:
friendly_name_template: "{{ states.switch.jacuzzi.name}} amperage"
value_template: '{{ states.switch.jacuzzi.attributes["current_a"] | float }}'
unit_of_measurement: 'A'
jacuzzi_watts:
friendly_name_template: "{{ states.switch.jacuzzi.name}} wattage"
value_template: '{{ states.switch.jacuzzi.attributes["current_power_w"] | float }}'
unit_of_measurement: 'W'
jacuzzi_total_kwh:
friendly_name_template: "{{ states.switch.jacuzzi.name}} totaal"
value_template: '{{ states.switch.jacuzzi.attributes["total_energy_kwh"] | float + 190 + 45 + 228 | round(3) }}'
unit_of_measurement: 'kWh'
jacuzzi_volts:
friendly_name_template: "{{ states.switch.jacuzzi.name}} voltage"
value_template: '{{ states.switch.jacuzzi.attributes["voltage"] | float }}'
unit_of_measurement: 'V'
jacuzzi_today_kwh:
friendly_name_template: "{{ states.switch.jacuzzi.name}} vandaag"
value_template: '{{ states.switch.jacuzzi.attributes["today_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
jacuzzi_today_kwh_euro:
friendly_name_template: "{{ states.switch.jacuzzi.name}} vandaag"
value_template: '{{ (states.switch.jacuzzi.attributes["today_energy_kwh"] | float * 0.22) | round(2) }}'
unit_of_measurement: 'euro'
jacuzzi_total_kwh_euro:
friendly_name_template: "{{ states.switch.jacuzzi.name}} totaal"
value_template: '{{ (states("sensor.jacuzzi_total_kwh") | float * 0.22) | round(2) }}'
unit_of_measurement: 'euro'
# DSMR
- platform: dsmr
port: /dev/ttyUSB0
dsmr_version: 5
# Power consumption/production low/normal merged
- platform: template
sensors:
power_consumption_all:
friendly_name: "Power Consumption (all)"
value_template: "{{ (states('sensor.power_consumption_normal') | float + states('sensor.power_consumption_low') | float) | round(3) }}"
unit_of_measurement: 'kWh'
power_production_all:
friendly_name: "Power production (all)"
value_template: "{{ (states('sensor.power_production_normal') | float + states('sensor.power_production_low') | float) | round(3) }}"
unit_of_measurement: 'kWh'
# CV Pressure
- platform: rest
resource: !secret incomfort_data_url
name: CV Druk
device_class: pressure
unit_of_measurement: Bar
value_template: '{{ (value_json.ch_pressure_lsb + value_json.ch_pressure_msb * 256) / 100 }}'
# GoodWe Inverter
- platform: sems
username: !secret sems_username
password: !secret sems_password
station_id: !secret sems_station
scan_interval: 60
- platform: template
sensors:
pv_outputpower:
value_template: '{{ states.sensor.sems_portal.attributes.outputpower }}'
unit_of_measurement: 'W'
friendly_name: "PV Power output"
pv_outputpower_kw:
value_template: '{{ states.sensor.sems_portal.attributes.outputpower / 1000 }}'
unit_of_measurement: 'kW'
friendly_name: "PV Power output kW"
pv_volt:
value_template: '{{ states.sensor.sems_portal.attributes.vpv1 }}'
unit_of_measurement: 'V'
friendly_name: "PV Volt"
pv_temperature:
value_template: '{{ states.sensor.sems_portal.attributes.tempperature }}'
unit_of_measurement: 'C'
friendly_name: "PV Temperature"
pv_eday:
value_template: '{{ states.sensor.sems_portal.attributes.eday }}'
unit_of_measurement: 'kWh'
friendly_name: "PV energy day"
pv_etotal:
value_template: '{{ states.sensor.sems_portal.attributes.etotal }}'
unit_of_measurement: 'kWh'
friendly_name: "PV energy total"
pv_iday:
value_template: '{{ states.sensor.sems_portal.attributes.iday | round(2) }}'
unit_of_measurement: 'euro'
friendly_name: "PV income day"
pv_itotal:
value_template: '{{ states.sensor.sems_portal.attributes.itotal | round(2) }}'
unit_of_measurement: 'euro'
friendly_name: "PV income total"
utility_meter:
gas_monthly:
source: sensor.gas_consumption
cycle: monthly
gas_yearly:
source: sensor.gas_consumption
cycle: yearly
energy_monthly:
source: sensor.power_consumption_all
cycle: monthly
energy_yearly:
source: sensor.power_consumption_all
cycle: yearly
# jacuzzi_daily:
# source: sensor.jacuzzi_total_kwh
# cycle: daily
# jacuzzi_weekly:
# source: sensor.jacuzzi_total_kwh
# cycle: weekly
# jacuzzi_monthly:
# source: sensor.jacuzzi_total_kwh
# cycle: monthly
# jacuzzi_yearly:
# source: sensor.jacuzzi_total_kwh
# cycle: yearly
# Xiaomi Flower Care (also see the "sensor" configuration)
plant:
plant_1:
sensors:
moisture: sensor.plant_1_moisture
battery: sensor.plant_1_battery
temperature: sensor.plant_1_temperature
conductivity: sensor.plant_1_conductivity
brightness: sensor.plant_1_light_intensity
min_moisture: 15
max_moisture: 60
min_conductivity: 350
max_conductivity: 2000
min_temperature: 12
max_temperature: 32
min_brightness: 800
max_brightness: 15000
plant_2:
sensors:
moisture: sensor.plant_2_moisture
battery: sensor.plant_2_battery
temperature: sensor.plant_2_temperature
conductivity: sensor.plant_2_conductivity
brightness: sensor.plant_2_light_intensity
min_moisture: 7
max_moisture: 50
min_conductivity: 50
max_conductivity: 1000
min_temperature: 5
max_temperature: 35
min_brightness: 1500
max_brightness: 80000
plant_3:
sensors:
moisture: sensor.plant_3_moisture
battery: sensor.plant_3_battery
temperature: sensor.plant_3_temperature
conductivity: sensor.plant_3_conductivity
brightness: sensor.plant_3_light_intensity
min_moisture: 15
max_moisture: 60
min_conductivity: 350
max_conductivity: 2000
min_temperature: 10
max_temperature: 32
min_brightness: 2000
max_brightness: 35000
plant_4:
sensors:
moisture: sensor.plant_4_moisture
battery: sensor.plant_4_battery
temperature: sensor.plant_4_temperature
conductivity: sensor.plant_4_conductivity
brightness: sensor.plant_4_light_intensity
min_moisture: 15
max_moisture: 65
min_conductivity: 350
max_conductivity: 2000
min_temperature: 15
max_temperature: 32
min_brightness: 1000
max_brightness: 22500
plant_5:
sensors:
moisture: sensor.plant_5_moisture
battery: sensor.plant_5_battery
temperature: sensor.plant_5_temperature
conductivity: sensor.plant_5_conductivity
brightness: sensor.plant_5_light_intensity
min_moisture: 15
max_moisture: 60
min_conductivity: 350
max_conductivity: 1500
min_temperature: 10
max_temperature: 32
min_brightness: 300
max_brightness: 4000
# Light groups
light:
- platform: group
name: Alles
entities:
- light.bank
- light.gateway_light_7811dcded48c
- light.verlichting_hal
- light.verlichting_eettafel
- light.overloop
- light.slaapkamer
- light.logeerkamer
- light.verlichting_zolder
- light.verlichting_batcave
- platform: group
name: Verlichting hal
entities:
- light.deur
- light.kapstok
- light.trap
- platform: group
name: Verlichting eettafel
entities:
- light.eettafel_1
- light.eettafel_2
- platform: group
name: Verlichting Batcave
entities:
- light.bureau
- light.kastjes
- light.muur
- platform: group
name: Verlichting zolder
entities:
- light.droger
- light.hoek
- light.kastje
# Xiaomi Vacuum
vacuum:
- platform: xiaomi_miio
name: Berta
host: !secret berta_host
token: !secret berta_token
# Pushover Notifications
notify:
- platform: pushover
api_key: !secret pushover_api_key
user_key: !secret pushover_user_key
# Buienradar
weather:
- platform: buienradar
# Alarm
alarm_control_panel:
- platform: manual
name: Alarm
# TP-Link
tplink:
switch:
# Droger
- host: 192.168.1.7
# Wasmachine
- host: 192.168.1.8
# Jacuzzi
- host: 192.168.1.9
# Google Assistant
google_assistant:
project_id: !secret google_assistant_project_id
api_key: !secret google_assistant_api_key
exposed_domains:
- switch
- light
- media_player
- climate
- vacuum
entity_config:
light.alles:
name: "Alle verlichting"
light.verlichting_batcave:
room: Mancave
light.verlichting_hal:
room: Hal
light.verlichting_eettafel:
room: Woonkamer
light.verlichting_zolder:
room: Zolder
vacuum.berta:
room: Woonkamer
light.gateway_light_7811dcded48c:
room: Keuken
# Iframes
panel_iframe:
nzbget:
title: NZBget
url: !secret iframe_nzbget
icon: mdi:cloud-download
sonarr:
title: Sonarr
url: !secret iframe_sonarr
icon: mdi:download-network
radarr:
title: Radarr
url: !secret iframe_radarr
icon: mdi:download-network
portainer:
title: Portainer
url: !secret iframe_portainer
icon: mdi:docker
netdata:
title: Netdata
url: !secret iframe_netdata
icon: mdi:speedometer
zoneminder:
title: ZoneMinder
url: !secret iframe_zoneminder
icon: mdi:cctv
plex:
title: Plex
url: !secret iframe_plex
icon: mdi:plex
automation: !include automations.yaml
script: !include scripts.yaml