-
Notifications
You must be signed in to change notification settings - Fork 17
/
configuration.yaml
executable file
·623 lines (587 loc) · 16.7 KB
/
configuration.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
homeassistant:
name: OXOTH1Ks home
latitude: !secret home_lat
longitude: !secret home_long
currency: RUB
elevation: 60
unit_system: metric
time_zone: Europe/Moscow
customize: !include customize.yaml
external_url: !secret external_url
internal_url: !secret internal_url
allowlist_external_dirs:
- /config
# customize_glob:
# "sensor.*_energy":
# last_reset: "1970-01-01T00:00:00+00:00"
ssdp:
default_config:
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes
# Enables configuration UI
config:
start_time:
logger:
default: warn
logs:
homeassistant.components.homekit: debug
pyhap: debug
http:
ssl_certificate: !secret ssl_certificate
ssl_key: !secret ssl_key
discovery:
history:
mobile_app:
yandex_station:
username: !secret yandex_station_username
password: !secret yandex_station_password
tts_service_name: alice_say
recognition_lang: ru-RU
yandex_smart_home:
filter:
include_entities:
- climate.dining_room
- climate.living_room
- cover.garage_door
- light.yeelight_ceilb_0x182d2cc2
- light.xiaomi_yeelink
- light.vannaia
- light.podsvetka_2
- light.prachechnaia
- light.yeelight_ceila_0x184309e8
- light.podsvetka
- light.stol
- light.koridor
- light.yeelight_ceilb_0x1787a303
- lock.vkhod
- lock.domofon
- media_player.samsung_tv_remote
- media_player.gostinaia
- sensor.dining_room_humidity
- sensor.dining_room_temperature
- vacuum.valetudo_wateryfirmswallow
logbook:
person:
proximity:
home:
devices:
- device_tracker.liliia
- device_tracker.oxoth1ks_iphone
tolerance: 50
unit_of_measurement: m
map:
sun:
lock:
- platform: template
name: Домофон
value_template: "{{ is_state('input_boolean.lock', 'off') }}"
unlock:
- service: rest_command.domru_open_door
- service: input_boolean.turn_on
data:
entity_id: input_boolean.lock
lock:
service: input_boolean.turn_off
data:
entity_id: input_boolean.lock
tts:
- platform: amazon_polly
aws_access_key_id: !secret aws_access_key_id
aws_secret_access_key: !secret aws_secret_access_key
region_name: eu-central-1
voice: Maxim
automation: !include_dir_merge_list automations
button: !include button.yaml
group: !include groups.yaml
input_boolean: !include input_boolean.yaml
input_number: !include input_number.yaml
input_select: !include input_select.yaml
input_text: !include input_text.yaml
script: !include scripts.yaml
shell_command: !include shell_commands.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
mqtt: !include mqtt.yaml
#fan:
# - platform: xiaomi_miio_airpurifier
# name: Приточка
# host: 192.168.1.164
# token: !secret xiaomi_miio_airpurifier_token
# model: dmaker.airfresh.a1
light:
#Spruthub
# - platform: mqtt
# command_topic: "SprutHub/accessories/92/11/13/set"
# state_topic: "SprutHub/accessories/92/11/13"
# brightness_command_topic: "SprutHub/accessories/92/11/14/set"
# brightness_state_topic: "SprutHub/accessories/92/11/14"
# brightness_scale: 100
# name: "Подсветка"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/97/11/13/set"
# state_topic: "SprutHub/accessories/97/11/13"
# name: "Детская"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/94/11/13/set"
# state_topic: "SprutHub/accessories/94/11/13"
# brightness_command_topic: "SprutHub/accessories/94/11/14/set"
# brightness_state_topic: "SprutHub/accessories/94/11/14"
# brightness_scale: 100
# name: "Подсветка"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/142/12/14/set"
# state_topic: "SprutHub/accessories/142/12/14"
# name: "Ванная"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/140/12/14/set"
# state_topic: "SprutHub/accessories/140/12/14"
# brightness_command_topic: "SprutHub/accessories/140/12/15/set"
# brightness_state_topic: "SprutHub/accessories/140/12/15"
# brightness_scale: 100
# name: "Коридор"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/127/11/13/set"
# state_topic: "SprutHub/accessories/127/11/13"
# brightness_command_topic: "SprutHub/accessories/127/11/14/set"
# brightness_state_topic: "SprutHub/accessories/127/11/14"
# brightness_scale: 100
# name: "Стол"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/98/11/13/set"
# state_topic: "SprutHub/accessories/98/11/13"
# name: "Прачечная"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/153/13/15/set"
# state_topic: "SprutHub/accessories/153/13/15"
# brightness_command_topic: "SprutHub/accessories/153/13/16/set"
# brightness_state_topic: "SprutHub/accessories/153/13/16"
# brightness_scale: 100
# name: "Лампа Лили"
# payload_on: "true"
# payload_off: "false"
# - platform: mqtt
# command_topic: "SprutHub/accessories/154/13/15/set"
# state_topic: "SprutHub/accessories/154/13/15"
# brightness_command_topic: "SprutHub/accessories/154/13/16/set"
# brightness_state_topic: "SprutHub/accessories/154/13/16"
# brightness_scale: 100
# name: "Лампа саши"
# payload_on: "true"
# payload_off: "false"
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
ble_monitor:
discovery: false
restore_state: true
bt_interface: "00:1A:7D:DA:71:13"
devices:
- mac: "A4:C1:38:0F:E9:97"
encryption_key: "aa01b2a3003288225383d4165fd77640"
temperature_unit: C
- mac: "A4:C1:38:22:14:A3"
temperature_unit: C
encryption_key: "f64bf367a9daf72e8b648b4fcc9b7206"
- mac: "E7:2E:00:13:50:D1"
- mac: "AC:9A:22:F2:CA:D2"
- mac: "C6:DA:34:3C:AE:CC"
- mac: "74:A3:4A:C0:17:13"
# - mac: "F8:24:41:ED:8F:55" #Спальня
# - mac: "F8:24:41:ED:08:0F" #Кухня гостиная
binary_sensor: !include binary_sensor.yaml
rest_command:
domru_open_door:
url: "http://192.168.1.247:10180/api/open/340012536816/41130761"
switch:
# - platform: mqtt
# name: "sub"
# command_topic: "SprutHub/accessories/63/11/13/set"
# state_topic: "SprutHub/accessories/63/11/13"
# payload_off: "false"
# payload_on: "true"
- platform: wake_on_lan
mac: 70:85:c2:2e:9a:4e
name: Комп Кусей
#weather:
# - platform: darksky
# api_key: !secret darksky_api_key
# mode: daily
#camera:
# - platform: xiaomi_cloud_map_extractor
# host: !secret xiaomi_vacuum_host
# token: !secret xiaomi_vacuum_token
# username: !secret xiaomi_cloud_username
# password: !secret xiaomi_cloud_password
# store_map_image: true
# store_map_path: /config/www/photo_captures/
# country: cn
# draw: ['all']
# attributes:
# - calibration_points
# map_transformation:
# scale: 3
# trim:
# top: 47
# bottom: 25
# left: 33
# right: 47
# - platform: ffmpeg
# name: Streaming
# input: "/config/www/rickroll.mp4"
# - platform: generic
# name: Домофон
# still_image_url: !secret domofon_pic
# stream_source: !secret domofon_url
# - platform: generic
# name: Парковка
# still_image_url: !secret parkovka_pic
# stream_source: !secret parkovka_url
# username: !secret parkovka_login
# password: !secret parkovka_password
# - platform: generic
# name: dacha
# still_image_url: !secret dacha_pic
# stream_source: !secret dacha_url
# username: !secret dacha_login
# password: !secret dacha_password
# - platform: generic
# name: dacha2
# still_image_url: !secret dacha2_pic
# stream_source: !secret dacha2_url
# username: !secret dacha2_login
# password: !secret dacha2_password
# - platform: generic
# name: dacha3
# still_image_url: !secret dacha3_pic
# stream_source: !secret dacha3_url
# username: !secret dacha3_login
# password: !secret dacha3_password
# - platform: generic
# name: Вход
# still_image_url: !secret vhod_pic
# stream_source: !secret vhod_url
# - platform: generic
# name: Подъезд
# still_image_url: podezd_pic
# stream_source: podezd_url
# username: !secret podezd_login
# password: !secret podezd_password
# - platform: generic
# name: Двор
# still_image_url: !secret dvor_pic
# stream_source: !secret dvor_url
# - platform: generic
# name: Парковка2
# still_image_url: !secret parkovka2_pic
# stream_source: !secret parkovka2_url
# - platform: generic
# name: Парковка3
# still_image_url: !secret parkovka3_pic
# stream_source: !secret parkovka3_url
# - platform: generic
# name: Парк
# still_image_url: !secret park_pic
# stream_source: !secret park_url
# - platform: generic
# name: 1 подъезд
# still_image_url: !secret 1podezd_pic
# stream_source: !secret 1podezd_url
# - platform: generic
# name: 2 подъезд
# still_image_url: !secret 2podezd_pic
# stream_source: !secret 2podezd_url
# vacuum:
# - platform: miio2
# host: 192.168.1.183
# token: !secret xiaomi_vacuum_token
# name: Пылесос
stream:
smartir:
update_branch: rc
climate:
- platform: smartir
name: Aeronik
device_code: 9999
controller_data: 192.168.1.215
temperature_sensor: sensor.temperature_nest_living_room
- platform: smartir
name: Ballu
device_code: 1522 #5520
controller_data: remote.universal_remote_remote
temperature_sensor: sensor.temperature_nest_bedroom
telegram_bot:
- platform: polling
api_key: !secret telegram_bot_api_key
allowed_chat_ids:
- !secret telegram_bot_chat_id
- !secret telegram_bot_group_chat_id
- !secret telegram_bot_chat_id_2
notify:
- name: telegram
platform: telegram
chat_id: !secret telegram_bot_chat_id
- name: telegram_group
platform: telegram
chat_id: !secret telegram_bot_group_chat_id
- name: ALL_DEVICES
platform: group
services:
- service: mobile_app_oxoth1ks_iphone
- service: mobile_app_liliia
recorder:
#purge_keep_days: 60
alarm_control_panel:
- platform: manual
name: Сигнализация
code: !secret alarm_code
arming_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
utility_meter:
ballu_daily_energy:
source: sensor.ballu_energy
cycle: daily
name: Ежедневное потребление кондиционера
ballu_monthly_energy:
source: sensor.ballu_energy
cycle: monthly
name: Ежемесячное потребление кондиционера
full_daily_energy:
source: sensor.full_energy
cycle: daily
name: Общее ежедневное потребление
full_monthly_energy:
source: sensor.full_energy
cycle: monthly
name: Общее ежемесячное потребление
google_assistant:
project_id: !secret google_project_id
service_account: !include service_account.json
# api_key: !secret google_key
secure_devices_pin: !secret google_secret
# report_state: true
exposed_domains:
# - sensor
# - light
# - climate
# - media_player
# - cover
- camera
# nest:
# client_id: !secret nest_client_id
# client_secret: !secret nest_client_secret
# project_id: !secret nest_project_id # ("Project ID" in the Device Access Console)
# subscriber_id: !secret nest_subscriber_id
zone:
- name: Unico
latitude: !secret unico_lat
longitude: !secret unico_long
radius: 100
icon: mdi:database
- name: Dacha
latitude: !secret dacha_lat
longitude: !secret dacha_long
radius: 100
icon: mdi:shovel
homekit:
- name: Hass.io
advertise_ip: 192.168.1.247
port: 21081
filter:
include_domains:
- climate
- alarm_control_panel
include_entities:
- cover.garage_door
- fan.pritochka
# - light.1_polka
# - light.2_polka
# - light.3_polka
# - light.obshchii
# - light.tree
- light.table
- switch.komp_kusei
- switch.plug_158d0001b195fd
- switch.sonoff_mini_relay
- humidifier.smartmi_evaporative_humidifer_2
- humidifier.uvlazhnitel
- vacuum.pylesos
exclude_entities:
- climate.aeronik
- climate.ballu
entity_config:
alarm_control_panel.signalizatsiia:
code: !secret alarm_code
# - name: Камера Домофон
# port: 21067
# mode: accessory
# filter:
# include_entities:
# - camera.domofon
# entity_config:
# camera.domofon:
# video_codec: copy
# linked_doorbell_sensor: binary_sensor.domofon_incoming_call
# support_audio: false
# - name: Камера Двор
# port: 21068
# mode: accessory
# filter:
# include_entities:
# - camera.dvor
# entity_config:
# camera.dvor:
# video_codec: copy
# support_audio: false
# - name: Камера 1 Подъезд
# port: 21069
# mode: accessory
# filter:
# include_entities:
# - camera.1_podezd
# entity_config:
# camera.1_podezd:
# video_codec: copy
# support_audio: false
# - name: Камера 2 Подъезд
# port: 21070
# mode: accessory
# filter:
# include_entities:
# - camera.2_podezd
# entity_config:
# camera.2_podezd:
# video_codec: copy
# support_audio: false
# - name: Камера Парк
# port: 21071
# mode: accessory
# filter:
# include_entities:
# - camera.park
# entity_config:
# camera.park:
# video_codec: copy
# support_audio: false
# - name: Камера Парковка
# port: 21072
# mode: accessory
# filter:
# include_entities:
# - camera.parkovka
# entity_config:
# camera.parkovka:
# video_codec: copy
# support_audio: false
# - name: Камера Парковка 2
# port: 21073
# mode: accessory
# filter:
# include_entities:
# - camera.parkovka2
# entity_config:
# camera.parkovka2:
# video_codec: copy
# support_audio: false
# - name: Камера Парковка 3
# port: 21074
# mode: accessory
# filter:
# include_entities:
# - camera.parkovka3
# entity_config:
# camera.parkovka3:
# video_codec: copy
# support_audio: false
# - name: Камера Вход
# port: 21075
# mode: accessory
# filter:
# include_entities:
# - camera.vkhod
# entity_config:
# camera.vkhod:
# video_codec: copy
# audio_codec: copy
# stream_source: !secret vhod_stream_source
# - name: Камера Подъезд
# port: 21076
# mode: accessory
# filter:
# include_entities:
# - camera.podezd
# entity_config:
# camera.podezd:
# video_codec: copy
# support_audio: false
# stream_source: !secret podezd_stream_source
# linked_motion_sensor: binary_sensor.podezd_motion
# linked_doorbell_sensor: binary_sensor.zvonok
- name: Домофон
advertise_ip: 192.168.1.247
port: 21079
mode: accessory
filter:
include_entities:
- lock.domofon
- name: Телек
advertise_ip: 192.168.1.247
port: 21080
mode: accessory
filter:
include_entities:
- media_player.samsung_tv_remote
media_player:
- platform: smartir
name: Marantz
unique_id: marantz
device_code: 9001
controller_data: 192.168.1.215
- platform: smartir
name: Mi Box S
unique_id: mibox
device_code: 1380
controller_data: remote.universal_remote_remote
webhook:
wake_on_lan:
# vacuum:
# - platform: miio2
# host: !secret xiaomi_vacuum_host
# token: !secret xiaomi_vacuum_token
# name: Пылесос
# bodymiscale:
# alex:
# sensors:
# weight: sensor.weight_alex
# impedance: sensor.impedance_alex
# height: 180
# born: "1989-11-14"
# gender: "male"
# model_miscale: "181B"
# lilypad:
# sensors:
# weight: sensor.weight_lilypad
# impedance: sensor.impedance_lilypad
# height: 156
# born: "1993-01-14"
# gender: "female"
# model_miscale: "181B"