forked from kvazis/training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-lovelace.yaml
executable file
·708 lines (595 loc) · 21.3 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
697
698
699
700
701
702
703
704
705
706
707
708
title: Home Assistant - сервер
views:
- title: Главная
icon: mdi:home-assistant
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Текущее состояние**
- type: entities
show_header_toggle: false
entities:
- entity: sensor.last_boot_custom
- entity: sensor.online_custom
- entity: sensor.time
name: Текущее время
icon: mdi:clock-outline
- entity: sensor.date
name: Дата
icon: mdi:calendar-check-outline
- entity: binary_sensor.rpi_power_status
- type: markdown
content: >
**Резервное копирование**
- type: entities
show_header_toggle: false
entities:
- entity: sensor.last_google_backup_train
- entity: sensor.snapshots_in_google_drive_train
- entity: sensor.snapshots_in_hassio_train
- type: entities
show_header_toggle: false
entities:
- entity: sensor.maria_db_size
name: Объем БД
icon: mdi:database
- type: vertical-stack
cards:
- type: markdown
content: >
**Графики**
- type: horizontal-stack
cards:
- type: gauge
name: Загрузка CPU
unit: '%'
entity: sensor.processor_use_percent
severity:
green: 0
yellow: 60
red: 85
- type: gauge
name: Загрузка ОЗУ
unit: '%'
entity: sensor.memory_use_percent
severity:
green: 0
yellow: 60
red: 85
- type: horizontal-stack
cards:
- type: gauge
name: Диск заполнен
unit: '%'
entity: sensor.disk_use_percent
severity:
green: 0
yellow: 60
red: 85
- type: gauge
name: Свободное место
unit: 'Гб'
entity: sensor.disk_free
severity:
red: 2
yellow: 6
green: 8
- type: history-graph
entities:
- entity: sensor.maria_db_size
name: Maria DB
- title: Погода
icon: mdi:weather-partly-snowy-rainy
cards:
- type: weather-forecast
entity: weather.home_assistant
- type: weather-forecast
entity: weather.openweathermap
- title: Освещение
icon: mdi:lightbulb-group
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Панель переключателей**
- type: entities
show_header_toggle: false
entities:
- entity: light.yeelight_650
name: Люстра 650 основной свет
- entity: light.yeelight_650_nightlight
name: Люстра 650 ночник
- entity: light.yeelight_650_ambilight
name: Люстра 650 амбилайт
- entity: light.yeelight_450
name: Люстра 450 основной свет
- entity: light.yeelight_450_nightlight
name: Люстра 450 ночник
- entity: light.yeelight_rgb_bulb
name: Лампочка
- entity: light.philips_ceiling
name: Philips люстра
- entity: light.philips_bedside
name: Philips прикроватник
- type: entities
show_header_toggle: false
entities:
- entity: script.unit8_light_on_full
- entity: script.unit8_light_on_medium
- entity: script.unit8_light_off
- type: vertical-stack
cards:
- type: markdown
content: >
**Светильники**
- type: horizontal-stack
cards:
- type: light
entity: light.yeelight_650
name: Люстра 650
- type: light
entity: light.yeelight_650_nightlight
name: Ночник 650
- type: light
entity: light.yeelight_650_ambilight
name: Ambilight 650
- type: horizontal-stack
cards:
- type: light
entity: light.yeelight_450
name: Люстра 450
- type: light
entity: light.yeelight_450_nightlight
name: Ночник 450
- type: light
entity: light.yeelight_rgb_bulb
name: RGB Лампочка
- type: horizontal-stack
cards:
- type: light
entity: light.philips_ceiling
name: Люстра
- type: light
entity: light.philips_bedside
name: Прикроватник
- title: Zigbee
icon: mdi:zigbee
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Уровень заряда**
- type: entities
show_header_toggle: false
entities:
- entity: sensor.158d0001531698_battery
- entity: sensor.158d0001186d82_battery
- entity: sensor.158d00013fc3bc_battery
- type: markdown
content: >
**Розетки**
- type: entities
show_header_toggle: false
entities:
- entity: switch.plug_158d00010ec4b8
- entity: sensor.158d00010ec4b8_load
- type: markdown
content: >
**Шлюз**
- type: entities
show_header_toggle: false
entities:
- entity: light.gateway_light_34ce0088b039
- entity: sensor.illumination_34ce0088b039
- type: vertical-stack
cards:
- type: markdown
content: >
**Климат, окна двери**
- type: entities
show_header_toggle: false
entities:
- entity: sensor.humidity_158d00015aebb6
- entity: sensor.temperature_158d00015aebb6
- entity: binary_sensor.door_window_sensor_158d00013ed373
- entity: binary_sensor.door_window_sensor_158d000445206b
- title: СС 2531
icon: mdi:usb-flash-drive
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Добавление устройств**
- type: entities
title: Добавление Zigbee устройств
show_header_toggle: false
entities:
- entity: input_boolean.zigbee_permit_join
- entity: timer.zigbee_permit_join
- entity: sensor.bridge_state
- type: markdown
content: >
**Розетки и реле**
- type: entities
show_header_toggle: false
entities:
- entity: switch.dd_wd_n_2ch_switch_left
- entity: switch.dd_wd_n_2ch_switch_right
- entity: sensor.dd_wd_n_2ch_power
- title: wi-fi
icon: mdi:wifi
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Wi-Fi розетки и удлинители**
- type: entities
show_header_toggle: false
entities:
- entity: switch.mi_3usb_strip
name: Удлинитель Xiaomi c 3 USB
secondary_info: last-changed
- entity: sensor.mi_3usb_strip_load
- entity: switch.mi_usb_socket
name: Розетка Xiaomi c 2 USB
- entity: sensor.usb_socket_load
- type: vertical-stack
cards:
- type: markdown
content: >
**Климатическая техника**
- type: entities
show_header_toggle: false
entities:
- entity: fan.mi_humidifier
name: Увлажнитель Smartmi
- entity: sensor.smartmi_speed
- entity: sensor.smartmi_water
- entity: sensor.smartmi_temperature
- entity: sensor.smartmi_humidity
- type: entities
show_header_toggle: false
entities:
- entity: fan.mi_purifier
name: Очиститель Xiaomi
- entity: sensor.purifier_speed
- entity: sensor.purifier_filter
- entity: sensor.purifier_temperature
- entity: sensor.purifier_humidity
- entity: sensor.purifier_pm25
- type: vertical-stack
cards:
- type: markdown
content: >
**Качество воздуха**
- type: entities
show_header_toggle: false
entities:
- entity: sensor.mi_air_co2a
- entity: sensor.mi_air_pm25
- entity: sensor.mi_air_tvoc
- title: Шаблоны
icon: mdi:alpha-t-box
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
**Составной сенсор движения**
- type: glance
show_state: false
entities:
- entity: binary_sensor.ln_moving_occupancy
name: Движение 1
- entity: binary_sensor.cr_moving_occupancy
name: Движение 2
- entity: binary_sensor.lr_balcony_moving_occupancy
name: Движение 3
- type: glance
show_state: false
entities:
- entity: binary_sensor.super_motion
- type: markdown
content: >
**Составной сенсор окон**
- type: glance
show_state: false
entities:
- entity: binary_sensor.dd_window_contact
name: Окно 1
- entity: binary_sensor.da_window_contact
name: Окно 2
- entity: binary_sensor.lr_window_contact
name: Окно 3
- type: glance
show_state: false
entities:
- entity: binary_sensor.super_windows
- type: vertical-stack
cards:
- type: markdown
content: >
**Составной сенсор для увлажнения**
- type: glance
entities:
- entity: binary_sensor.tod_day
name: Дневное время
- entity: sensor.kn_climate_humidity
name: Влажность
- type: glance
show_state: false
entities:
- entity: binary_sensor.super_windows_day
- type: markdown
content: >
**Сенсоры светильников**
- type: entities
show_header_toggle: false
entities:
- entity: light.philips_bedside
name: Светильник
- entity: binary_sensor.cr_moving_occupancy
name: Движение
- entity: binary_sensor.auto_light
- type: markdown
content: >
**Нагрузка**
- type: entities
show_header_toggle: false
entities:
- entity: switch.mi_3usb_strip
- entity: sensor.mi_3usb_strip_load
- entity: binary_sensor.check_load
- title: Packages
icon: mdi:package-variant
cards:
- type: entities
show_header_toggle: false
entities:
- entity: light.yeelight_320_ceiling
name: Светильник
- entity: binary_sensor.0x00158d0001a24e71_occupancy
name: Движение
- entity: binary_sensor.unit_10_1_ex1
- entity: binary_sensor.unit_10_1_ex1_day
name: День
- entity: binary_sensor.unit_10_1_ex1_night
name: Ночь
- entity: timer.unit_10_1_ex1
- type: entities
show_header_toggle: false
state_color: true
entities:
- entity: light.yeelight_450
name: Светильник 2
- entity: binary_sensor.ln_moving_occupancy
name: Движение
- entity: binary_sensor.unit_10_1_ex2
- entity: sensor.kn_light_sensor_illuminance
name: Освещенность
- title: telegram
icon: mdi:telegram
cards:
- type: entities
show_header_toggle: false
entities:
- entity: script.send_message_1
name: Сервис уведомлений
- entity: script.system_report
- entity: sensor.unavailable_now_light
- entity: sensor.unavailable_now_switch
- entity: sensor.unavailable_now_sensor
- entity: sensor.unavailable_now_binary_sensor
- type: entities
show_header_toggle: false
entities:
- entity: script.climate_report
- title: mqtt_command
icon: mdi:animation-outline
cards:
- type: entities
show_header_toggle: false
entities:
- entity: script.set_interlock_on
name: Включить интерлок
icon: mdi:lock
- entity: script.set_interlock_off
name: Выключить интерлок
icon: mdi:lock-open
- entity: binary_sensor.relay_interlock
name: Интерлок
- type: divider
- entity: script.set_outage_on
name: Включить восстановление питания
icon: mdi:power-cycle
- entity: script.set_outage_off
name: Выключить восстановление питания
icon: mdi:power-off
- entity: binary_sensor.switch_outage
name: Восстановление после сбоя питания
- type: divider
- entity: script.set_decoupled_left
name: Отключить левую кнопку
icon: mdi:toggle-switch-off-outline
- entity: script.set_decoupled_right
name: Отключить правую кнопку
icon: mdi:toggle-switch-outline
- entity: script.set_control_left
name: Включить левую кнопку
icon: mdi:toggle-switch-off
- entity: script.set_control_right
name: Включить правую кнопку
icon: mdi:toggle-switch
- title: camera
icon: mdi:cctv
cards:
- type: picture-entity
entity: camera.reolink_e1_zoom_profile000_mainstream
camera_view: live
show_state: false
show_name: false
- type: entities
show_header_toggle: false
entities:
- entity: script.photo_reolink
- entity: script.video_reolink
- entity: script.photo_reolink_telegram
- entity: script.video_reolink_telegram
- title: thermostat
icon: mdi:home-thermometer
cards:
- type: thermostat
entity: climate.termos
- title: Blueprints
icon: mdi:script
cards:
- type: vertical-stack
cards:
- type: glance
entities:
- entity: binary_sensor.0x00158d00013f7894_occupancy
name: Движение
- entity: binary_sensor.motion_no_light
- entity: binary_sensor.no_motion_light
- type: light
entity: light.0x00158d000420dbab_light
name: Лампочка
- type: entities
show_header_toggle: false
entities:
- entity: timer.unit_10_3
- title: History
icon: mdi:script
cards:
- type: vertical-stack
cards:
- type: entities
show_header_toggle: false
entities:
- entity: binary_sensor.0x00158d00054495dc_contact
- entity: sensor.binary_state
- entity: sensor.binary_state_custom
################## Климат
- title: Климат
icon: mdi:home-thermometer
cards:
- type: vertical-stack
cards:
- type: markdown
style: |
ha-card {
font-size: 26px;
}
content: >
**Mijia**
- type: custom:mini-graph-card
entities:
- entity: sensor.lr_climate_temperature
name: Температура
color_thresholds:
- value: 10
color: "#191970"
- value: 15
color: "#0000FF"
- value: 20
color: "#ADD8E6"
- value: 25
color: "#E0FFFF"
- value: 30
color: "#FFFF00"
- value: 50
color: "#FFD700"
animate: true
line_width: 2
hour24: true
points_per_hour: 1
group_by: hour
hours_to_show: 48
- type: custom:mini-graph-card
entities:
- entity: sensor.lr_climate_humidity
name: Влажность
color_thresholds:
- value: 20
color: "#FFFF00"
- value: 30
color: "#FAFAD2"
- value: 40
color: "#E0FFFF"
- value: 50
color: "#7FFFD4"
- value: 60
color: "#00CED1"
- value: 80
color: "#0000FF"
- value: 100
color: "#000080"
animate: true
line_width: 2
hour24: true
points_per_hour: 1
group_by: hour
hours_to_show: 48
- type: vertical-stack
cards:
- type: markdown
style: |
ha-card {
font-size: 26px;
}
content: >
**Sonoff**
- type: custom:mini-graph-card
entities:
- entity: sensor.cr_climate_temperature
name: Температура
color_thresholds:
- value: 10
color: "#191970"
- value: 15
color: "#0000FF"
- value: 20
color: "#ADD8E6"
- value: 25
color: "#E0FFFF"
- value: 30
color: "#FFFF00"
- value: 50
color: "#FFD700"
animate: true
line_width: 2
hour24: true
points_per_hour: 1
group_by: hour
hours_to_show: 48
- type: custom:mini-graph-card
entities:
- entity: sensor.cr_climate_humidity
name: Влажность
color_thresholds:
- value: 20
color: "#FFFF00"
- value: 30
color: "#FAFAD2"
- value: 40
color: "#E0FFFF"
- value: 50
color: "#7FFFD4"
- value: 60
color: "#00CED1"
- value: 80
color: "#0000FF"
- value: 100
color: "#000080"
animate: true
line_width: 2
hour24: true
points_per_hour: 1
group_by: hour
hours_to_show: 48