-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
901 lines (849 loc) Β· 40.3 KB
/
configuration.yaml
File metadata and controls
901 lines (849 loc) Β· 40.3 KB
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
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
---
################################################################################
# BASIS CONFIGURATION #
################################################################################
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Configure a default setup of Home Assistant (frontend, api, etc)
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
default_config:
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Include folder with packages
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
homeassistant:
external_url: !secret HA_external_url
packages: !include_dir_named packages
allowlist_external_dirs:
- /config
media_dirs:
media: /media
unit_system: metric
time_zone: "Europe/Copenhagen"
currency: DKK
country: DK
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Allow external access
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
http:
#ssl_certificate: /ssl/fullchain.pem
#ssl_key: /ssl/privkey.pem
# Enable parsing of the X-Forwarded-For header, passing on the clientβs
# correct IP address, since I'm using a proxied setup.
#use_x_forwarded_for: true
# List of trusted proxies, consisting of IP addresses or networks, that are
# allowed to set the X-Forwarded-For header.
#trusted_proxies: !secret http_trusted_proxies
# Enables additional IP filtering.
#ip_ban_enabled: true
# Number of failed login attempts from a single IP after which it will be
# automatically banned.
#login_attempts_threshold: 5
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Websocket API and sensor
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
websocket_api:
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Save lovelace UI in seperate file and add resources
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
lovelace:
# Define dashboards
mode: yaml
dashboards:
tablet-yaml:
mode: yaml
title: Tablet
icon: mdi:tablet
show_in_sidebar: true
filename: tablet.yaml
smart-clock-yaml:
mode: yaml
title: Smart Clock
icon: mdi:clock-digital
show_in_sidebar: true
filename: smart-clock.yaml
mobile-yaml:
mode: yaml
title: Mobile
icon: mdi:cellphone
show_in_sidebar: true
filename: mobile.yaml
# Include external resources
resources:
- url: /hacsfiles/our-groceries-card/our-groceries-card.js #
type: module
- url: /hacsfiles/lovelace-xiaomi-vacuum-card/xiaomi-vacuum-card.js #
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js #
type: module
- url: /hacsfiles/button-card/button-card.js #
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js #
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/atomic-calendar-revive/atomic-calendar-revive.js
type: module
- url: /hacsfiles/kiosk-mode/kiosk-mode.js
type: module
- url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
type: module
- url: /hacsfiles/spotify-card/spotify-card.js
type: module
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/swipe-card/swipe-card.js #
type: module
- url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
type: module
- url: /hacsfiles/lovelace-collapsable-cards/collapsable-cards.js
type: module
- url: /hacsfiles/sonos-playlist-card/sonos-playlist-card.js
type: module
- url: /hacsfiles/apexcharts-card/apexcharts-card.js
type: module
- url: /hacsfiles/history-explorer-card/history-explorer-card.js
type: module
- url: /hacsfiles/ha-sankey-chart/ha-sankey-chart.js
type: module
- url: /hacsfiles/power-flow-card-plus/power-flow-card-plus.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/compass-card/compass-card.js
type: module
- url: /hacsfiles/ha-nfl-card/ha-nfl-card.js
type: module
- url: /hacsfiles/history-explorer-card/history-explorer-card.js
type: module
- url: /hacsfiles/ha-teamtracker-card/ha-teamtracker-card.js
type: module
- url: /hacsfiles/tabbed-card/tabbed-card.js
type: module
- url: /hacsfiles/ha-sankey-chart/ha-sankey-chart.js
type: module
- url: /hacsfiles/power-flow-card-plus/power-flow-card-plus.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: module
- url: /hacsfiles/lovelace-fold-entity-row/fold-entity-row.js
type: module
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Enables the frontend and include themes
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
frontend:
themes: !include_dir_merge_named themes
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Enables IOS Actionable Notifications
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# ios:
# push:
# categories: !include ios_push_categories.yaml
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Text to speech
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
tts:
- platform: google_translate
# base_url: !secret TTS_base_url
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Additional file includes
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Limit log entries
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
recorder:
#db_url: !secret db_url
purge_keep_days: 14
#purge_interval: 1
exclude:
entities:
- sensor.date
- sensor.time
- sensor.local_time
- sensor.date_time
- sensor.time
- sensor.time_date
- sensor.time_utc
- sun.sun
- camera.streaming_enabled
- camera.reolink_e1_pro_profile000_mainstream
- camera.netatmo_kamera_gangsti
- sensor.indego_next_mow_countdown
- sensor.indego_next_mow
entity_globs:
- sensor.nodred*
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Additional logging
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#logger:
# default: critical
# logs:
# custom_components.indego: debug
# pyIndego: debug
#logger:
# default: critical
# logs:
# homeassistant.components.onvif: debug
# zeep: debug
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Forward entries for control in Apple HomeKit / Siri
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
homekit:
filter:
include_entities:
- input_boolean.anders_phone_charging
- input_boolean.manual_override
- cover.velux_window
- cover.velux_window_2
- sensor.velux_sensor_temperature
- input.home_state
- light.bryggers_2
- light.bryggers
- light.standerto
- light.hue_white_light_1
- light.dimmable_light_5
- light.dimmable_light_9
- scene.film
- scene.mellem
- scene.lege
- scene.spise
- switch.koogeek_p1_c970e7
- camera.e1_zoom_profile000_mainstream
- camera.reolink_e1_pro_profile000_mainstream
- media_player.marantz_sr7010
entity_config:
light.hue_white_light_1:
name: Spisebord
light.dimmable_light_5:
name: stander
light.dimmable_light_9:
name: Loftslampe
switch.koogeek_p1_c970e7:
name: Julelys
type: outlet
media_player.marantz_sr7010:
name: AVR
feature_list:
- feature: on_off
- feature: toggle_mute
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Use ffmpeg
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ffmpeg:
################################################################################
# SENSORS #
################################################################################
sensor:
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Local Date and time
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: time_date
display_options:
- "time"
- "date"
- "date_time"
- "time_date"
- "time_utc"
scan_interval: 55 #once every 55 secornd
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Local date and time template sensors
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: template
sensors:
local_time:
value_template: "{{states('sensor.time') and as_timestamp(now()) | timestamp_custom('%H:%M')}}"
#entity_id: sensor.time
local_weekday:
value_template: "{{ states('sensor.date') and as_timestamp(now()) | timestamp_custom('%a') | replace('Mon','Mandag') | replace('Tue','Tirsdag') | replace('Wed','Onsdag') | replace('Thu','Torsdag') | replace('Fri','Fredag') | replace('Sat','LΓΈrdag') | replace('Sun','SΓΈndag') }}"
local_date:
value_template: "{{ states('sensor.date') and as_timestamp(now()) | timestamp_custom('%a %d.%m.%y') | replace('Mon','Man') | replace('Tue','Tir') | replace('Wed','Ons') | replace('Thu','Tor') | replace('Fri','Fre') | replace('Sat','LΓΈr') | replace('Sun','SΓΈn') }}"
local_date2:
value_template: >
{{ (states('sensor.date') and as_timestamp(now()) | timestamp_custom('%a') | replace('Mon','Man') | replace('Tue','Tir') | replace('Wed','Ons') | replace('Thu','Tor') | replace('Fri','Fre') | replace('Sat','LΓΈr') | replace('Sun','SΓΈn')) + '\n' +
(states('sensor.date') and as_timestamp(now()) | timestamp_custom('%d.%m')) }}
local_date3:
value_template: >
{{ states('sensor.date') and as_timestamp(now()) | timestamp_custom('%d.%m') }}
local_sunrise:
friendly_name: Solopgang
icon_template: mdi:weather-sunset-up
value_template: >-
{{ states.sun | map(attribute="attributes.next_rising") | first | as_timestamp | timestamp_custom('%H:%M') }}
local_sunset:
friendly_name: Solnedgang
icon_template: mdi:weather-sunset-down
value_template: >-
{{ states.sun | map(attribute="attributes.next_setting") | first | as_timestamp | timestamp_custom('%H:%M') }}
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Sensor for last motion detected and door opened
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
last_motion_sensor:
value_template: "{{ states.binary_sensor | selectattr('attributes.device_class', 'eq', 'motion') | sort(attribute='last_changed',reverse=true) | map(attribute='attributes.friendly_name') | first }}"
friendly_name: Sensor som senest har registreret bevægelse
last_motion_time:
value_template: "{{ states.binary_sensor | selectattr('attributes.device_class', 'eq', 'motion') | sort(attribute='last_changed',reverse=true) | map(attribute='last_changed') | first }}"
friendly_name: Tidspunkt for seneste registrerede bevægelse
device_class: timestamp
last_door_sensor:
value_template: "{{ states.binary_sensor | selectattr('attributes.device_class', 'eq', 'opening') | sort(attribute='last_changed',reverse=true) | map(attribute='attributes.friendly_name') | first }}"
friendly_name: Senest Γ₯bne dΓΈr
last_door_time:
value_template: "{{ states.binary_sensor | selectattr('attributes.device_class', 'eq', 'opening') | sort(attribute='last_changed',reverse=true) | map(attribute='last_changed') | first }}"
friendly_name: Tidspunkt for senest Γ₯bning af dΓΈr
device_class: timestamp
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Weather forecast from YR.NO
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: weather_data
name: YR_forecast5days
forecast: 120
latitude: !secret location_latitude
longitude: !secret location_longitude
monitored_conditions:
- temperature
- symbol
- precipitation
- windSpeed
- pressure
- windDirection
- humidity
- fog
- cloudiness
- lowClouds
- mediumClouds
- highClouds
- dewpointTemperature
- platform: weather_data
name: YR_forecast24
forecast: 24
latitude: !secret location_latitude
longitude: !secret location_longitude
monitored_conditions:
- temperature
- symbol
- precipitation
- windSpeed
- pressure
- windDirection
- humidity
- fog
- cloudiness
- lowClouds
- mediumClouds
- highClouds
- dewpointTemperature
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Host system monitor
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Carnot.dk REST sensor
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: rest
resource: https://whale-app-dquqw.ondigitalocean.app/openapi/get_predict
name: elprognose_carnotdk
scan_interval: 3600
headers:
Accept: application/json
apikey: !secret carnotdk_token
username: !secret carnotdk_username
params:
daysahead: 7
energysource: spotprice
region: dk2
json_attributes:
- predictions
value_template: "{% if value_json is not none %}OK {{value_json.predictions[0].addedtime}}{% else %}Unavailable{% endif %}"
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Mealie REST (API) sensors
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_all
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
- recipeYield
- totalTime
- recipeIngredient
value_template: "{{ value_json.date }}"
# Today
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day0
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ now().strftime('%Y-%m-%d') }}
end_date: >
{{ now().strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
- recipeYield
- totalTime
- recipeIngredient
value_template: "{{ value_json.date }}"
# Tomorrow
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day1
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
- recipeYield
- totalTime
- recipeIngredient
value_template: "{{ value_json.date }}"
# Day 2
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day2
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 2)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 2)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 3
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day3
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 3)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 3)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 4
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day4
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 4)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 4)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 5
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day5
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 5)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 5)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 6
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day6
scan_interval: 3600
headers:
Authorization: !secret mealie_api_token
params:
start_date: >
{{ (now() + timedelta(days = 6)).strftime('%Y-%m-%d') }}
end_date: >
{{ (now() + timedelta(days = 6)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# System monitoring
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
sensor sys:
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /home
- type: memory_free
- type: memory_use_percent
- type: memory_use
- type: memory_free
- type: network_in
arg: eth0
- type: network_out
arg: eth0
- type: processor_use
- type: last_boot
- type: load_1m
- type: load_5m
- type: load_15m
scan_interval: 59 #once per minute
################################################################################
# INPUT DEFINITIONS #
################################################################################
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Input booleans:
#
# - for manual override of automations
# - for room selection for vaccum cleaner and conditional room views
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
input_boolean:
manual_override:
name: Manuel styring
icon: mdi:gesture-double-tap
force_data_refresh:
name: Hent seneste web data
icon: mdi:earth
initial: false
clean_room_01:
name: Gæstetoilet
icon: mdi:paper-roll
clean_room_16:
name: Office
icon: mdi:laptop
clean_room_17:
name: KΓΈkken/alrum
icon: mdi:silverware-fork-knife
clean_room_19:
name: Kids room 01
icon: mdi:alpha-i-circle
clean_room_20:
name: Master bedroom
icon: mdi:sleep
clean_room_21:
name: Bathroom
icon: mdi:shower
clean_room_22:
name: Hallway
icon: mdi:hanger
clean_room_23:
name: Kids room 02
icon: mdi:baby-face
clean_room_24:
name: Pantry
icon: mdi:tumble-dryer
clean_room_26:
name: Livingroom
icon: mdi:sofa
anders_phone_charging:
name: Anders' telefon oplader
icon: mdi:cellphone-charging
anders_alarm_active:
name: Alarm aktiveret for Anders
icon: mdi:bell
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Input selector for rooms, home state and countdown actions
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
input_select:
media_source:
name: Select source
options:
- AppleTV - Stue
- AppleTV - Soveværelse
- Sonos - Stue
- PS4
icon: mdi:exit-to-app
initial: AppleTV - Stue
music_source_type:
name: Select music source
options:
- spotify_playlist
- spotify_featured
- radio
music_source:
name: Select speaker
options:
- Sonos - Kitchen
- Sonos - Living room
- Sonos - Kid1
- Sonos - Kontor
- Sonos - Bath room
- Sonos - Kid2
icon: mdi:music
initial: Sonos - Kitchen
music_source_type_tablet:
name: Select music source
options:
- spotify_playlist
- spotify_featured
- radio
icon: mdi:music
speaker_selection:
name: Select Sonos speaker
options:
- kitchen
- living
- kid1
- office
- bath
- kid2
icon: mdi:speaker-multiple
initial: kitchen
home_state:
name: Home State
options:
- Home
- Away
- Night
- Guests
- Holiday
icon: mdi:shield-home-outline
countdown_actions:
name: Countdown X-mas actions
options:
- blink
- music
- doorbell
- toilet
- drum
icon: mdi:cog-box
room_selection:
name: Vælg værelse
options:
- Isabella's værelse
- Laura's værelse
- KΓΈkken/alrum
- Stue
- Soveværelse
- Kontor
- Stort bad
- Lille bad
- Bryggers
- Gang
icon: mdi:floor-plan
initial: Isabella's værelse
energy_type:
name: Select to show electricity prices, prediction or actual consumption
options:
- price
- predictions
- actual
- solar
- live
- dashboard
energy_range:
name: Select time range for electricity consumption
options:
- day
- week
- month
- year
weather_info_select:
name: Select which type of weather forecast to show
options:
- 2day
- rain
- pollen
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Input number
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
input_number:
last_vaccuum_reset_m2:
min: 0
max: 99999999
countdown_select:
name: Count down in minutes
initial: 5
min: 0
max: 15
step: 1
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Input time
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
input_datetime:
alarm_anders:
name: Indstil alarm for Anders
icon: mdi:alarm
has_date: false
has_time: true
car_charge_time:
name: Time for scheduled start of EV charging
icon: mdi:clock-start
has_date: true
has_time: true
car_charge_stop:
name: Time for scheduled stop of EV charging
icon: mdi:clock-end
has_date: true
has_time: true
spa_filter_last_change:
name: Date/time of last hot tub filter change
icon: mdi:hot-tub
has_date: true
has_time: true
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Timer
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
timer:
automation_countdown:
################################################################################
# INTEGRATIONS #
################################################################################
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Alarm control panel integration
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
alarm_control_panel:
- platform: manual
name: Alarm
code: !secret alarm_code
arming_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Enable browser_mod integration
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Bosch Indego Connect 400 lawnmover (disabled for winter storage)
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# indego:
# name: Indego
# username: !secret indego_username
# password: !secret indego_password
# id: !secret indego_id
# #polling: False
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Shared Calendar (iCloud and MS TODO)
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
calendar:
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# iCloud Calendar
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- platform: caldav
username: !secret icloud_username
password: !secret icloud_app_specific_password
url: !secret icloud_url
calendars:
- Fælles
- Test
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# MS TODO
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# - platform: microsoft_todo
# client_id: !secret ms_client_id
# client_secret: !secret ms_token
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Light groups
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
light:
- platform: group
name: standerto
entities:
- light.dimmable_light_10
- light.dimmable_light_11
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Netatmo Presence camera
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Deprecated with version 2022.6 - configuration no longer needed as it has
# moved to UI
# netatmo:
# client_id: !secret netatmo_apikey
# client_secret: !secret netatmo_secret
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Our Groceries custom component
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Deprecated with version 2023.12 - configuration no longer needed as it has
# moved to UI
# ourgroceries:
# username: !secret og_username
# password: !secret og_password
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Spotify integration
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Deprecated with version 2022.6 - configuration no longer needed as it has
# moved to UI
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Spotcast integration
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# spotcast:
# sp_dc: !secret sp_dc
# sp_key: !secret sp_key
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Nordpool integration
#βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
sensor nordpool:
- platform: nordpool
VAT: True
low_price_cutoff: 0.00
region: "DK2"
precision: 3
price_type: kWh
friendly_name: "Nordpool timepris inkl. moms og afgifter"
additional_costs: '{% set s = {
"elafgift": 1.125,
"transport_lavlast": 0.2954,
"transport_spidslast": 0.7884,
"abonnement": 0.00
} %}
{% if now().month >= 10 or now().month <4 %}
{% if now().hour >=17 and now().hour <21 %}
{{s.elafgift+s.transport_spidslast+s.abonnement}}
{% else %}
{{s.elafgift+s.transport_lavlast+s.abonnement}}
{% endif %}
{% else %}
{{s.elafgift+s.transport_lavlast+s.abonnement}}
{% endif %}'