-
Notifications
You must be signed in to change notification settings - Fork 185
/
lovelace-ui.yaml
2347 lines (2306 loc) · 69.3 KB
/
lovelace-ui.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
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
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
#-
# _ _ _
# | | _____ _____| | __ _ ___ ___ _ _(_)
# | |/ _ \ \ / / _ \ |/ _` |/ __/ _ \_____| | | | |
# | | (_) \ V / __/ | (_| | (_| __/_____| |_| | |
# |_|\___/ \_/ \___|_|\__,_|\___\___| \__,_|_|
#
#
#- from github.com/basnijholt/home-assistant-config
background: var(--background-image)
decluttering_templates:
automation_template:
card:
card:
show_header_toggle: false
title: '[[name]] automations'
type: entities
filter:
include:
- entity_id: automation.[[slug]]*
sort: entity_id
type: custom:auto-entities
title: Huis
views:
- badges:
- entity: person.bas
- entity: person.marcella
cards:
- entities:
- entities:
- light.sphere
- light.sphere_2
- light.corner_living_room
- light.ceiling_living_room
- light.tv_led
- entity: script.cozy_lights_living_room
icon_height: 20px
name: Cozy lights
show_icon: false
show_name: true
tap_action:
action: call-service
service: script.cozy_lights_living_room
- entity: script.white_lights_living_room
icon_height: 20px
name: White lights
show_icon: false
show_name: true
tap_action:
action: call-service
service: script.white_lights_living_room
head:
color_picker: true
entity: light.living_room_lights
hide_when_off: false
name: Living
type: custom:slider-entity-row
type: custom:fold-entity-row
- entities:
- light.ceiling_bedroom
- light.lampan
- light.bamboo
- light.bed_reading_up
- light.bed_reading_down
- light.philips_go
- light.bed_led
- input_boolean.automatic_bedroom_lights
- input_boolean.bedroom_lights_automatically_turned_on
- entity: script.cozy_lights_bedroom
icon_height: 20px
name: Cozy lights
show_icon: false
show_name: true
tap_action:
action: call-service
service: script.cozy_lights_bedroom
- entity: script.white_lights_bedroom
icon_height: 20px
name: White lights
show_icon: false
show_name: true
tap_action:
action: call-service
service: script.white_lights_bedroom
head:
entity: light.bedroom_lights
hide_when_off: false
name: Bedroom
type: custom:slider-entity-row
name: Bed
type: custom:fold-entity-row
- entities:
- light.ceiling_office
- light.ceiling_kitchen
- light.bathroom_ceiling
- light.toilet
- light.kitchen_counter
- entities:
- light.hall_1
- light.hall_2
- light.hall_3
head:
entity: light.hall_lights
type: custom:fold-entity-row
- entities:
- light.stairs_up
- light.stairs_down
head:
entity: light.stairs_lights
type: custom:fold-entity-row
- entities:
- icon: mdi:human-edit
name: "{% set manual_control = (\n (state_attr('switch.adaptive_lighting_bedroom',\
\ 'manual_control') or []) +\n (state_attr('switch.adaptive_lighting_living_room',\
\ 'manual_control') or []) +\n (state_attr('switch.adaptive_lighting_bedroom_led',\
\ 'manual_control') or []) +\n (state_attr('switch.adaptive_lighting_half_and_full',\
\ 'manual_control') or []) +\n (state_attr('switch.adaptive_lighting_bedroom_half',\
\ 'manual_control') or [])\n) %} {% if manual_control %}\n {{ manual_control\
\ | join(\", \") }}.\n{% else %}\n Nothing is manually controlled.\n\
{% endif %}\n"
type: custom:template-entity-row
- entity: script.reset_adaptive_lighting
- type: divider
- entity: switch.adaptive_lighting_bedroom
name: default
- entity: switch.adaptive_lighting_sleep_mode_default
name: Sleep mode
- entity: switch.adaptive_lighting_adapt_brightness_default
name: Adapt brightness
- entity: switch.adaptive_lighting_adapt_color_default
name: Adapt color
- type: divider
- entity: switch.adaptive_lighting_living_room
name: living_room
- entity: switch.adaptive_lighting_sleep_mode_living_room
name: Sleep mode
- entity: switch.adaptive_lighting_adapt_brightness_living_room
name: Adapt brightness
- entity: switch.adaptive_lighting_adapt_color_living_room
name: Adapt color
- type: divider
- entity: switch.adaptive_lighting_bedroom_led
name: default_bed
- entity: switch.adaptive_lighting_sleep_mode_default_bed
name: Sleep mode
- entity: switch.adaptive_lighting_adapt_brightness_default_bed
name: Adapt brightness
- entity: switch.adaptive_lighting_adapt_color_default_bed
name: Adapt color
- type: divider
- entity: switch.adaptive_lighting_half_and_full
name: half_and_full
- entity: switch.adaptive_lighting_sleep_mode_half_and_full
name: Sleep mode
- entity: switch.adaptive_lighting_adapt_brightness_half_and_full
name: Adapt brightness
- entity: switch.adaptive_lighting_adapt_color_half_and_full
name: Adapt color
- type: divider
- entity: switch.adaptive_lighting_bedroom_half
name: bedroom_half
- entity: switch.adaptive_lighting_sleep_mode_bedroom_half
name: Sleep mode
- entity: switch.adaptive_lighting_adapt_brightness_bedroom_half
name: Adapt brightness
- entity: switch.adaptive_lighting_adapt_color_bedroom_half
name: Adapt color
head:
entity: switch.adaptive_lighting_bedroom
type: custom:fold-entity-row
head:
entity: light.automatic_lights
hide_when_off: false
name: Auto and office
type: custom:slider-entity-row
type: custom:fold-entity-row
show_header_toggle: false
title: Lights
type: entities
- entity: weather.huis
name: Weather
type: custom:simple-weather-card
- cards:
- artwork: cover
background: /local/tv.jpg
entity: media_player.tv
hide:
controls: true
mute: false
play_stop: true
volume: false
icon: mdi:television
type: custom:mini-media-player
- artwork: cover
entity: media_player.spotify
hide:
power: true
source: false
volume: true
icon: mdi:spotify
type: custom:mini-media-player
- background: /local/kef_speakers.jpeg
entity: media_player.kef_ls50
hide:
controls: true
mute: false
play_stop: true
volume: false
type: custom:mini-media-player
- entities:
- entities:
- entity: input_number.kef_ls50_desk_db
- entity: input_number.kef_ls50_wall_db
- entity: input_number.kef_ls50_treble_db
- entity: input_number.kef_ls50_high_hz
- entity: input_number.kef_ls50_low_hz
- entity: input_number.kef_ls50_sub_db
- type: divider
- entity: input_select.kef_ls50_bass_extension
- entity: input_select.kef_ls50_sub_polarity
- type: divider
- entity: input_boolean.kef_ls50_desk_mode
- entity: input_boolean.kef_ls50_wall_mode
- entity: input_boolean.kef_ls50_phase_correction
- entity: input_boolean.kef_ls50_high_pass
- type: divider
- entity: number.kef_ls50_desk_db
- entity: number.kef_ls50_wall_db
- entity: number.kef_ls50_treble_db
- entity: number.kef_ls50_high_hz
- entity: number.kef_ls50_low_hz
- entity: number.kef_ls50_sub_db
- type: divider
- entity: select.kef_ls50_bass_extension
- entity: select.kef_ls50_sub_polarity
- type: divider
- entity: select.kef_ls50_desk_mode
- entity: select.kef_ls50_wall_mode
- entity: select.kef_ls50_phase_correction
- entity: select.kef_ls50_high_pass
head:
icon: mdi:equalizer
name: 'KEF LS50 Equalizer
'
type: custom:template-entity-row
type: custom:fold-entity-row
show_header_toggle: false
type: entities
- cards:
- icon: mdi:sofa
name: Play music in living room
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
service: script.start_spotify_playlist_of_nearest_person
service_data:
entity_id: media_player.kef_ls50
source: LS50 Wireless
type: custom:button-card
- icon: mdi:bed-king
name: Play music in bedroom
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
service: script.start_spotify_playlist_of_nearest_person
service_data:
entity_id: media_player.kef_lsx
source: LSX
type: custom:button-card
type: horizontal-stack
style: "ha-card {\n --mini-media-player-base-color: red;\n --mini-media-player-icon-color:\
\ red;\n --mini-media-player-background-opacity: 0.1;\n --mini-media-player-overlay-color:\
\ red;\n}\n"
type: vertical-stack
- entities:
- entity: sensor.adaptive
type: custom:github-entity-row
- entity: sensor.lovelace_ios_dark_mode_theme
type: custom:github-entity-row
- entity: sensor.lovelace_ios_themes
type: custom:github-entity-row
- entity: sensor.home_assistant_config
type: custom:github-entity-row
show_header_toggle: false
type: entities
- entities:
- entity: input_boolean.alarm_clock
- entity: input_datetime.alarm_clock
- entity: input_select.sleep_mode
- entities:
- input_select.theme
- input_boolean.theme_alternative
head:
entity: input_boolean.dark_mode
name: Dark mode
type: custom:fold-entity-row
show_header_toggle: false
type: entities
- cards:
- entities:
- entity: vacuum.valetudo_vacuum
name: Vacuum cleaner
primary:
entity: binary_sensor.vacuum_day
name: Vacuum day
secondary:
attribute: battery_level
name: Battery
unit: '%'
type: custom:multiple-entity-row
- entity: switch.vacuum_mode
- entity: input_boolean.cleaned_today
- entity: binary_sensor.vacuum_day
show_header_toggle: false
type: entities
- calibration_source:
calibration_points:
- map:
x: 711
y: 474
vacuum:
x: 30194
y: 26665
- map:
x: 911
y: 269
vacuum:
x: 32508
y: 28968
- map:
x: 41
y: 63
vacuum:
x: 22813
y: 31276
entity: vacuum.valetudo_vacuum
map_modes:
- template: vacuum_clean_zone
- predefined_selections:
- zones:
- - 29706
- 27237
- 34806
- 31137
- zones:
- - 22799
- 27340
- 27649
- 31240
- zones:
- - 22803
- 25150
- 26353
- 27250
- zones:
- - 26379
- 26239
- 31929
- 27189
- zones:
- - 31941
- 25364
- 34791
- 27164
template: vacuum_clean_zone_predefined
map_source:
image: /local/vacuum-map.png
service: vacuum.send_command
type: custom:xiaomi-vacuum-map-card
type: vertical-stack
- entities:
- entity: input_boolean.vacation_mode
- entity: input_boolean.guest_mode
- entity: input_boolean.automatic_temperature
show_header_toggle: false
type: entities
- entities:
- entities:
- icon: mdi:currency-eur
name: '{% set kwh = state_attr("switch.dishwasher", "consumption").0 %} {% set cost_today = 0.1979 * kwh %} Today used {{ kwh }} kWh and
cost €{{ cost_today | round(2) }}.
'
type: custom:template-entity-row
head:
entity: binary_sensor.dishwasher
name: Dishwasher
secondary: "{% set on_for = as_timestamp(now()) - as_timestamp(states(\"input_datetime.dishwasher_on\"\
)) %} {% set off_for = as_timestamp(now()) - as_timestamp(states(\"input_datetime.dishwasher_off\"\
)) %} {% if states(\"binary_sensor.dishwasher\") == \"on\" %}\n Has been\
\ on for {{ (on_for / 60)|round(0) }} minutes.\n{% else %}\n Has been off\
\ for {{ (off_for / 3600)|round(1) }} hours.\n{% endif %}\n"
state: "{% if is_state(\"binary_sensor.dishwasher\", \"on\") %}\n {{ states(\"\
sensor.dishwasher_watts\") }} Watt\n{% else %}\n Off\n{% endif %}\n"
type: custom:template-entity-row
type: custom:fold-entity-row
- entities:
- icon: mdi:currency-eur
name: '{% set kwh = states("sensor.washing_machine_daily_energy") | float
%} {% set cost_today = 0.1979 * kwh %} Today used {{ kwh }} kWh and cost
€{{ cost_today | round(2) }}.
'
type: custom:template-entity-row
head:
entity: binary_sensor.washing_machine
name: Washing machine
secondary: "{% set on_for = as_timestamp(now()) - as_timestamp(states(\"input_datetime.washing_machine_on\"\
)) %} {% set off_for = as_timestamp(now()) - as_timestamp(states(\"input_datetime.washing_machine_off\"\
)) %} {% if states(\"binary_sensor.washing_machine\") == \"on\" %}\n Has\
\ been on for {{ (on_for / 60)|round(0) }} minutes.\n{% else %}\n Has been\
\ off for {{ (off_for / 3600)|round(1) }} hours.\n{% endif %}\n"
state: "{% if is_state(\"binary_sensor.washing_machine\", \"on\") %}\n {{\
\ states(\"sensor.washing_machine_power\") }} Watt\n{% else %}\n Off\n\
{% endif %}\n"
type: custom:template-entity-row
type: custom:fold-entity-row
- entities:
- icon: mdi:currency-eur
name: 'Today''s usage statistics
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ states("sensor.daily_power")|round(2) }} kWh power → €{{ states("sensor.daily_power_cost")|float|round(2)
}}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ states("sensor.daily_gas")|round(2) }} m³ gas → €{{ states("sensor.daily_gas_cost")|float|round(2)
}}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '€{{ states("sensor.daily_energy_fixed_cost")|float|round(2) }} (fixed)
+ €{{ (states("sensor.daily_gas_cost")|float + states("sensor.daily_power_cost")|float)|round(2)}}
= €{{ (states("sensor.daily_gas_cost")|float + states("sensor.daily_power_cost")|float
+ states("sensor.daily_energy_fixed_cost")|float)|round(2) }}.
'
type: custom:template-entity-row
- type: divider
- icon: mdi:currency-eur
name: '{{ as_timestamp(now()) | timestamp_custom("%B") }}''s usage statistics
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ states("sensor.monthly_power")|round(2) }} kWh power → €{{ states("sensor.monthly_power_cost")|float|round(2)
}}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ states("sensor.monthly_gas")|round(2) }} m³ gas → €{{ states("sensor.monthly_gas_cost")|float|round(2)
}}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '€{{ states("sensor.monthly_energy_fixed_cost")|float|round(2) }} (fixed)
+ €{{ (states("sensor.monthly_gas_cost")|float + states("sensor.monthly_power_cost")|float)|round(2)}}
= €{{ (states("sensor.monthly_gas_cost")|float + states("sensor.monthly_power_cost")|float
+ states("sensor.monthly_energy_fixed_cost")|float)|round(2) }}.
'
type: custom:template-entity-row
- type: divider
- icon: mdi:currency-eur
name: 'Last month''s usage statistics
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ states("sensor.monthly_power_last_period")|round(2) }} kWh power
→ €{{ states("sensor.monthly_power_cost_last_period")|float|round(2) }}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '{{ state_attr("sensor.monthly_gas", "last_period")|round(2) }} m³ gas
→ €{{ states("sensor.monthly_gas_cost_last_period")|float|round(2) }}.
'
type: custom:template-entity-row
- icon: mdi:currency-eur
name: '€{{ states("sensor.monthly_energy_fixed_cost_last_period")|float|round(2)
}} (fixed) + €{{ (states("sensor.monthly_gas_cost_last_period")|float +
states("sensor.monthly_power_cost_last_period")|float)|round(2)}} = €{{
(states("sensor.monthly_gas_cost_last_period")|float + states("sensor.monthly_power_cost_last_period")|float
+ states("sensor.monthly_energy_fixed_cost_last_period")|float)|round(2)
}}.
'
type: custom:template-entity-row
head:
entity: sensor.daily_gas
name: Energy usage
secondary: 'Today {{ states("sensor.daily_power")|round(2) }} kWh and {{ states("sensor.daily_gas")|round(2)
}} m³ gas.
'
state: '€{{ (states("sensor.daily_gas_cost")|float + states("sensor.daily_power_cost")|float
+ states("sensor.daily_energy_fixed_cost")|float)|round(2) }}
'
type: custom:template-entity-row
type: custom:fold-entity-row
show_header_toggle: false
title: Utilities
type: entities
- cards:
- cards:
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.temperature_living_room
name: Living room
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.temperature_bathroom
name: Bathroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.temperature_bedroom
name: Bedroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.temperature_hall
name: Hall
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
type: vertical-stack
- cards:
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.humidity_living_room
name: Living room
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.humidity_bathroom
name: Bathroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.humidity_bedroom
name: Bedroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.humidity_hall
name: Hall
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
type: vertical-stack
- cards:
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.pressure_living_room
name: Living room
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.pressure_bathroom
name: Bathroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.pressure_bedroom
name: Bedroom
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.pressure_hall
name: Hall
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
type: horizontal-stack
type: vertical-stack
type: custom:swipe-card
- cards:
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.power_consumption
name: Power consumption
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.daily_gas
name: Gas consumption
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
name: Speedtest
type: horizontal-stack
- cards:
- color_thresholds_transition: smooth
entities:
- entity: sensor.daily_power_cost
name: Power cost
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
- color_thresholds_transition: smooth
entities:
- entity: sensor.daily_gas_cost
name: Gas cost
font_size: 100
group: false
hour24: true
line_width: 6
points_per_hour: 1
show:
extrema: false
fill: fade
labels: false
name: true
state: true
type: custom:mini-graph-card
name: Speedtest
type: horizontal-stack
parameters:
autoplay:
delay: 5000
speed: 2000
type: custom:swipe-card
- cards:
- cards:
- color: auto
icon: mdi:weather-sunset-up
name: Wake up
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: input_select.select_option
service_data:
entity_id: input_select.sleep_mode
option: 'off'
type: custom:button-card
- color: auto
entity: input_select.sleep_mode
icon: mdi:weather-night
name: '[[[ if (entity.state != "off") return "Sleep mode on"; else return "Go
to sleep" ]]]'
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: script.going_to_sleep
type: custom:button-card
type: horizontal-stack
- cards:
- color: auto
icon: mdi:home-map-marker
name: Arrive Home
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: script.arriving
type: custom:button-card
- color: auto
icon: mdi:home-export-outline
name: Leave Home
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: script.leaving
type: custom:button-card
type: horizontal-stack
type: vertical-stack
- control: false
entity: climate.thermostat
icon: false
name: false
step_layout: row
step_size: 0.5
style: "ha-card {\n --st-font-size-xl: 30px;\n}\n"
type: custom:simple-thermostat
- cards:
- entity: plant.peace_lily
type: plant-status
- entity: plant.calathea
type: plant-status
- entity: plant.monstera
type: plant-status
parameters:
autoplay:
delay: 5000
speed: 2000
type: custom:swipe-card
- entities:
- entities:
- entity: input_boolean.office_door_open_warning
- type: divider
- align: center
color: '#0279ff'
entity: sensor.time_at_work_this_week
entity_row: true
height: 30px
max: 50
min: 0
severity:
- color: '#ff3c31'
from: 0
to: 30
- color: '#ffcc01'
from: 30
to: 38
- color: '#34c758'
from: 38
to: 42
- color: '#ff3c31'
from: 42
to: 50
style: "ha-card {\n box-shadow: none;\n --ha-card-background: 'rgba(0, 0,\
\ 0, 0)';\n}\n"
target: 40
type: custom:bar-card
- align: center
entity: sensor.time_at_work_prognosis
entity_row: true
height: 30px
max: 50
min: 0
severity:
- color: '#ff3c31'
from: 0
to: 30
- color: '#ffcc01'
from: 30
to: 38
- color: '#34c758'
from: 38
to: 42
- color: '#ff3c31'
from: 42
to: 50
style: "ha-card {\n box-shadow: none;\n --ha-card-background: 'rgba(0, 0,\
\ 0, 0)';\n}\n"
target: 40
type: custom:bar-card
- type: divider
- align: center
entity: sensor.time_at_work_on_monday
entity_row: true
height: 30px
max: 12
min: 0
severity:
- color: '#ff3c31'
from: 0
to: 6
- color: '#ffcc01'
from: 6
to: 8
- color: '#34c758'
from: 8
to: 9
- color: '#ff3c31'
from: 9
to: 10
style: "ha-card {\n box-shadow: none;\n --ha-card-background: 'rgba(0, 0,\
\ 0, 0)';\n}\n"
target: 8
type: custom:bar-card
- align: center
entity: sensor.time_at_work_on_tuesday
entity_row: true
height: 30px
max: 12
min: 0
severity:
- color: '#ff3c31'
from: 0
to: 6
- color: '#ffcc01'
from: 6
to: 8
- color: '#34c758'
from: 8
to: 9
- color: '#ff3c31'
from: 9
to: 10
style: "ha-card {\n box-shadow: none;\n --ha-card-background: 'rgba(0, 0,\
\ 0, 0)';\n}\n"
target: 8
type: custom:bar-card
- align: center
entity: sensor.time_at_work_on_wednessday
entity_row: true
height: 30px
max: 12
min: 0
severity:
- color: '#ff3c31'