-
Notifications
You must be signed in to change notification settings - Fork 96
/
configuration.yaml
616 lines (563 loc) · 20 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
####################################################
# #
# Default Config #
# #
####################################################
# https://www.home-assistant.io/integrations/default_config/
# Configure a default setup of Home Assistant (frontend, api, etc)
#default_config:
person:
updater:
zone:
zeroconf:
system_health:
sun:
ssdp:
map:
logbook:
config:
history:
logger:
default: info
####################################################
# #
# CUSTOMIZING #
# #
####################################################
# https://www.home-assistant.io/docs/configuration/customizing-devices/
#https://home-assistant.io/docs/configuration/basic/
homeassistant:
auth_providers:
- type: homeassistant
#- type: legacy_api_password
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- fd00::/8
name: !secret name
temperature_unit: C
time_zone: !secret timezone
latitude: !secret latitude
longitude: !secret longitude
unit_system: metric
elevation: 47
customize: !include customize.yaml
customize_glob: !include customize_glob.yaml
packages: !include_dir_named packages
whitelist_external_dirs:
- /config
####################################################
# #
# HTTP #
# #
####################################################
# https://www.home-assistant.io/integrations/http/
http:
#base_url: https://nomescelto.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
ip_ban_enabled: True
login_attempts_threshold: 5
####################################################
# #
# TTS #
# #
####################################################
# https://www.home-assistant.io/integrations/tts/
# Text to speech
tts:
- platform: google_translate
####################################################
# #
# Groups #
# #
####################################################
# https://www.home-assistant.io/integrations/mobile_app/
group: !include groups.yaml
####################################################
# #
# Automations #
# #
####################################################
# https://www.home-assistant.io/integrations/automation/
automation: !include automations.yaml
####################################################
# #
# Scripts #
# #
####################################################
# https://www.home-assistant.io/integrations/script/
script: !include scripts.yaml
####################################################
# #
# Scene #
# #
####################################################
# https://www.home-assistant.io/integrations/scene/
scene: !include scenes.yaml
####################################################
# #
# Mobile APP #
# #
####################################################
# https://www.home-assistant.io/integrations/mobile_app/
mobile_app:
####################################################
# Dev Tracker #
# #
# #
####################################################
# https://www.home-assistant.io/integrations/device_tracker/
device_tracker: !include device_tracker.yaml
####################################################
# Dev Tracker #
# Owntracks #
# #
####################################################
# https://www.home-assistant.io/integrations/owntracks/
# Disable cause enabled in Integrations
# owntracks:
# max_gps_accuracy: 200
####################################################
# #
# Camera #
# #
####################################################
# https://www.home-assistant.io/integrations/camera/
camera: !include camera.yaml
####################################################
# #
# MQTT #
# #
####################################################
# https://www.home-assistant.io/integrations/mqtt/
# Disable cause enabled from integrations
# mqtt: !include mqtt.yaml
####################################################
# #
# Frontend/Themes #
# #
####################################################
frontend:
extra_module_url:
- /hacsfiles/custom-sidebar/custom-sidebar.js
#themes: !include themes.yaml
themes: !include_dir_merge_named themes
####################################################
# #
# Input Slider and Boolean #
# #
####################################################
#input_boolean: !include_dir_merge_named input_boolean
input_select: !include_dir_merge_named input_select
input_number: !include_dir_merge_named input_number
notify: !include notify.yaml
telegram_bot:
- platform: polling
api_key: !secret telegram_apikey
#trusted_networks:
#- 149.154.167.197/32
#- 149.154.167.198/31
#- 149.154.167.200/29
#- 149.154.167.208/28
#- 149.154.167.224/29
#- 149.154.167.232/31
allowed_chat_ids:
- !secret telegram_clientid
- !secret telegram_clientid2
sensor: !include sensor.yaml
####################################################
# #
# Recorder #
# #
####################################################
recorder:
db_url: !secret dburl
purge_keep_days: 30
commit_interval: 60
exclude:
domains:
#- automation
- weblink
- updater
- sensor
- binary_sensor
- zone
- sun
- camera
- media_player
- switch
- mqtt
- calendar
- frontend
entities:
- sensor.date
- sun.sun
- weather.dark_sky
include:
entities:
- cover.shelly_shsw_25_e6704f
- switch.shelly_shsw_25_68796e_1
- switch.shelly_shsw_25_68796e_2
- switch.shelly_shsw_25_686d62_1
- switch.shelly_shsw_25_686d62_2
- switch.shelly_shsw_25_687269_1
- switch.shelly_shsw_25_687269_2
- switch.shelly_shsw_25_e5e601_1
- switch.shelly_shsw_25_e5e601_2
- switch.shelly_shplg_s_041a07
- switch.shelly_shplg_s_0409b4
- switch.air
- switch.air2
- switch.air3
- switch.nico_computer
- switch.shelly_shplg_s_7a33ff
- switch.fritz_box_guest_wifi
- switch.shelly_shplg_s_041a76
- switch.ciabatta_rack_fritz_dect_200_1
- switch.presa_rasp_pi3_fritz_dect_200_2
- switch.shelly_shplg_s_04169c
- switch.shelly_shplg_s_5b2502
- sensor.shelly_shwt_1_694834_flood
- sensor.shelly_shwt_1_694834_temperature
- sensor.potenza_istantanea
- sensor.batteria_telefono_nico
- sensor.batteria_telefono_mamma
- sensor.processor_use
- sensor.shelly_flood_battery
- device_tracker.nico_nico
- device_tracker.mamma_mamma
- sensor.living_room_humidity
- sensor.living_room_temperature
- sensor.kitchen_humidity
- sensor.kitchen_temperature
- sensor.bedroom_humidity
- sensor.bedroom_temperature
- sensor.cpu_temp
- sensor.ssl_certificate_expiry
- sensor.shelly_shem_b9ee2d_1_current_consumption
- sensor.termosifone_cucina_temperature
- sensor.termosifone_notte_temperature
- sensor.termosifone_salone_temperature
- sensor.termosifone_salone_humidity
- sensor.termosifone_notte_humidity
- sensor.termosifone_cucina_humidity
- sensor.shelly_shem_b9ee2d_1_total_consumption_attr
- input_datetime.start_night
- sensor.command_sensor
- sensor.energy_spent
- sensor.indice_thom_salone
- sensor.indice_thom_cucina
- sensor.indice_thom_camera
shelly:
discovery: true #add all devices (default)
username: !secret shellyuser
password: !secret shellypwd
sensors:
- all
attributes:
- all
cloud_auth_key: !secret shellycloudapi
cloud_server: !secret shellycloudserver
####################################################
# #
# ALEXA #
# #
####################################################
# alexa_media:
# accounts:
# - email: !secret amazonemail
# password: !secret amazonpwd
# #url: !secret amazonurl
# url: !secret amazonurl_it
# scan_interval: 30
#debug: true
#exclude_devices:
#- "This Device"
#- "nicolo's Alexa Apps"
#- "nicolo's bose home speaker 500"
#- "echo dot di nicolo"
#- "salotto"
####################################################
# #
# Lovelace/CustomUpdater #
# #
####################################################
#https://www.home-assistant.io/lovelace/yaml-mode/
lovelace:
mode: yaml
resources:
- url: /local/monster-card.js
type: js
- url: /local/custom-lovelace/weather-card/weather-card.js
type: module
- url: /local/plugins/card-tools.js
type: js
- url: /hacsfiles/plan-coordinates/plan-coordinates.js
type: js
- url: /hacsfiles/atomic_calendar/atomic_calendar.js
type: module
- url: /hacsfiles/atomic-calendar-revive/atomic-calendar-revive.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
type: module
- url: /hacsfiles/fitbit-card/fitbit-card.js
type: js
- url: /hacsfiles/secondaryinfo-entity-row/secondaryinfo-entity-row.js
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/lovelace-fold-entity-row/fold-entity-row.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/unused-card/unused-card.js
type: module
- url: /hacsfiles/shutter-cover-panel-card/shutter-cover-panel-card.js
type: module
- url: /hacsfiles/LG-WebOS-Remote-Control/lg-remote-control.js
type: module
- url: /hacsfiles/LG-Keypad/card-numeric-pad.js
type: module
- url: /hacsfiles/canvas-gauge-card/canvas-gauge-card.js
type: module
- url: /hacsfiles/custom-header/custom-header.js
type: module
- url: /hacsfiles/logbook-card/logbook-card.js
type: module
- url: /hacsfiles/username-element/username-element.js
type: module
- url: /hacsfiles/weather-card/weather-card.js
type: module
- url: /hacsfiles/custom-sidebar/custom-sidebar.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
switch: !include switch.yaml
binary_sensor: !include binary_sensors.yaml
####################################################
# #
# SPEEDTEST #
# #
####################################################
#https://www.home-assistant.io/components/speedtestdotnet/
speedtestdotnet:
server_id: 3243 # server "Telecom Italia S.p.A." Rome
scan_interval:
hours: 4
monitored_conditions:
- ping
- download
- upload
####################################################
# #
# Weather #
# #
####################################################
#https://www.home-assistant.io/components/weather.darksky/
weather:
- platform: darksky
api_key: !secret darksky
mode: daily
####################################################
# #
# Media player #
# #
####################################################
# https://www.home-assistant.io/integrations/media_player/
# https://www.home-assistant.io/integrations/universal/
# https://www.home-assistant.io/integrations/androidtv/
media_player: !include media_player.yaml
####################################################
# #
# Shell Commands #
# #
####################################################
# https://www.home-assistant.io/integrations/shell_command/
shell_command: !include shell_commands.yaml
####################################################
# Alexa #
# Smart Home Speakers #
# Powered by Haaska Skill #
####################################################
#### API ALEXA ###
api:
alexa:
smart_home:
####################################################
# Alexa #
# Smart Home Speakers #
# Powered by Haaska Skill #
####################################################
### URL https://github.com/mike-grant/haaska/wiki
alexa:
smart_home:
# endpoint: https://api.eu.amazonalexa.com/v3/events
# client_id: !secret alexa_client_id
# client_secret: !secret alexa_client_secret
filter:
include_entities:
#- group.all_lights
#- group.all
#- light.kitchen_white
#- light.living_door_rgb
#- light.living_sofa_rgb
#- light.living_window_white
#- light.room_nico_rgb
- switch.air
- switch.air2
- switch.air3
- switch.dsm01
#- switch.fritz_dect_200_1
#- switch.fritz_dect_200_2
- switch.nico_computer
#- sensor.miflora_1_temperature
#- media_player.sony_bravia_tv
#- sensor.bathroom_temperature
#- sensor.bedroom_temperature
#- sensor.living_room_temperature
- media_player.tv_casetta
#- cover.shelly_shsw_25_e6704f
include_domains:
#- switch
#- light
#- script
#- alarm_control_panel
#- climate
- media_player
exclude_entities:
#- switch.foscam_state
#- switch.foscam_motion
- media_player.nicolo_s_alexa_apps
- media_player.nicolo_s_bose_home_speaker_500
- media_player.this_device
- media_player.echo_dot_di_nicolo
- media_player.this_device_2
- media_player.salotto
- media_player.kd_55xf9005
- switch.fluxer
- climate.living_room
- climate.bathroom
- climate.living_room
- sensor.bathroom_temperature
- sensor.bedroom_temperature
- sensor.living_room_temperature
exclude_domains:
- automation
- automation
- group
- lock
- cover
- alert
- switch
- script
- light
- climate
#- media_player
entity_config:
#light.kitchen_white:
#name: Luce Cucina
#description: La Luce in Cucina
#display_categories: LIGHT
#light.living_door_rgb:
#name: Luce Salone
#description: la luce del Salone
#display_categories: LIGHT
#light.living_sofa_rgb:
#name: Luce Divano
#description: la Luce del divano
#display_categories: LIGHT
#light.living_window_white:
#name: Luce Finestra Salone
#description: la luce vicino la Finestra del salone
#display_categories: LIGHT
#light.room_nico_rgb:
#name: Luce Camera Nico
#description: La Luce della stanza di Nico
#display_categories: LIGHT
switch.nico_computer:
name: il PC
description: Computer
display_categories: SWITCH
switch.dsm01:
name: Synology
description: Il Nas
display_categories: SWITCH
#group.all_lights:
#name: Tutte le luci
#description: Tutte le luci
#group.all:
#name: Tutto
#description: Tutto
#display_categories: SWITCH
media_player.tv_casetta:
name: la TV
description: il televisore
#display_categories: SWITCH
#media_player.sony_bravia_tv:
#name: TV Mamma
#description: La televisione di Mamma
#display_categories: SWITCH
switch.air:
name: Aria Fredda
description: l'aria fredda
display_categories: SWITCH
switch.air2:
name: Deumidificatore
description: il deumidificatore
display_categories: SWITCH
switch.air3:
name: Aria calda
description: l'aria calda
display_categories: SWITCH
# switch.presa_pc_fritz_dect_200_1:
# name: Ciabatta Rack
# description: La Ciabatta Rack
# display_categories: SWITCH
# switch.presa_rasp_pi3_fritz_dect_200_2:
# name: Presa Raspberry
# description: La presa del raspberry
# display_categories: SWITCH
#cover.shelly_shsw_25_e6704f:
#name: Serranda Salone
#description: la serranda del salone
#display_categories: SWITCH
####################################################
# #
# Wake on LAN #
# #
####################################################
# https://www.home-assistant.io/integrations/wake_on_lan/
wake_on_lan:
####################################################
# #
# Google #
# Calendar #
####################################################
# https://www.home-assistant.io/integrations/calendar.google/
google:
client_id: !secret google_clientid
client_secret: !secret google_secret
####################################################
# #
# Alarm #
# Panel #
####################################################
# https://www.home-assistant.io/integrations/manual/
alarm_control_panel:
- platform: manual
name: Home Alarm
code: '1234'
arming_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0