-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-lovelace.yaml
696 lines (696 loc) · 22.8 KB
/
ui-lovelace.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
views:
- path: default
title: default
icon: 'mdi:home'
cards:
- type: conditional
conditions:
- entity: binary_sensor.kids_bedtime
state: 'on'
- entity: input_boolean.kids_bedtime_started
state: 'off'
card:
type: button
name: Läggdags
icon: 'mdi:baby-face'
icon_height: '50px'
tap_action:
action: call-service
service: script.bedtime_for_the_kids
- type: conditional
conditions:
- entity: timer.alarm_automatic_arm
state_not: 'idle'
card:
type: entities
entities:
- entity: timer.alarm_automatic_arm
name: Larmar automatiskt om
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state: armed_home
card:
type: button
name: Larma av
icon: 'mdi:home-lock-open'
icon_height: '50px'
tap_action:
action: call-service
service: alarm_control_panel.alarm_disarm
service_data:
entity_id: alarm_control_panel.home_alarm
code: !secret home_alarm_code
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state: disarmed
- entity: binary_sensor.parents_bedtime
state: 'on'
card:
type: button
name: Aktivera skalskydd
icon: 'mdi:home-lock'
icon_height: '50px'
tap_action:
action: call-service
service: alarm_control_panel.alarm_arm_home
service_data:
entity_id: alarm_control_panel.home_alarm
code: !secret home_alarm_code
- title: Vardagsrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.livingroom_windows
name: Fönster
- entity: light.livingroom_ceiling
name: Tak
- type: section
label: Markiser
- entity: cover.livingroom_driveway_cover
name: Markis mot uppfart
- entity: cover.livingroom_porch_cover
name: Markis mot altan
- title: Lekrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.playroom_window
name: Fönster
- entity: light.playroom_ceiling
name: Tak
- type: section
label: Markiser
- entity: cover.playroom_cover
name: Markis
- type: entities
title: Kök
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.kitchen_sink
name: Diskho
- entity: light.kitchen_spotlights
name: Spotlights
- entity: light.kitchen_window
name: Fönster
- type: section
label: Apparater
- entity: switch.coffee_maker
name: Kaffebryggare
icon: 'mdi:coffee-maker'
- type: conditional
conditions:
- entity: switch.coffee_maker
state: 'on'
row:
entity: sensor.coffee_maker_power_consumption
name: Strömförbrukning
icon: 'mdi:gauge'
- title: Hall
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.hallway_shoe_cabinet
name: Skoskåp
- entity: light.hallway_spotlights
name: Spotlights
- entity: light.hallway_window
name: Fönster
- type: section
label: Sensorer
- entity: binary_sensor.hallway_first_floor_motion
name: Övervåning
- title: Matsal
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.dining_area_ceiling
name: Matbord
- entity: light.dining_area_vitrine_cabinet
name: Vitrinskåp
- entity: light.dining_area_wall_cabinet
name: Väggskåp
- title: Sovrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.bedroom_ceiling
name: Tak
- entity: light.bedroom_window
name: Fönster
- entity: light.bedroom_nightlights
name: Nattduksbord
- type: section
label: Markiser
- entity: cover.bedroom_cover
name: Markis
- title: Badrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.bathroom_mirror
name: Spegel
- entity: light.bathroom_mirror_1
name: Spegel 1
- entity: light.bathroom_mirror_2
name: Spegel 2
- type: conditional
conditions:
- entity: timer.bathroom_nightlights
state_not: 'idle'
row:
icon: 'mdi:gauge'
entity: timer.bathroom_nightlights
name: Släcks automatiskt om
- title: Barnrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.kids_room_ceiling
name: Tak
- entity: light.kids_room_window
name: Fönster
- entity: light.kids_room_light_boxes
name: Kattvindsfack
- entity: switch.smart_plug_1
name: Kanin
- entity: switch.smart_plug_2
name: Ljusslinga
- entity: light.light_strip_1
name: Nattbelysning
- type: section
label: Sensorer
- entity: binary_sensor.kids_room_motion
name: Rörelse
- title: Utomhus
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.outdoor_garden
name: Trädgård
- entity: light.outdoor_cellar_entrance
name: Källaringång
- entity: light.outdoor_main_entrance
name: Huvudingång
- entity: light.outdoor_porch_entrance
name: Altaningång
- entity: light.outdoor_eave
name: Takfot
- entity: switch.smart_plug_3
name: Uterum
- title: Toalett
type: entities
show_header_toggle: false
entities:
- type: section
label: Belysning
- entity: light.toilet_ceiling_dimmer
name: Tak
- type: conditional
conditions:
- entity: timer.toilet_presence
state_not: 'idle'
row:
icon: 'mdi:gauge'
entity: timer.toilet_presence
name: Släcks automatiskt om
- type: section
label: Sensorer
- entity: binary_sensor.toilet_presence
name: Rörelse
- type: section
label: Automationer
- entity: automation.turn_on_toilet_ceiling_lights_on_motion_detected
name: Tänd automatiskt
- entity: automation.turn_off_toilet_ceiling_lights_when_presence_expires
name: Släck automatiskt
- title: Tvättstuga
type: entities
show_header_toggle: false
entities:
- type: section
label: Sensorer
- entity: binary_sensor.laundry_room_window_1
name: Fönster 1
- entity: binary_sensor.laundry_room_window_2
name: Fönster 2
- entity: binary_sensor.laundry_room_window_2_vibration
name: Fönster 2 Vibration
- type: entities
title: Kontor
show_header_toggle: false
entities:
- type: section
label: Sensorer
- entity: binary_sensor.office_presence
name: Rörelse
- entity: binary_sensor.office_window
name: Fönster
- type: section
label: Apparater
- entity: switch.office_heater
name: Element
- type: conditional
conditions:
- entity: switch.office_heater
state: 'on'
row:
entity: sensor.office_heater_power
name: Strömförbrukning
icon: 'mdi:gauge'
- path: central
title: central
icon: 'mdi:home-analytics'
badges:
- entity: person.person1
name: !secret person1_name
- entity: person.person2
name: !secret person2_name
- entity: binary_sensor.internet_connection
name: Internet
#- entity: device_tracker.person1_smart_band_basement
# name: Person1 Smart Band Basement
#- entity: device_tracker.person1_smart_band_ground_floor
# name: Person1 Smart Band Ground Floor
#- entity: binary_sensor.porch_deck_person
# name: Porch Deck Person
#- entity: binary_sensor.porch_room_person
# name: Porch Room Person
#- entity: binary_sensor.front_door_steps_person
# name: Front Door Steps Person
#- entity: binary_sensor.front_walkway_person
# name: Front Walkway Person
#- entity: binary_sensor.driveway_parking_area_car
# name: Driveway Parking Area Car
#- entity: binary_sensor.basement_entrance_person
# name: Basement Entrance Person
cards:
- type: conditional
conditions:
- entity: binary_sensor.front_door_person_motion
state: 'on'
card:
type: picture-entity
entity: camera.front_door_camera_last_person
- type: conditional
conditions:
- entity: binary_sensor.porch_room_person_motion
state: 'on'
card:
type: picture-entity
entity: camera.porch_camera_last_person
- type: conditional
conditions:
- entity: binary_sensor.driveway_person_motion
state: 'on'
card:
type: picture-entity
entity: camera.driveway_camera_last_person
- type: conditional
conditions:
- entity: binary_sensor.driveway_car_motion
state: 'on'
card:
type: picture-entity
entity: camera.driveway_camera_last_car
- type: horizontal-stack
cards:
- entity: group.indoor_lights
type: button
icon: 'mdi:lightbulb-off-outline'
name: Släck allt
tap_action:
action: call-service
service: homeassistant.turn_off
service_data:
entity_id: group.daytime_indoor_lights
- entity: scene.evening_lights
type: button
name: Kvällsbelysning
icon: 'mdi:lightbulb-on-outline'
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.activate_evening_lights
- title: Temperatur
type: entities
entities:
- type: section
label: Bottenvåning
- entity: sensor.playroom_temperature
name: Lekrum
- entity: sensor.livingroom_temperature
name: Vardagsrum
- type: section
label: Övervåning
- entity: sensor.bathroom_temperature
name: Badrum
- entity: sensor.bedroom_temperature
name: Sovrum
- entity: sensor.kids_room_temperature
name: Barnrum
- type: section
label: Källare
- entity: sensor.office_temperature
name: Kontor
- entity: sensor.laundry_room_temperature
name: Tvättstuga
- type: section
- entity: sensor.outdoor_temperature
name: Utomhus
- entity: sensor.attic_temperature
name: Vind
- title: Luftfuktighet
type: entities
entities:
- entity: sensor.bathroom_humidity
name: Badrum
- entity: sensor.bedroom_humidity
name: Sovrum
- entity: sensor.kids_room_humidity
name: Barnrum
- entity: sensor.office_humidity
name: Kontor
- entity: sensor.playroom_humidity
name: Lekrum
- entity: sensor.laundry_room_humidity
name: Tvättstuga
- entity: sensor.attic_humidity
name: Vind
- entity: sensor.livingroom_humidity
name: Vardagsrum
- title: Sensorer
type: entities
entities:
- type: section
label: Utomhus
- entity: binary_sensor.porch_person_motion
name: Altan (Person)
- entity: binary_sensor.driveway_person_motion
name: Uppfart (Person)
- entity: binary_sensor.driveway_car_motion
name: Uppfart (Bil)
- type: section
label: Bottenvåning
- entity: binary_sensor.toilet_presence
name: Toalett
- entity: binary_sensor.main_entrance
name: Entrédörr
- entity: binary_sensor.porch_entrance
name: Altandörrar
- entity: binary_sensor.porch_entrance_vibration
name: Altandörrar Vibration
- type: section
label: Övervåning
- entity: binary_sensor.kids_room_motion
name: Barnrum
- entity: binary_sensor.hallway_first_floor_motion
name: Hall
- type: section
label: Källare
- entity: binary_sensor.basement_door
name: Källarinnerdörr
- entity: binary_sensor.office_window
name: Kontorsfönster
- entity: binary_sensor.laundry_room_window_1
name: Tvättstugefönster 1
- entity: binary_sensor.laundry_room_window_2
name: Tvättstugefönster 2
- entity: binary_sensor.laundry_room_window_2_vibration
name: Tvättstugefönster 2 Vibration
- entity: binary_sensor.basement_storage_window_vibration
name: Förrådsfönster
- entity: binary_sensor.basement_hallway_presence
name: Hall
- entity: binary_sensor.office_presence
name: Kontor
- entity: binary_sensor.basement_entrance
name: Källardörr
- title: 'Ljusstyrka'
type: glance
entities:
- entity: sensor.outdoor_illuminance
name: Utomhus
- entity: sensor.toilet_illuminance
name: Toalett
- entity: sensor.hallway_first_floor_illuminance
name: Hall uppe
- entity: sensor.office_illuminance
name: Kontor
- entity: sensor.kids_room_illuminance
name: Barnrum
- path: covers
title: covers
icon: 'mdi:window-open'
cards:
- title: Vardagsrum
type: entities
show_header_toggle: false
entities:
- type: section
label: Mot uppfart
- entity: cover.livingroom_driveway_cover
name: Upp/Ner/Stopp
- entity: switch.livingroom_driveway_cover_block
name: Blockera
icon: 'mdi:block-helper'
- type: call-service
entity: cover.livingroom_driveway_cover
name: 'Position 30%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.livingroom_driveway_cover
position: 55
- type: call-service
entity: cover.livingroom_driveway_cover
name: 'Position 50%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.livingroom_driveway_cover
position: 37
- type: section
label: Mot altan
- entity: cover.livingroom_porch_cover
name: Upp/Ner/Stopp
- entity: switch.livingroom_porch_cover_block
name: Blockera
icon: 'mdi:block-helper'
- type: call-service
entity: cover.livingroom_porch_cover
name: 'Position 30%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.livingroom_porch_cover
position: 55
- type: call-service
entity: cover.livingroom_porch_cover
name: 'Position 50%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.livingroom_porch_cover
position: 36
- title: Lekrum
type: entities
show_header_toggle: false
entities:
- entity: cover.playroom_cover
name: Upp/Ner/Stopp
- entity: switch.playroom_cover_block
name: Blockera
icon: 'mdi:block-helper'
- type: call-service
entity: cover.playroom_cover
name: 'Position 30%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.playroom_cover
position: 55
- type: call-service
entity: cover.playroom_cover
name: 'Position 50%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.playroom_cover
position: 36
- title: Sovrum
type: entities
show_header_toggle: false
entities:
- entity: cover.bedroom_cover
name: Upp/Ner/Stopp
- entity: switch.bedroom_cover_block
name: Blockera
icon: 'mdi:block-helper'
- type: call-service
entity: cover.bedroom_cover
name: 'Position 30%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.bedroom_cover
position: 55
- type: call-service
entity: cover.bedroom_cover
name: 'Position 50%'
icon: 'mdi:window-open'
action_name: Aktivera
service: cover.set_cover_position
service_data:
entity_id: cover.bedroom_cover
position: 37
- path: media
title: media
icon: 'mdi:play-circle'
cards:
#- entity: script.resume_latest_kids_stream_on_viaplay
#- type: entity-button
#- icon: 'mdi:television-box'
#- name: Återuppta Viaplay Barn
#- tap_action:
#- action: call-service
#- service: homeassistant.turn_on
#- service_data:
#- entity_id: script.resume_latest_kids_stream_on_viaplay
- type: media-control
entity: media_player.vardagsrum
- type: media-control
entity: media_player.kids_room
- type: media-control
entity: media_player.sovrum
- type: media-control
entity: media_player.livingroom_tv
- type: media-control
entity: media_player.spotify_stoffus1
#- type: custom:spotify-card
# client_id: 5ffe3916954a41abbb5ef051618d90ae
#- type: entities
# title: Spotify test
# show_header_toggle: false
# entities:
# - entity: script.play_specific_spotify_song
# type: custom:hui-entity-button-card
# icon: 'mdi:music'
# name: 'Spela TTMOE på person1'
# tap_action:
# action: call-service
# service: script.turn_on
# service_data:
# entity_id: script.play_specific_spotify_song
- path: cameras
title: cameras
icon: 'mdi:cctv'
cards:
- type: picture-entity
name: Senaste personen uppfart
entity: camera.driveway_camera_last_person
- type: picture-entity
name: Senaste personen altan
entity: camera.porch_camera_last_person
- type: picture-entity
name: Senaste bilen uppfart
entity: camera.driveway_camera_last_car
- type: picture-entity
name: Senaste personen entré
entity: camera.front_door_camera_last_person
- type: picture-entity
name: Senaste katten altan
entity: camera.porch_camera_last_cat
- type: picture-entity
name: Senaste katten entré
entity: camera.front_door_camera_last_cat
- type: picture-entity
name: Senaste katten uppfart
entity: camera.driveway_camera_last_cat
- type: picture-glance
entities:
- camera.porch_camera
camera_image: camera.porch_camera
camera_view: live
- type: picture-glance
entities:
- camera.driveway_camera
camera_image: camera.driveway_camera
camera_view: live
- type: picture-glance
entities:
- camera.front_door_camera
camera_image: camera.front_door_camera
camera_view: live
- type: conditional
conditions:
- entity: alarm_control_panel.home_alarm
state_not: disarmed
card:
type: picture-glance
entities:
- camera.livingroom
camera_image: camera.livingroom
camera_view: live
- title: Frigate
type: entities
show_header_toggle: false
entities:
- type: section
label: Uppfart
- entity: switch.driveway_detect
name: Detektor
- entity: switch.driveway_clips
name: Klipp
- type: section
label: Framsida
- entity: switch.front_door_detect
name: Detektor
- entity: switch.front_door_clips
name: Klipp
- type: section
label: Altan
- entity: switch.porch_detect
name: Detektor
- entity: switch.porch_clips
name: Klipp
- type: section
label: Vardagsrum
- entity: switch.livingroom_detect
name: Detektor
- entity: switch.livingroom_clips
name: Klipp
- path: security
title: security
icon: 'mdi:shield'
cards:
- type: alarm-panel
entity: alarm_control_panel.home_alarm
name: Larm