-
Notifications
You must be signed in to change notification settings - Fork 12
/
Oldkiosk.yaml
executable file
·1925 lines (1789 loc) · 56.9 KB
/
Oldkiosk.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
#### These are the cards that only popup sometimes under certain conditions (and cameras too)
title: Home
icon: mdi:home
#type: custom:vertical-layout
panel: true
#background-image: center / cover no-repeat url("/local/day.jpg") fixed
visible:
- user: 2a6556f191a44915998a20ea2ac28057
popup_cards:
weather.openweathermap:
title: Weekly Weather Forecast
card:
type: 'custom:weather-card-chart'
weather: weather.weather_forecast
sun: sun.sun
temp: sensor.smartweatherudp_temperature
wind: sensor.smartweather_wind_gust
sensor.sean_location:
title: Sean Location History and Time to Home
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- sensor.sean_location
- type: markdown
content: |
## {{ states('sensor.sean_eta')}}
{{ states('sensor.sean_eta_description')}}
sensor.sophie_location:
title: Sophie Location History and Time to Home
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- sensor.sophie_location
- type: markdown
content: |
## {{ states('sensor.sophie_eta')}}
{{ states('sensor.sophie_eta_description')}}
sensor.alena_location:
title: Alena Location History and Time to Home
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- sensor.alena_location
- type: markdown
content: |
## {{ states('sensor.alena_eta')}}
{{ states('sensor.alena_eta_description')}}
input_boolean.sophies_air_purifier:
title: "Sophie's Air Purifier"
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- input_boolean.sophies_air_purifier
- type: history-graph
entities:
- sensor.hlubocepy_air_quality
- type: history-graph
entities:
- sensor.sophies_room_aqi
- type: markdown
content: |
Last Hour Availability:
- type: history-graph
entities:
- fan.sophies_room_air_purifier
hours_to_show: 1
input_boolean.sebastians_air_purifier:
title: "Sebastian's Air Purifier"
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- input_boolean.sebastians_air_purifier
- type: history-graph
entities:
- sensor.hlubocepy_air_quality
- type: history-graph
entities:
- sensor.sebastians_room_aqi
- type: markdown
content: |
Last Hour Availability:
- type: history-graph
entities:
- fan.sebastians_room_air_purifier
hours_to_show: 1
fan.master_bedroom_air_purifier:
title: "Master Bedroom Air Purifier"
card:
type: vertical-stack
in_card: true
cards:
- type: history-graph
entities:
- fan.master_bedroom_air_purifier
- type: history-graph
entities:
- sensor.hlubocepy_air_quality
- type: history-graph
entities:
- sensor.master_bedroom_aqi
binary_sensor.cooper_s_e_all4_door_lock_state:
title: "Car Lock"
card:
type: vertical-stack
in_card: true
cards:
- type: entities
entities:
- binary_sensor.cooper_s_e_all4_door_lock_state
- type: history-graph
entities:
- binary_sensor.cooper_s_e_all4_door_lock_state
- type: button
name: Press to Lock the Car
tap_action:
action: call-service
service: lock.lock
service_data:
entity_id: lock.cooper_s_e_all4_lock
entity: lock.cooper_s_e_all4_lock
sensor.trash_display:
title: "Trash Needs Taking Out"
card:
type: button
name: I took it out!
tap_action:
action: call-service
service: input_boolean.turn_off
service_data:
entity_id: input_boolean.trash_needs_taking_out
entity: sensor.trash_display
sensor.rain_sensor:
title: Rain Rate Graph
card:
type: history-graph
entities:
- sensor.smartweather_rain_rate
cards:
- type: custom:layout-card
layout_type: custom:vertical-layout
cards:
#
# - type: custom:layout-card
# layout: vertical
# cards:
- type: custom:decluttering-card
template: emergency
variables:
- entity: binary_sensor.basement_is_flooding
- state: 'on'
- name: "!!The Basement is Flooding!!"
- type: custom:decluttering-card
template: emergency
variables:
- entity: binary_sensor.server_room_flood_sensor
- state: 'on'
- name: "!!The Server Room is Flooding!!"
- type: custom:decluttering-card
template: alert
variables:
- entity: binary_sensor.trash_emergency
- state: 'on'
- name: "!Take Out the Trash Now!"
- type: custom:decluttering-card
template: warning
variables:
- entity: sensor.low_gas_in_car
- state: "Fill It"
- name: "The Car Needs Gas"
- type: custom:decluttering-card
template: warning
variables:
- entity: binary_sensor.kitchen_sink_flood_sensor
- state: 'on'
- name: "Water Under the Kitchen Sink"
# - type: custom:decluttering-card
# template: warning_marquee
# variables:
# - entity: binary_sensor.car_charging_problem
# - state: 'on'
# - name: "Car Charging Problem: Unplug it, turn the car off and on, and plug it back in."
- type: custom:decluttering-card
template: very_low_battery
variables:
- entity: sensor.car_needs_charging
- state: "Charge It"
- name: "The Car Needs to Be Plugged In"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.seans_phone_battery
- state: Very Low
- name: "Sean's Phone Battery is Very Low"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.sophies_phone_battery
- state: Very Low
- name: "Sophie's Phone Battery is Very Low"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.alenas_phone_battery
- state: Very Low
- name: "Alena's Phone Battery is Very Low"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.living_room_nest_protect_battery_health
- state: Replace
- name: "Replace Battery: Living Room Smoke Alarm"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.master_bedroom_nest_protect_battery_health
- state: Replace
- name: "Replace Battery: Master Bedoom Smoke Alarm"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.kids_room_nest_protect_battery_health
- state: Replace
- name: "Replace Battery: Sophie's Bedoom Smoke Alarm"
- type: custom:decluttering-card
template: very_low_battery_marquee
variables:
- entity: sensor.basement_nest_protect_battery_health
- state: Replace
- name: "Replace Battery: Basement Smoke Alarm"
- type: custom:decluttering-card
template: low_battery
variables:
- entity: sensor.seans_phone_battery
- state: Low
- name: "Sean's Phone Battery is Low"
- type: custom:decluttering-card
template: low_battery
variables:
- entity: sensor.sophies_phone_battery
- state: Low
- name: "Sophie's Phone Battery is Low"
- type: custom:decluttering-card
template: low_battery
variables:
- entity: sensor.alenas_phone_battery
- state: Low
- name: "Alena's Phone Battery is Low"
- type: custom:decluttering-card
template: open_windows_cold
- type: custom:decluttering-card
template: open_windows_hot
- type: custom:decluttering-card
template: notice_marquee
variables:
- entity: binary_sensor.open_window_letting_pollution_in
- state: 'on'
- name: ${states['input_text.windows_letting_pollution_in'].state}
- type: custom:decluttering-card
template: warning_marquee
variables:
- entity: binary_sensor.sebastians_room_rain_window
- state: 'on'
- name: "Sebastian's window is open and there is a forecast for rain"
- type: custom:decluttering-card
template: warning_marquee
variables:
- entity: binary_sensor.sophies_room_rain_window
- state: 'on'
- name: "Sophie's window is open and there is a forecast for rain"
- type: entity-filter
state_filter:
- "on"
- "Delivery"
- "delivery"
- "yes"
- "Open"
- "Clean"
- "Today"
- "Tomorrow"
- "armed_away"
- "!Now!"
- operator: ">"
value: -1
- "Drizzle"
- "Slight"
- "Moderate"
- "Heavy"
- "Very Heavy"
- "High"
- "Very High"
- "Dangerous"
- "Violent Shower"
entities:
- variable.posta_variable
- variable.dhl_variable
- variable.dpd_variable
- variable.gls_variable
- sensor.bio_odpad_day
- sensor.bike_day
- binary_sensor.back_door
- binary_sensor.garage_door
- binary_sensor.front_door_zone_1
- input_select.bosch_dishwasher_status
- binary_sensor.popp_unknown_type_0004_id_0014_sensor
- input_select.miele_washing_machine_status
- input_select.lg_washing_machine_status
- binary_sensor.ecolink_garage_door
- alarm_control_panel.laundry_room_window
- alarm_control_panel.motion_sensors
- alarm_control_panel.windows_and_garage_door
- sensor.trash_display
- binary_sensor.basement_sliding_door
- sensor.kite_day
- sensor.rain_sensor
- sensor.high_wind_warning
- entity: sensor.last_lightning
state_filter:
- operator: "!="
value: "no"
card:
type: glance
# title: "Happening Today"
columns: 3
show_empty: false
#coronavirus card
- type: picture-elements
image: /local/images/coronavirus_transparent.png
elements:
- type: icon
icon: mdi:virus-outline
style:
top: 15%
left: 5%
color: var(--ha-card-header-color)
- type: icon
icon: mdi:virus-outline
style:
top: 15%
right: -2%
color: var(--ha-card-header-color)
# Header
- style:
font-size: large
left: 31%
top: 16%
color: var(--ha-card-header-color)
text: Coronavirus
type: 'custom:text-element'
- style:
font-size: large
left: 57%
top: 16%
color: var(--ha-card-header-color)
text: In
type: 'custom:text-element'
- style:
font-size: large
left: 76%
top: 16%
color: var(--ha-card-header-color)
text: Czechia
type: 'custom:text-element'
#Numbers
- type: state-label
entity: sensor.czechia_coronavirus_current
style:
font-size: large
left: 20%
top: 44%
- type: state-label
entity: variable.czechia_coronavirus_new_yesterday
style:
font-size: large
left: 51%
top: 44%
- type: state-label
entity: variable.czechia_coronavirus_new_today
style:
font-size: large
left: 82%
top: 44%
#Units top row
- style:
font-size: small
left: 20%
top: 66%
text: Active
type: 'custom:text-element'
- style:
font-size: small
left: 51%
top: 66%
text: New
type: 'custom:text-element'
- style:
font-size: small
left: 82%
top: 66%
text: New
type: 'custom:text-element'
#Units bottom row
- style:
font-size: small
left: 20%
top: 85%
text: Cases
type: 'custom:text-element'
- style:
font-size: small
left: 51%
top: 85%
text: Yesterday
type: 'custom:text-element'
- style:
font-size: small
left: 82%
top: 85%
text: Today
type: 'custom:text-element'
- type: vertical-stack
cards:
# - type: conditional
# conditions:
# - entity: binary_sensor.seb_naptime
# state: "on"
# card:
# type: picture-glance
# camera_image: camera.sebs_room
# camera_view: live
# entities: []
# - type: 'custom:webrtc-camera'
# entity: camera.front_stream
#
# - type: horizontal-stack
# cards:
#
#
# - type: 'custom:webrtc-camera'
# entity: camera.left_stream
#
# - type: 'custom:webrtc-camera'
# entity: camera.right_stream
#
# - type: 'custom:webrtc-camera'
# entity: camera.back_stream
- type: picture-glance
# title: Outdoor - Front Gate
aspect_ratio: 16x9
entities: []
# - binary_sensor.motion_front_of_house_motion
# - binary_sensor.motion_front
# camera_image: camera.front_outdoor
# camera_image: camera.front_stream
camera_image: camera.front_preview
camera_view: live
show_state: false
show_name: false
- type: horizontal-stack
cards:
- type: picture-glance
# title: Outdoor - Left
aspect_ratio: 9x16
entities: []
# - binary_sensor.motion_left
# camera_image: camera.left_stream
camera_image: camera.left_preview
camera_view: live
show_state: false
show_name: false
- type: picture-glance
# title: Outdoor - Right
aspect_ratio: 9x16
entities: []
# - binary_sensor.motion_right
# camera_image: camera.right_stream
camera_image: camera.right_preview
camera_view: live
show_state: false
show_name: false
- type: picture-glance
# title: Outdoor - Back Yard
aspect_ratio: 16x9
entities: []
# - binary_sensor.motion_back_of_house_motion
# - binary_sensor.motion_back
# camera_image: camera.back_outdoor
# camera_image: camera.back_stream
camera_image: camera.back_preview
camera_view: live
show_state: false
show_name: false
# - type: markdown
# content: |
# ## [[ sensor.sean_commute ]]
- type: custom:layout-break
- type: entity-filter
card:
title: "!!! EMERGENCY ALERT !!!"
show_header_toggle: false
entities:
- sensor.living_room_nest_protect_co_status
- sensor.living_room_nest_protect_smoke_status
- sensor.master_bedroom_nest_protect_co_status
- sensor.master_bedroom_nest_protect_smoke_status
- sensor.kids_room_nest_protect_co_status
- sensor.kids_room_nest_protect_smoke_status
- sensor.basement_nest_protect_co_status
- sensor.basement_nest_protect_smoke_status
- sensor.living_room_nest_protect_color_status
- sensor.master_bedroom_nest_protect_color_status
- sensor.kids_room_nest_protect_color_status
- sensor.basement_nest_protect_color_status
- sensor.house_electricity
# - sensor.object_detection_front
# - sensor.object_detection_left
# - sensor.object_detection_right
# - sensor.object_detection_back
# - binary_sensor.human_back
# - binary_sensor.human_front
# - binary_sensor.human_left
# - binary_sensor.human_right
- binary_sensor.basement_is_flooding
state_filter:
- "red"
- "Emergency"
- "power_out"
- "on"
- "yes"
show_empty: false
- type: entity-filter
card:
title: Devices Reporting Problems
show_header_toggle: false
entities:
- sensor.living_room_nest_protect_co_status
- sensor.living_room_nest_protect_smoke_status
- sensor.master_bedroom_nest_protect_co_status
- sensor.master_bedroom_nest_protect_smoke_status
- sensor.kids_room_nest_protect_co_status
- sensor.kids_room_nest_protect_smoke_status
- sensor.basement_nest_protect_co_status
- sensor.basement_nest_protect_smoke_status
- binary_sensor.living_room_nest_protect_online
- sensor.living_room_nest_protect_color_status
- binary_sensor.master_bedroom_nest_protect_online
- sensor.master_bedroom_nest_protect_color_status
- binary_sensor.kids_room_nest_protect_online
- sensor.kids_room_nest_protect_color_status
- binary_sensor.basement_nest_protect_online
- sensor.basement_nest_protect_color_status
- zwave.aeotec_zw090_z_stick_gen5_eu
- zwave.aeotec_zw096_smart_switch_6
- zwave.neo_coolcam_door_window_detector
- zwave.neo_coolcam_door_window_detector_2
- zwave.neo_coolcam_unknown_type_0200_id_1027
- zwave.popp_unknown_type_0004_id_0014
- binary_sensor.alarm_connection
- sensor.discworld_status_smart_sda
- sensor.discworld_status_smart_sdb
- sensor.discworld_status_smart_sdc
- sensor.discworld_status_smart_sdd
- zwave.sebastian_room_left_window
- zwave.basement_flood_sensor
- zwave.ecolink_sophies_room_ceiling_window
- zwave.ecolink_closet_left_window
- zwave.ecolink_garage_door_sensor
- zwave.ecolink_basement_sliding_door
- zwave.ecolink_master_bedroom_window_sensor
state_filter:
- "Warning"
- "grey"
- "yellow"
- "off"
- "dead"
- "disconnected"
- "warning"
- "critical"
- "failing"
- "access error"
show_empty: false
- type: entity-filter
card:
title: "Low Battery"
show_header_toggle: false
state_filter:
- "Low"
- operator: "<"
value: 10
entities:
# - sensor.seans_phone_battery
# - sensor.alenas_phone_battery
- sensor.closet_window_sensor_1_battery
- sensor.back_door_sensor_battery
# - sensor.sophies_phone_battery
- sensor.guest_bedroom_window_1_battery
- sensor.basement_flood_sensor_battery
- sensor.sebastian_left_window_battery
- sensor.sophies_room_ceiling_window_sensor_battery_level
- sensor.ecolink_closet_left_window_battery_level
- sensor.ecolink_garage_door_battery_level
- sensor.ecolink_basement_sliding_door_battery_level
- sensor.master_bedroom_window_sensor_battery_level
show_empty: false
- type: entity-filter
card:
title: "Upcoming Holidays"
show_header_toggle: false
show_empty: false
state_filter:
- operator: regex
value: "^([0-7]{1})$"
attribute: eta
entities:
- entity: sensor.czech_holiday_friendly_0
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.czech_holiday_friendly_1
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.czech_holiday_friendly_2
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.czech_holiday_friendly_3
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.czech_holiday_friendly_4
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.parklane_holiday_friendly_0
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.parklane_holiday_friendly_1
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.parklane_holiday_friendly_2
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.parklane_holiday_friendly_3
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
- entity: sensor.parklane_holiday_friendly_4
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ {entity}.attributes.date ]]"
# - type: custom:gap-card
# height: 25
### These are the cards you see all the time in the first tab on the kiosks
- type: vertical-stack
in_card: true
cards:
#
# - type: custom:gap-card
## height: 25
# font-size: var(--ha-card-header-font-size, 0px);
- type: 'custom:weather-card-chart'
style: |
.card-header {
padding: 20px 16px 10px;
line-height: 32px;
}
title: Weather
weather: weather.smartweather_home
sun: sun.sun
mode: hourly
temp: sensor.smartweatherudp_temperature
wind: sensor.smartweather_wind_gust
- type: entities
# title: Weather Forecast
show_header_toggle: false
entities:
- sensor.dark_sky_hourly_summary
- sensor.dark_sky_daily_summary
# - sensor.u_s_air_pollution_level
# - sensor.u_s_air_quality_index
- type: custom:layout-break
- type: glance
entities:
- sensor.sean_location
# type: "custom:secondaryinfo-entity-row"
# secondary_info: "ETA: [[ sensor.sean_tram_time_to_home ]]"
- sensor.sophie_location
- sensor.alena_location
- type: conditional
conditions:
- entity: binary_sensor.reminders_label
state: "on"
card:
type: vertical-stack
in_card: true
cards:
- type: "custom:button-card"
name: Reminders
styles:
name:
- color: var(--ha-card-header-color)
- justify-self: start
- padding-left: 16px
card:
- padding-top: 22px
- padding-bottom: 10px
- font-size: 24px
- type: "custom:calendar-card"
entities:
- calendar.alena_and_seans_calendar
# title: "Reminders"
showProgressBar: false
numberOfDays: 3
hidePastEvents: true
hideHeader: true
timeFormat: 'hh:mm a'
#These are the colors to use for the environment graph cards
#HSV: X°, 100%, 77%
#card green: #00c40a
#card yellow: #c1c400
#card orange: #c48600
#card red: #c41700
#card magenta: #c4007c
#card violet: #b000c4
#
#HSV: X°, 39%, 100%
#graph green: #9cffa1
#graph yellow: #fdff9c
#graph orange: #ffe09c
#graph red: #ffa79c
#graph magenta: #ff9cdb
#graph violet: #f59cff
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: AQI Outside
icon: mdi:air-filter
style: |
ha-card {
background: {% if states('sensor.hlubocepy_air_quality')|int <= 50 %}
#00c40a
{% elif states('sensor.hlubocepy_air_quality')|int <= 100 %}
#c1c400
{% elif states('sensor.hlubocepy_air_quality')|int <= 150 %}
#c48600
{% elif states('sensor.hlubocepy_air_quality')|int <= 200 %}
#c41700
{% elif states('sensor.hlubocepy_air_quality')|int <= 300 %}
#b000c4
{% else %}
#c4007c
{% endif %}
entities:
- entity: sensor.hlubocepy_air_quality
name:
color_thresholds:
- value: 25
color: "#9cffa1"
- value: 75
color: "#fdff9c"
- value: 125
color: "#ffe09c"
- value: 175
color: "#ffa79c"
- value: 250
color: "#f59cff"
- value: 350
color: "#ff9cdb"
hours_to_show: 24
points_per_hour: 2
show_points: false
height: 60
# - type: custom:mini-graph-card
# name: CO2 Indoors
# icon: mdi:air-filter
# style: |
# ha-card {
# background: {% if states('sensor.hlubocepy_air_quality')|int <= 700 %}
# #00c40a
# {% elif states('sensor.hlubocepy_air_quality')|int <= 1000 %}
# #c1c400
# {% elif states('sensor.hlubocepy_air_quality')|int <= 1500 %}
# #c48600
# {% elif states('sensor.hlubocepy_air_quality')|int <= 2000 %}
# #c41700
# {% elif states('sensor.hlubocepy_air_quality')|int <= 5000 %}
# #b000c4
# {% else %}
# #c4007c
# {% endif %}
# entities:
# - entity: sensor.home_co2
# name:
# color_thresholds:
# - value: 350
# color: "#9cffa1"
# - value: 850
# color: "#fdff9c"
# - value: 1250
# color: "#ffe09c"
# - value: 1750
# color: "#ffa79c"
# - value: 3500
# color: "#f59cff"
# - value: 6500
# color: "#ff9cdb"
# hours_to_show: 24
# points_per_hour: 2
# show_points: false
# height: 60
- type: custom:mini-graph-card
name: AQI Inside
icon: mdi:air-filter
style: |
ha-card {
background: {% if states('sensor.home_air_quality')|int <= 50 %}
#00c40a
{% elif states('sensor.home_air_quality')|int <= 100 %}
#c1c400
{% elif states('sensor.home_air_quality')|int <= 150 %}
#c48600
{% elif states('sensor.home_air_quality')|int <= 200 %}
#c41700
{% elif states('sensor.home_air_quality')|int <= 300 %}
#b000c4
{% else %}
#c4007c
{% endif %}
entities:
- entity: sensor.home_air_quality
name:
color_thresholds:
- value: 25
color: "#9cffa1"
- value: 75
color: "#fdff9c"
- value: 125
color: "#ffe09c"
- value: 175
color: "#ffa79c"
- value: 250
color: "#f59cff"
- value: 350
color: "#ff9cdb"
hours_to_show: 24
points_per_hour: 2
show_points: false
height: 60
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Radon Upstairs
style: |
ha-card {
background: {% if states('sensor.radon_upstairs')|int <= 100 %}
#00c40a
{% elif states('sensor.radon_upstairs')|int <= 150 %}
#c1c400
{% else %}
#c41700
{% endif %}
entities:
- entity: sensor.radon_upstairs
name:
color_thresholds:
- value: 0
color: "#9cffa1"
- value: 90
color: "#9cffa1"
- value: 110
color: "#fdff9c"
- value: 140
color: "#fdff9c"
- value: 160
color: "#ffe09c"
- value: 200
color: "#ffe09c"
hours_to_show: 24
points_per_hour: 2
show_points: false
height: 60
- type: custom:mini-graph-card
name: VOC Upstairs
style: |
ha-card {
background: {% if states('sensor.tvocs_upstairs')|int <= 250 %}
#00c40a
{% elif states('sensor.tvocs_upstairs')|int <= 2000 %}
#c1c400
{% else %}
#c41700