-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·808 lines (645 loc) · 16.5 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
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
homeassistant:
name: Home
latitude: 60.108695
longitude: 11.368363
elevation: 220
unit_system: metric
time_zone: Europe/Oslo
currency: NOK
allowlist_external_dirs:
- /tmp
packages: !include_dir_named packages
# auth_providers:
# - type: trusted_networks
# trusted_networks:
# - 192.168.1.60/32
##Define External\Internal URI##
external_url: !secret baseurl
internal_url: !secret baseurl
##Eirikz added MFA###
auth_mfa_modules:
- type: totp
customize: !include customize.yaml
### Enable system health ###
system_health:
### Enable mobile app (yuck) ###
mobile_app:
### Enable energy dashboards ###
energy:
### Enable blueprints ###
blueprint:
### Enable bluetooth ###
bluetooth:
### Enables the frontend ###
frontend:
### Enables configuration UI ###
config:
### Enables zeroconf ###
zeroconf:
### Enable weather ###
weather:
### Enable python scripts ###
python_script:
### Enable conversation ###
conversation:
### Enable history ###
history:
### Enable logbook ###
logbook:
### Enable the map ###
map:
### Enable sun integration ###
sun:
### WoL ###
wake_on_lan:
### Persons ###
person:
### Webhooks ###
webhook:
### SmartIR ###
smartir:
### MariaDB instead of SQLite (yuck) ###
recorder:
db_url: !secret mariadb
### Enable influxdb for longterm storage of data ###
#influxdb:
# api_version: 2
# ssl: false
# host: mirai.eirikzlab.local
# port: 8086
# token: !secret influxtoken
# organization: !secret influxorg
# bucket: eirikz
### Enable utility meter ###
utility_meter:
### Enable powercalc ###
powercalc:
### Includes ###
group: !include groups.yaml
automation: !include automations.yaml
automation mine: !include_dir_merge_list automation/
script: !include scripts.yaml
sensor: !include sensors.yaml
homekit: !include homekit.yaml
zone: !include zones.yaml
scene: !include scenes.yaml
template: !include template.yaml
### Configure http server ###
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.19.0.0/16
- 172.18.0.0/16
- 172.20.0.0/16
### Enable logger ###
logger:
default: warn
logs:
homeassistant.components.google_assistant.http: critical
### Input booleans ###
input_boolean:
dummy_fremme:
name: "Dummy Fremme Input Boolean"
icon: mdi:sticker-emoji
initial: on
dummy_bak:
name: "Dummy Bak Input Boolean"
icon: mdi:sticker-emoji
initial: on
torketrommel:
vaskemaskin:
### Input datetime ###
input_datetime:
torketrommel_start:
has_date: true
has_time: true
vaskemaskin_start:
has_date: true
has_time: true
### Input Text ###
input_text:
symfonisk_eirik_kontor:
name: bahhumbug
initial: text
kjokken_lyd:
name: kjokkenlyd
initial: text
### Input Selects ####
input_select:
loftlys:
name: Loftlys
options:
- loftheltpa
- loftheltav
icon: mdi:lightbulb-on-outline
eirik_status_dropdown:
name: Eirik
options:
- Hjemme
- Kom akkurat hjem
- Dro akkurat ut
- Ute
- Bortreist
initial: Hjemme
w_status_dropdown:
name: W
options:
- Hjemme
- Kom akkurat hjem
- Dro akkurat ut
- Ute
- Bortreist
initial: Hjemme
w_kontor:
name: W Kontor Bryter
options:
- w_kontor_1
- w_kontor_2
- w_kontor_3
- w_kontor_4
- w_kontor_5
initial: w_kontor_1
vaskemaskin_status:
name: Vaskemaskin Status
options:
- "Av"
- "Vasker"
initial: "Av"
icon: mdi:washing-machine
torketrommel_status:
name: Tørketrommel Status
options:
- "Av"
- "Tørker"
initial: "Av"
icon: mdi:washing-machine
### Enable TTS ###
tts:
- platform: google_translate
service_name: google_say
cache: true
cache_dir: /tmp/tts
language: 'no'
### Telldus Live ###
tellduslive:
host: !secret telldusip
### Lights ###
mqtt:
light:
### Zigbee2mqtt groups ###
- schema: json
name: KjellerGruppe
command_topic: "zigbee2mqtt/kjellergruppe/set"
state_topic: "zigbee2mqtt/kjellergruppe"
color_temp: false
brightness: true
rgb: false
- schema: json
name: soveromgruppe
command_topic: "zigbee2mqtt/soveromgruppe/set"
state_topic: "zigbee2mqtt/soveromgruppe"
color_temp: true
brightness: true
rgb: false
- schema: json
name: utegruppe
command_topic: "zigbee2mqtt/utegruppe/set"
state_topic: "zigbee2mqtt/utegruppe"
color_temp: true
brightness: true
rgb: false
- schema: json
name: Kveldsgruppe
command_topic: "zigbee2mqtt/kvelds_gruppe/set"
state_topic: "zigbee2mqtt/kvelds_gruppe"
color_temp: true
brightness: true
rgb: false
sensor:
- name: "PowerElwiz"
state_topic: "elwiz/sensor/data/state"
unit_of_measurement: "kW"
value_template: "{{ value_json.power }}"
- name: leaf_battery_level
state_topic: "leaf/battery/percentage"
device_class: battery
- name: leaf_cabintemp
state_topic: "leaf/climate/cabinTemperatureC"
device_class: temperature
- name: leaf_climaterunning
state_topic: "leaf/climate/runningStatus"
- name: leaf_position_lat
state_topic: "leaf/location/latitude"
- name: leaf_position_lon
state_topic: "leaf/location/longitude"
button:
- unique_id: climate_start_leaf
name: "Leaf start varme"
command_topic: "leaf/SJNFAAZE1U0111923/command/climate"
payload_press: "start"
- unique_id: climate_stop_leaf
name: "Leaf stopp varme"
command_topic: "leaf/SJNFAAZE1U0111923/command/climate"
payload_press: "stop"
- unique_id: climate_get_leaf
name: "Leaf hent varme"
command_topic: "leaf/SJNFAAZE1U0111923/command/climate"
payload_press: "update"
### Light Switches ###
light:
- platform: switch
name: Stue Gangbord
entity_id: switch.lys_gangbord
- platform: switch
name: Kjokken Stor Pære
entity_id: switch.kjokken_stor_paere
### Light Groups ###
- platform: group
name: Alvakjokken
entities:
- light.alva_mikro
- light.alva_komfyr
- light.alva_benkelys
- platform: group
name: Soverom_lys
entities:
- light.soverom_hodegavel
- light.eirik_soverom
- light.soverom_lampe_w
- platform: group
name: W_kontor_lys_gruppe
entities:
- light.w_kontor_liten1
- light.w_kontor_liten2
- light.w_kontor_tak
- light.w_kontor_spiss
- platform: group
name: Primær_lys
entities:
- light.stue_stuebord
- light.stue_gul_gulvlampe
- platform: group
name: Kjeller_lys
entities:
- light.kjeller_ganglys_light
- light.kjeller_vaskerom1_light
- light.kjeller_vaskerom2_light
- light.kjeller_vaskerom3_light
- light.kjeller_trappelys_light
- light.kjeller_fryserom_light
- light.kjeller_bod_light
- platform: group
name: Loft_lys
entities:
- light.loft_taklys_1
- light.loft_taklys_2
- light.loft_gulvlampe1
- light.loft_gulvlampe2
- light.loft_gulvlampe3
- light.loft_trappelys
- platform: group
name: Do_lys
entities:
- light.do_hyllelampe
- light.do_taklys
- platform: group
name: garasjegruppe
entities:
- light.garasjelys1
- platform: group
name: kjokkengrp
entities:
- light.kjokken_benkelys
- light.kjokken_hengelampe
- light.kjokken_taklampe
- light.kjokken_ventilator
- light.kjokken_vinduslampe
- light.kjokkenbenk_under
### Yeelight ###
yeelight:
devices:
192.168.1.81:
name: "Loft Taklys 1"
model: color2
192.168.1.82:
name: "Loft Taklys 2"
model: color2
192.168.1.83:
name: "Soverom Hodegavel"
model: strip1
### Switches ###
switch:
### Switch Templates ###
- platform: template
switches:
garasjedor:
value_template: "{{ is_state('binary_sensor.garasjeport_sensor', 'on') }}"
turn_on:
service: cover.open_cover
data:
entity_id: cover.garasjeport_cover
turn_off:
service: cover.close_cover
data:
entity_id: cover.garasjeport_cover
icon_template: >-
{% if is_state('cover.garasjeport_cover', 'open') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
media_player:
### Broadlink devices ###
- platform: smartir
name: LoftTV
unique_id: lofttv
device_code: 1060
controller_data: remote.broadlink_loft_remote
- platform: smartir
name: LoftForsterker
unique_id: loftforsterker
device_code: 1121
controller_data: remote.broadlink_loft_remote
### YAML mode for Lovelace ###
lovelace:
mode: yaml
resources:
- url: /hacsfiles/calendar-card/calendar-card.js
type: js
- url: /hacsfiles/light-entity-row/light-entity-row.js
type: js
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/spotify-card/spotify-card.js
type: module
- url: /hacsfiles/seventeen-track-card/seventeen-track-card.js
type: js
- url: /hacsfiles/simple-thermostat/simple-thermostat.js
type: module
- url: /hacsfiles/surveillance-card/surveillance-card.js
type: module
- url: /hacsfiles/travel-time-card/travel-time-card.js
type: js
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: js
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: js
- url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/upcoming-media-card/upcoming-media-card.js
type: js
- url: /hacsfiles/lovelace-card-templater/lovelace-card-templater.js
type: js
- type: js
url: /hacsfiles/lovelace-valetudo-map-card/valetudo-map-card.js
- url: https://cdn.jsdelivr.net/gh/bramkragten/weather-card/dist/weather-card.min.js
type: module
- url: /hacsfiles/frigate-hass-card/frigate-hass-card.js
type: module
- url: /hacsfiles/atomic-calendar-revive/atomic-calendar-revive.js
type: module
- url: /hacsfiles/lovelace-mushroom/mushroom.js
type: module
- url: /hacsfiles/clock-weather-card/clock-weather-card.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: module
- url: /hacsfiles/bignumber-card/bignumber-card.js
type: module
- url: /hacsfiles/bignumber-card/bignumber-card.js
type: module
### Binary sensors ###
binary_sensor:
### Template for both basement doors open \ close will trigger lights in basement ###
- platform: template
sensors:
kjeller_apen:
friendly_name: "Kjellerdører åpne"
device_class: door
value_template: >-
{{ is_state('binary_sensor.kjeller_trappedor_contact', 'on') or
is_state('binary_sensor.kjeller_garasjedor_contact', 'on') }}
### Template for if any of the garage doors are open \ triggering lights ###
- platform: template
sensors:
garasje_apen:
friendly_name: "Garasjen er entret"
device_class: door
value_template: >-
{{ is_state('binary_sensor.kjeller_garasjedor_contact', 'on') or
is_state('binary_sensor.garasjeport_sensor', 'on') }}
### Template to see if there is any activity around the attic sensors ###
- platform: template
sensors:
loft_aktivitet:
friendly_name: "Loft Aktivitet"
device_class: motion
value_template: >-
{{ is_state('binary_sensor.loft_bevegelse_occupancy', 'on') or
is_state('binary_sensor.loft_trappesensor_occupancy', 'on') }}
### Notify ###
notify:
- name: 'Eirikz Telegram'
platform: telegram
chat_id: !secret eirikzchatid
- name: 'W Telegram'
platform: telegram
chat_id: !secret wchatid
- name: 'WE Telegram'
platform: group
services:
- service: eirikz_telegram
- service: w_telegram
### Telegram Bot ###
telegram_bot:
- platform: polling
api_key: !secret telegram_api
allowed_chat_ids:
- !secret eirikzchatid
- !secret wchatid
### Climate ###
climate:
- platform: climate_ip
config_file: '/config/custom_components/climate_ip/samsung_2878.yaml'
ip_address: !secret climateip
token: !secret climatetoken
mac: !secret climatemac
name: 'Varmepumpe Stue'
poll: True
- platform: smartir
name: 'Varmepumpe Soverom'
unique_id: soverompumpe
device_code: 1501
controller_data: remote.broadlink_soverom_remote
temperature_sensor: sensor.soverom_temperatur_temperature
humidity_sensor: sensor.soverom_temperatur_humidity
### Adaptive lighting config ###
adaptive_lighting:
- name: "primaergruppe"
lights:
- light.primaer_lys
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "peis"
lights:
- light.peislys
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 20
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "do"
lights:
- light.do_taklys
- light.do_hyllelampe
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 15
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "kjeller"
lights:
- light.kjellergruppe
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "loft"
lights:
- light.loft_lys
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "kveldsgruppe"
lights:
- light.kveldsgruppe
# - light.kjokken_bordlampe
prefer_rgb_color: false
transition: 45
# only_once: true
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
detect_non_ha_changes: true
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "kjokkenbenkelys"
lights:
- light.kjokkenbenk_under
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 20
max_brightness: 70
min_color_temp: 4000
max_color_temp: 6000
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
detect_non_ha_changes: true
- name: "eirikkontor"
lights:
- light.eirikgruppe
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
- name: "kjokken"
lights:
- light.kjokkengrp
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 50
min_color_temp: 2000
max_color_temp: 5500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
### Pull home calendar into HA ###
calendar:
- platform: caldav
username: !secret caldavuser
password: !secret caldavpass
url: !secret caldavurl
### Importing Wrok Calendar ###
ics_calendar:
calendars:
- name: "EzCal"
url: !secret ezhpecal
### Home connect alternative integration ###
home_connect_alt:
client_id: !secret homeconnectaltclientid
client_secret: !secret homeconnectaltclientsecret
### Manual Google Assitant integration becuase I have intention of using Nabu Casa ###
google_assistant:
project_id: home-assistant-6f0bd
service_account: !include SERVICE_ACCOUNT.json
report_state: true
expose_by_default: false
exposed_domains:
- switch
- light
entity_config:
light.kjokkengrp:
room: KJØKKEN
aliases: kjøkkenlys
name: kjøkkenlys
light.utegruppe:
room: UTE
aliases: Utelys
name: Utelys