-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-page-yaml
811 lines (809 loc) · 29.4 KB
/
home-page-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
807
808
809
810
811
kiosk_mode:
mobile_settings:
hide_header: true
views:
- title: Home
cards:
- type: custom:mod-card
card_mod:
style: |
ha-card {
position: static;
z-index: 3;
top: 8px;
left: 8px;
right: 8px;
height: 45px;
padding: 4px 10px;
border-radius: 10px;
background-color: rgba(10, 10, 10, .5);
-webkit-backdrop-filter: blur(100px);
}
card:
type: grid
square: false
columns: 1
style:
z-index: 10
cards:
- type: custom:mushroom-chips-card
chips:
- type: template
icon: mdi:information
icon_color: '#ffffff'
tap_action:
action: navigate
navigation_path: system
- type: spacer
- type: entity
entity: lock.schlage_front_door
tap_action:
action: toggle
use_entity_picture: false
icon: mdi:door
card_mod:
style: |
ha-card {
--chip-padding: 4px;
}
- type: entity
entity: cover.ratgdov25i_0af96a_door
tap_action:
action: toggle
use_entity_picture: false
icon: mdi:garage
card_mod:
style: |
ha-card {
--chip-padding: 4px;
}
- type: entity
entity: sensor.all_lights_count
tap_action:
action: navigate
navigation_path: lights
icon_color: '#ffff00'
icon: mdi:lightbulb
card_mod:
style: |
ha-card {
--chip-padding: 4px;
}
- type: entity
entity: sensor.devices_count
icon_color: '#0171A4'
tap_action:
action: navigate
navigation_path: devices
icon: mdi:television
card_mod:
style: |
ha-card {
--chip-padding: 4px;
}
- type: spacer
- type: action
tap_action:
action: navigate
navigation_path: settings
icon: mdi:tools
card_mod:
style: |
:host {
--chip-background: rgba(0, 0, 0, 0) !important; /* Change this to your desired color */
--mush-card-primary-font-size: 28px;
}
ha-card {
--card-primary-font-size: 30px !important;
--card-secondary-font-size: 30px;
--chip-icon-size: 15px;
}
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Hi, user!
subtitle_tap_action:
action: none
title_tap_action:
action: none
subtitle: ''
card_mod:
style: |
ha-card {
padding-top: 0px !important;
padding-bottom: 0 !important;
}
h1 {
font-size: 18px !important; # Adjust the font size as needed
}
- type: custom:mushroom-chips-card
chips:
- type: weather
entity: weather.forecast_home
show_temperature: true
show_conditions: true
alignment: end
card_mod:
style: |
mushroom-shape-icon$: |
.shape {
--shape-color: transparent !important;
}
:host {
width: 50px;
--chip-background: rgba(0, 0, 0, 0) !important;
}
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Controls
subtitle_tap_action:
action: none
title_tap_action:
action: none
card_mod:
style: |
ha-card {
padding-top: 0px !important;
padding-bottom: 0 !important;
}
h1 {
font-size: 20px !important; # Adjust the font size as needed
}
- type: horizontal-stack
cards:
- type: custom:mod-card
style: >
ha-card {
white-space: nowrap;
scrollbar-width: none; /* For Firefox */
-ms-overflow-style: none; /* For Internet Explorer and Edge */
}
ha-card::-webkit-scrollbar { /* For Chrome, Safari, and Opera
*/
display: none;
}
card:
type: horizontal-stack
cards:
- type: custom:mod-card
style: |
ha-card {
margin-left: 0px;
margin-right: 0px;
}
card:
type: custom:button-card
entity: climate.google_nest
name: Google Nest
icon: |
[[[
if (entity.state === 'heat') return 'mdi:fire';
if (entity.state === 'cool') return 'mdi:snowflake';
return 'mdi:home-thermometer';
]]]
show_state: false
show_icon: true
show_label: true
label: |
[[[
const mode = states['climate.google_nest'].state;
const targetTemp = states['climate.google_nest'].attributes.temperature;
const hvacAction = states['climate.google_nest'].attributes.hvac_action;
if (mode === 'off') {
return `Off`;
} else if (mode === 'heat') {
if (hvacAction === 'heating') {
return `Heating - ${targetTemp}°`;
} else if (hvacAction === 'idle') {
return `Heat set to ${targetTemp}°`;
}
} else if (mode === 'cool') {
if (hvacAction === 'cooling') {
return `Cooling - ${targetTemp}°`;
} else if (hvacAction === 'idle') {
return `AC set to ${targetTemp}°`;
}
}
]]]
layout: icon_state_name2nd
tap_action:
action: navigate
navigation_path: /mobile-new/climate
hold_action:
action: more-info
styles:
card:
- padding: 0px
- height: 55px
- width: null
- border-radius: 10px
- background-color: |
[[[
if (entity.attributes.hvac_action === 'cooling') return 'rgba(255, 255, 255,.8)';
if (entity.attributes.hvac_action === 'heating') return 'rgba(255, 255, 255,.8)';
return '';
]]]
name:
- justify-self: left
- padding-bottom: 0px
- font-weight: 600
- font-size: 14px
- top-margin: null
- color: |
[[[
if (entity.attributes.hvac_action === 'cooling') return 'black';
if (entity.attributes.hvac_action === 'heating') return 'black';
return 'white';
]]]
label:
- font-size: 14px
- font-weight: 400
- padding-bottom: 27px
- justify-self: left
- color: |
[[[
if (entity.attributes.hvac_action === 'cooling') return 'black';
if (entity.attributes.hvac_action === 'heating') return 'black';
return 'white';
]]]
state:
- justify-self: center
- font-size: 28px
- font-weight: 600
- padding-bottom: 10px
icon:
- width: 30px
- color: |
[[[
if (entity.attributes.hvac_action === 'cooling') return '#0A84FF';
if (entity.attributes.hvac_action === 'heating') return '#D70015';
return 'white';
]]]
state:
- value: 'off'
styles:
card: null
icon: null
- value: cool
styles:
card:
- background-color: rgba(255, 255, 255, 0.8)
name:
- color: black
state:
- color: black
label:
- color: black
icon:
- color: blue
- value: heat
styles:
card:
- background-color: rgba(255, 255, 255, 0.8)
name:
- color: black
state:
- color: black
label:
- color: black
icon:
- color: red
- animation: pulse 2s ease-in-out infinite
- value: cooling
styles:
card:
- background-color: rgba(255, 255, 255, 0.8)
name:
- color: black
state:
- color: black
label:
- color: black
icon:
- color: blue
- animation: spin 1s linear infinite
- value: heating
styles:
card:
- background-color: rgba(255, 255, 255, 0.8)
name:
- color: black
state:
- color: black
label:
- color: black
icon:
- color: red
- animation: pulse 2s ease-in-out infinite
- type: horizontal-stack
cards:
- type: custom:button-card
entity: sensor.all_lights_count
icon: mdi:lightbulb
show_name: false
show_icon: true
show_state: true
tap_action:
action: navigate
navigation_path: /mobile-new/lights
layout: icon_state
styles:
card:
- padding: 0px
- height: 55px
- border-radius: 10px
- justify-content: center
- align-items: center
icon:
- color: var(--primary-text-color)
- width: 30px
state:
- font-size: 16px
- padding-bottom: 0px
- padding-top: 0px
- type: custom:button-card
entity: sensor.all_holiday_lights_interior_count
icon: mdi:pine-tree
show_name: false
show_icon: true
show_state: true
tap_action:
action: navigate
navigation_path: /mobile-new/holiday-lights
layout: icon_state
styles:
card:
- padding: 0px
- height: 55px
- border-radius: 10px
- justify-content: center
- align-items: center
icon:
- color: var(--primary-text-color)
- width: 30px
state:
- font-size: 16px
- padding-bottom: 0px
- padding-top: 0px
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Main Floor
card_mod:
style: |
ha-card {
padding-top: 0px !important;
padding-bottom: 0 !important;
}
h1 {
font-size: 20px !important; # Adjust the font size as needed
}
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.all_lights_count
- type: entity
entity: sensor.dining_room_temperature
alignment: end
card_mod:
style: |
mushroom-shape-icon$: |
.shape {
--shape-color: transparent !important;
}
:host {
width: 50px;
--chip-background: rgba(0, 0, 0, 0) !important;
}
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Living Room
secondary: ''
icon: mdi:sofa
tap_action:
action: navigate
navigation_path: living-room
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Kitchen
secondary: ''
icon: mdi:fridge
tap_action:
action: navigate
navigation_path: kitchen
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Dining Room
secondary: ''
icon: mdi:table-furniture
tap_action:
action: navigate
navigation_path: dining-room
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Office
secondary: ''
icon: mdi:chair-rolling
tap_action:
action: navigate
navigation_path: office
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Garage
secondary: ''
icon: mdi:garage
tap_action:
action: navigate
navigation_path: garage
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Outside
secondary: ''
icon: mdi:tree
tap_action:
action: navigate
navigation_path: outside
icon_color: green
hold_action:
action: none
double_tap_action:
action: none
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Second Floor
card_mod:
style: |
ha-card {
padding-top: 0px !important;
padding-bottom: 0 !important;
}
h1 {
font-size: 20px !important; # Adjust the font size as needed
}
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.all_interior_lights_second_floor_count
tap_action:
action: navigate
navigation_path: /mobile-new/lights
hold_action:
action: none
double_tap_action:
action: none
- type: entity
entity: sensor.master_bedroom_temperature
alignment: end
card_mod:
style: |
mushroom-shape-icon$: |
.shape {
--shape-color: transparent !important;
}
:host {
width: 50px;
--chip-background: rgba(0, 0, 0, 0) !important;
}
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Master Bedroom
secondary: ''
icon: mdi:bed
tap_action:
action: navigate
navigation_path: master-bedroom
icon_color: blue
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Laundry Room
secondary: ''
icon: mdi:washing-machine
tap_action:
action: navigate
navigation_path: laundry-room
icon_color: blue
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Basement
card_mod:
style: |
ha-card {
padding-top: 0px !important;
padding-bottom: 0 !important;
}
h1 {
font-size: 20px !important; # Adjust the font size as needed
}
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.all_interior_lights_basement_count
tap_action:
action: navigate
navigation_path: /mobile-new/lights
hold_action:
action: none
double_tap_action:
action: none
- type: entity
entity: sensor.family_room_temperature
alignment: end
card_mod:
style: |
mushroom-shape-icon$: |
.shape {
--shape-color: transparent !important;
}
:host {
width: 50px;
--chip-background: rgba(0, 0, 0, 0) !important;
}
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Family Room
secondary: ''
icon: mdi:controller
tap_action:
action: navigate
navigation_path: /mobile-new/family-room
icon_color: red
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Gym
secondary: ''
icon: mdi:dumbbell
tap_action:
action: navigate
navigation_path: /mobile-new/basement-bedroom
icon_color: red
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mod-card
card_mod:
style: |
/* Styles for mobile devices */
@media (max-width: 767px) {
ha-card {
z-index: 1;
position: fixed;
bottom: 0px;
left: 0px;
width: 100%;
height: 80px;
backdrop-filter: blur(120px);
-webkit-backdrop-filter: blur(150px);
background: rgba(15, 1, 31, .8);
opacity: 1;
border-radius: 0px;
padding: 0px;
padding-left: 5px;
padding-right: 5px;
border-top: .5px solid rgba(100, 100, 100, 0.2);
box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.3);
}
}
/* Styles for desktop devices */
@media (min-width: 766px) {
ha-card {
z-index: -1;
position: fixed;
bottom: 0px;
left: 0px;
width: 20%;
height: 75px;
background: RGBA(0,0,0,0.50);
opacity: 1;
border-radius: 0px;
padding: 5px;
}
}
card:
type: grid
square: false
columns: 6
style:
z-index: 10
cards:
- type: custom:button-card
icon: mdi:home
name: Home
tap_action:
action: navigate
navigation_path: /mobile-new/
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 1
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- opacity: 1
- font-weight: 400
- padding-top: 6px
- type: custom:button-card
icon: mdi:lightbulb
name: Lights
tap_action:
action: navigate
navigation_path: /mobile-new/lights
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 0.5
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- font-weight: 300
- padding-top: 6px
- type: custom:button-card
icon: mdi:door
name: Rooms
tap_action:
action: navigate
navigation_path: /mobile-new/rooms
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 0.5
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- font-weight: 300
- padding-top: 6px
- type: custom:button-card
icon: mdi:thermometer
name: Climate
tap_action:
action: navigate
navigation_path: climate
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 0.5
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- font-weight: 300
- padding-top: 6px
- type: custom:button-card
icon: mdi:camera
name: Cameras
tap_action:
action: navigate
navigation_path: /ccab4aaf_frigate-fa
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 0.5
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- font-weight: 300
- padding-top: 6px
- type: custom:button-card
icon: mdi:security
name: Security
tap_action:
action: navigate
navigation_path: /mobile-new/security
styles:
icon:
- color: white
- width: 24px
- height: 24px
img_cell:
- display: flex
- align-items: flex-end
- justify-content: center
card:
- background: none
- padding: 0px
- opacity: 0.5
- top: 8px
- height: null
name:
- font-size: 10px
- align-self: center
- font-weight: 300
- padding-top: 6px