forked from hyotynen/hass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-lovelace.yaml
641 lines (614 loc) · 22.5 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
# Home Assistant Lovelace UI configuration
# (c) Kimmo Hyötynen - https://hyotynen.iki.fi
title: Koti
background: center / cover no-repeat url("/local/background.jpg?v=1") fixed
resources:
- url: /community_plugin/vertical-stack-in-card/vertical-stack-in-card.js
type: js
- url: https://unpkg.com/[email protected]/moment.js
type: js
- url: /community_plugin/calendar-card/calendar-card.js
type: module
- url: /community_plugin/monster-card/monster-card.js
type: js
- url: /community_plugin/compact-custom-header/compact-custom-header.js
type: module
- url: /community_plugin/mini-media-player/mini-media-player.js
type: module
- url: /community_plugin/lovelace-card-mod/card-mod.js
type: module
- url: /community_plugin/canvas-gauge-card/canvas-gauge-card2.js
type: module
- url: /community_plugin/mini-graph-card/mini-graph-card.js
type: module
- url: /community_plugin/spotify-card/spotify-card.umd.js
type: module
- url: /community_plugin/lovelace-layout-card/layout-card.js
type: js
- url: /community_plugin/lovelace-card-tools/card-tools.js
type: js
cch:
main_config: true
background: rgba(0,0,0,.6)
voice: clock
clock_am_pm: false
clock_format: 24
swipe: true
swipe_animate: swipe
conditional_styles:
- entity: notifications
condition:
state: false
button:
notifications:
hide: true
anchors:
base_style: &base_style
style: |
ha-card {
border: solid 2px rgba(71,126,235,0.8);
background: rgba(0, 0, 0, .6);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.3);
}
base_style_nomargin: &base_style_nomargin
style: |
ha-card {
border: solid 2px rgba(71,126,235,0.8);
background: rgba(0, 0, 0, .6);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.3);
padding: 0px;
}
.card-content {
padding: 0px;
}
div {
margin: 0px !important;
}
gauge_card_style: &gauge_card_style
type: "radial-gauge"
fontUnitsSize: 25
minValue: 0
width: 150
height: 150
startAngle: 90
ticksAngle: 180
valueBox: false
minorTicks: 2
strokeTicks: true
borders: false
needleShadow: false
needleCircleSize: 7
colorPlate: "rgba(0,0,0,0)"
colorMajorTicks: "#999"
colorNumbers: "#999"
colorNeedle: "#123c95"
colorNeedleEnd: "#123c95"
colorNeedleCircleInner: "#477eeb"
colorNeedleCircleInnerEnd: "#477eeb"
colorNeedleCircleOuter: "#477eeb"
colorNeedleCircleOuterEnd: "#477eeb"
views:
- title: Etusivu
icon: mdi:play
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
<<: *base_style
title: Perhe
show_header_toggle: false
entities:
- sensor.kimmo
- type: entities
<<: *base_style_nomargin
entities:
- type: "custom:calendar-card"
title: Menot
timeFormat: HH:mm
numberOfDays: 7
startFromToday: true
entities:
- calendar.menot
- break
- type: entities
show_header_toggle: off
<<: *base_style_nomargin
entities:
- card:
type: custom:vertical-stack-in-card
cards:
- type: weather-forecast
entity: weather.home
name: ' '
- type: entities
show_header_toggle: false
entities:
- sensor.pakkasen_purevuus
- sensor.yr_cloudiness
- sensor.yr_precipitation
- sensor.aurinko
- sensor.pv_pituus
- break
- type: iframe
<<: *base_style_nomargin
url: https://cdn.fmi.fi/javascript/metoclient-ui-product-1.6.13/products/animator-fi.html
aspect_ratio: 100%
- title: Sisätilat
icon: mdi:home-outline
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
<<: *base_style
title: Olohuone
show_header_toggle: true
entities:
- input_select.olohuoneen_valaistusasetus
- switch.sohvaryhman_valaistus
- switch.takan_valaistus
- sensor.olohuoneen_valoisuus_median
- type: entities
<<: *base_style_nomargin
entities:
- type: custom:mini-media-player
entity: media_player.onkyo
- type: entities
<<: *base_style_nomargin
entities:
- type: custom:mini-media-player
entity: media_player.spotify
- break
- type: entities
<<: *base_style_nomargin
entities:
- type: 'custom:spotify-card'
client_id: !secret spotify_client
device: 'Onkyo TX-NR686 EC99D5'
style:
.: |
spotify-card {
background-color: #424242;
}
"#states spotify-card":
$: |
:host {
background-color: #424242;
}
- break
- type: entities
<<: *base_style
title: Sauna
show_header_toggle: false
entities:
- sensor.sauna_temperature
- sensor.sauna_humidity
- sensor.absol_kosteus_sauna
- sensor.sauna_pressure
- type: entities
<<: *base_style
title: Kylpyhuone
show_header_toggle: false
entities:
- sensor.kylpyhuone_temperature
- sensor.kylpyhuone_humidity
- sensor.absol_kosteus_kylpyhuone
- sensor.kylpyhuone_pressure
- title: Autotalli ja ulkotilat
icon: mdi:garage-open
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
<<: *base_style
title: Autotalli
show_header_toggle: false
entities:
- input_select.at_ivtehostusasetus
- switch.autotallin_ilmanvaihdon_tehostus
- sensor.autotalli_temperature
- sensor.autotalli_humidity
- sensor.absol_kosteus_autotalli
- entity: sensor.absol_kosteus_ulko
name: Absoluuttinen kosteus ulkona
- sensor.autotalli_pressure
- script.autotallin_nostoovi
- type: conditional
<<: *base_style
conditions:
- entity: switch.auton_lammitys
state: "on"
card:
type: entities
title: "Auton l\xE4mmitys"
show_header_toggle: false
entities:
- input_select.autonlammitysasetus
- switch.auton_lammitys
- input_datetime.lahtoaika
- sensor.autonlammitysaika
- sensor.autonlammitysaloitusaika
- sensor.auton_lammitysteho
- type: conditional
<<: *base_style
conditions:
- entity: switch.tplink2
state: "on"
card:
type: entities
title: Koristevalot
show_header_toggle: false
entities:
- input_select.koristevalaistusasetus
- switch.tplink2
- title: Poistoilmalämpöpumppu
icon: mdi:fan
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
show_header_toggle: false
<<: *base_style_nomargin
entities:
- type: custom:vertical-stack-in-card
title: "Poistoilmal\xE4mp\xF6pumpun tiedot"
cards:
- type: glance
columns: 3
entities:
- sensor.nilan_tila
- sensor.nilan_kompressori
- sensor.nilan_halytys
- sensor.sisailma_humidity
- sensor.co2_median
- sensor.voc_median
- type: custom:mini-graph-card
line_width: 2
hour24: true
points_per_hour: 2
font_size: 70
decimals: 1
show:
name: false
icon: false
fill: false
points: false
entities:
- entity: sensor.nilan_t7_temp
name: Tuloilma
- entity: sensor.nilan_t10_temp
name: Poistoilma
- entity: sensor.nilan_t1_temp
name: Ulkoilma
- entity: sensor.jateilma
name: Jäteilma
- type: glance
columns: 4
entities:
- entity: sensor.nilan_inlet_fan_speed
name: Tulopuhallin
- entity: sensor.nilan_exhaust_fan_speed
name: Poistopuhallin
- sensor.tulohyoty
- sensor.poistohyoty
- type: custom:mini-graph-card
line_width: 2
hour24: true
points_per_hour: 2
font_size: 70
decimals: 1
show:
name: false
icon: false
fill: false
points: false
entities:
- entity: sensor.nilan_t14_temp
name: Lattialämmitys
- entity: sensor.nilan_t11_temp
name: Varaaja (ylä)
- entity: sensor.nilan_t12_temp
name: Varaaja (ala)
- break
- type: entities
<<: *base_style
title: "Poistoilmal\xE4mp\xF6pumpun asetukset"
show_header_toggle: false
entities:
- input_select.nilan_asetus
- input_number.nilan_lampotilapyynto
- input_number.nilan_ilmanvaihtopyynto
- switch.lattialammitys
- input_select.ivtehostusasetus
- switch.ilmanvaihdon_tehostus
- switch.takkakytkin
- title: "Turvallisuus"
icon: mdi:shield-home-outline
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: picture-glance
<<: *base_style_nomargin
camera_image: camera.tyohuone
entities:
- entity: script.dafang_motor_up
icon: mdi:arrow-up-bold
- entity: script.dafang_motor_down
icon: mdi:arrow-down-bold
- entity: script.dafang_motor_left
icon: mdi:arrow-left-bold
- entity: script.dafang_motor_right
icon: mdi:arrow-right-bold
- entity: script.dafang_motor_reset
icon: mdi:restart
- entity: script.dafang_nightvision_on
icon: mdi:weather-night
- entity: script.dafang_nightvision_off
icon: mdi:weather-sunny
- type: entities
show_header_toggle: off
title: Kosteushälytin
<<: *base_style
entities:
- sensor.leak_status
- sensor.leak_deviation
- title: "J\xE4rjestelm\xE4t"
icon: mdi:settings
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
show_header_toggle: off
<<: *base_style_nomargin
entities:
- type: custom:vertical-stack-in-card
title: Home Assistant
cards:
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.cpu_kuorma
card_height: 110
gauge:
units: "CPU Kuorma"
title: "%"
maxValue: 100
majorTicks: ["0", "20", "40", "60", "80", "100"]
highlights: [{"from": 80, "to": 100,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.cpu_lampotila
card_height: 110
gauge:
units: "CPU Lämpötila"
title: "°C"
maxValue: 100
majorTicks: ["0", "20", "40", "60", "80", "100"]
highlights: [{"from": 80, "to": 100,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: entities
entities:
- sensor.uptime
- type: entities
show_header_toggle: off
<<: *base_style_nomargin
entities:
- type: custom:vertical-stack-in-card
title: Internet
cards:
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.asuswrt_download_speed
card_height: 110
gauge:
units: "Lataus"
title: "Mt/s"
maxValue: 60
majorTicks: ["0", "10", "20", "30", "40", "50", "60"]
highlights: [{"from": 50, "to": 60,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.asuswrt_upload_speed
card_height: 110
gauge:
units: "Lähetys"
title: "Mt/s"
maxValue: 60
majorTicks: ["0", "10", "20", "30", "40", "50", "60"]
highlights: [{"from": 50, "to": 60,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.speedtest_download
card_height: 110
gauge:
units: "SpeedTest"
title: "Mt/s"
maxValue: 60
majorTicks: ["0", "10", "20", "30", "40", "50", "60"]
highlights: [{"from": 0, "to": 20,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.speedtest_upload
card_height: 110
gauge:
units: "SpeedTest"
title: "Mt/s"
maxValue: 60
majorTicks: ["0", "10", "20", "30", "40", "50", "60"]
highlights: [{"from": 0, "to": 20,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.speedtest_ping
card_height: 110
gauge:
units: "Ping"
title: "ms"
maxValue: 100
majorTicks: ["0", "20", "40", "60", "80", "100"]
highlights: [{"from": 60, "to": 100,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- break
- type: entities
show_header_toggle: off
<<: *base_style_nomargin
entities:
- type: custom:vertical-stack-in-card
title: "S\xE4hk\xF6n kulutus"
cards:
- type: entities
entities:
- input_select.tehorajoitus
- input_number.tehorajoituksen_ylaraja
- input_number.tehorajoituksen_alaraja
- type: custom:canvas-gauge-card
entity: sensor.watt
card_height: 110
gauge:
units: "Hetkellinen kulutus"
title: "W"
maxValue: 10000
majorTicks: ["0", "2000", "4000", "6000", "8000", "10000"]
highlights: [{"from": 6000, "to": 10000,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.kulutus_tanaan
card_height: 110
gauge:
units: "Tänään"
title: "kWh"
maxValue: 200
majorTicks: ["0", "40", "80", "120", "160", "200"]
highlights: [{"from": 120, "to": 200,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.kwh_eilinen
card_height: 110
gauge:
units: "Eilen"
title: "kWh"
maxValue: 200
majorTicks: ["0", "40", "80", "120", "160", "200"]
highlights: [{"from": 120, "to": 200,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.kwh_viikko_ja_tanaan
card_height: 110
gauge:
units: "Kuluva viikko"
title: "kWh"
maxValue: 1000
majorTicks: ["0", "200", "400", "600", "800", "1000"]
highlights: [{"from": 600, "to": 1000,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.kwh_ed_viikko
card_height: 110
gauge:
units: "Edellinen viikko"
title: "kWh"
maxValue: 1000
majorTicks: ["0", "200", "400", "600", "800", "1000"]
highlights: [{"from": 600, "to": 1000,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: horizontal-stack
cards:
- type: custom:canvas-gauge-card
entity: sensor.kwh_kk_ja_tanaan
card_height: 110
gauge:
units: "Kuluva kuukausi"
title: "kWh"
maxValue: 5000
majorTicks: ["0", "1000", "2000", "3000", "4000", "5000"]
highlights: [{"from": 3000, "to": 5000,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- type: custom:canvas-gauge-card
entity: sensor.kwh_ed_kk
card_height: 110
gauge:
units: "Edellinen kuukausi"
title: "kWh"
maxValue: 5000
majorTicks: ["0", "1000", "2000", "3000", "4000", "5000"]
highlights: [{"from": 3000, "to": 5000,"color": "rgba(71, 126, 235, .8)"}]
<<: *gauge_card_style
- break
- type: entities
<<: *base_style_nomargin
entities:
- type: custom:monster-card
card:
show_header_toggle: false
type: entities
title: Automaatiot
filter:
include:
- domain: automation
- title: Pohjakuva
icon: mdi:floor-plan
panel: true
cards:
- type: picture-elements
style:
.: |
ha-card {
border-radius: 0px;
}
image: /local/House_Cut.JPG
elements:
- type: image
image: /local/Garage_Cut_no_floor.png
entity: automation.viestin_lahetys_kun_pesukone_on_pessyt
style:
top: 10%
left: 91%
width: 15%
border: 1px solid grey
box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.15)
tap_action:
action: toggle
state_filter:
"on": saturate(2.2)
"off": hue-rotate(45deg)
- title: Test
panel: true
cards:
- type: custom:layout-card
column_width: 250
layout: vertical
cards:
- type: entities
<<: *base_style
title: "Pesutorni"
show_header_toggle: false
entities:
- sensor.pesukone_watts
- entity: timer.pesukone
name: Pesuaikaa jäljellä
- sensor.kuivausrumpu_watts
- entity: timer.kuivausrumpu
name: Kuivausaikaa jäljellä