forked from CiquattroFPV/Homeassistant-Example-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
501 lines (447 loc) · 13.9 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
###################################################
# #
# Home Assistant Main Configuration File #
# #
###################################################
homeassistant:
auth_providers:
- type: homeassistant
- type: legacy_api_password
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
# Show links to resources in log and frontend
#introduction:
####################################################
# #
# Frontend/Themes #
# #
####################################################
frontend:
themes: !include_dir_merge_named themes
####################################################
# #
# Lovelace/CustomUpdater #
# #
####################################################
lovelace:
mode: yaml
wake_on_lan:
google:
client_id: !secret google_clientid
client_secret: !secret google_secret
# Enables configuration UI
config:
http:
api_password: !secret http_password
cors_allowed_origins:
- http://10.10.20.216:7080
- https://reformedreality.com
- http://reformedreality.com
- https://google.com
- https://home-assistant.io
- https://api.ai
ip_ban_enabled: True
login_attempts_threshold: 5
base_url: !secret base_url
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
#base_url:
#ssl_certificate: /ssl/fullchain.pem
#ssl_key: /ssl/privkey.pem
websocket_api:
system_health:
owntracks:
max_gps_accuracy: 200
#mqtt_topic: "owntracks/#"
shopping_list:
stream:
ffmpeg:
####################################################
# #
# Alarm #
# #
####################################################
alarm_control_panel:
- platform: manual
name: Home Alarm
code: 1234567890
pending_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
pending_time: 0
delay_time: 0
####################################################
# #
# Geolocation #
# #
####################################################
zone: !include zones.yaml
mqtt: !include mqtt.yaml
############### Earth Quake ######################
geo_location:
- platform: usgs_earthquakes_feed
#feed_type: 'past_day_all_earthquakes'
feed_type: 'past_hour_significant_earthquakes'
radius: 100
minimum_magnitude: 0.0
latitude: !secret latitude2
longitude: !secret longitude2
####################################################
# 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:
- 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
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:
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
media_player.sony_bravia_tv:
name: TV Mamma
description: La televisione di Mamma
display_categories: SWITCH
switch.air:
name: Aria Calda
description: l'aria calda
display_categories: SWITCH
switch.air2:
name: Aria Fredda
description: l'aria fredda
display_categories: SWITCH
switch.air3:
name: Deumidificatore
description: il deumidificatore
display_categories: SWITCH
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
include_used_components: true
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
hassio:
shelly:
discovery: true #add all devices (default)
username: !secret shellyuser
password: !secret shellypwd
additional_information: true
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
map:
# Track the sun
sun:
# Text to speech
tts:
- platform: google_translate
service_name: google_say
cache: true
cache_dir: /tmp/tts
time_memory: 300
language: 'it'
base_url: https://yourdynamicdns:8123
speedtestdotnet:
server_id: 123
scan_interval:
hours: 4
monitored_conditions:
- ping
- download
- upload
# Cloud
cloud:
light: !include light.yaml
camera: !include camera.yaml
weblink: !include weblink.yaml
group: !include groups.yaml
automation: !include automations.yaml
#automation old: !include_dir_merge_list automation
script: !include scripts.yaml
shell_command: !include shell_commands.yaml
device_tracker: !include device_tracker.yaml
sensor: !include sensor.yaml
cover: !include cover.yaml
media_player: !include media_player.yaml
switch: !include switch.yaml
notify: !include notify.yaml
binary_sensor: !include binary_sensors.yaml
alexa_media:
accounts:
- email: !secret amazonemail
password: !secret amazonpwd
#url: !secret amazonurl
url: !secret amazonurl_it
scan_interval: 30
telegram_bot:
platform: polling
api_key: !secret telegram_apikey
allowed_chat_ids:
- !secret telegram_clientid
- !secret telegram_clientid2
####################################################
# #
# Recorder #
# #
####################################################
recorder:
db_url: !secret dburl
purge_keep_days: 7
purge_interval: 1
exclude:
domains:
- automation
- weblink
- updater
- sensor
- switch
- mqtt
entities:
- sensor.date
- sun.sun
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.living_room_heating
- sensor.living_room_humidity
- sensor.living_room_power
- sensor.living_room_temperature
- sensor.mamma_battery
- sensor.nico_battery
- sensor.processor_use
- sensor.shelly_flood_battery
####################################################
# #
# History #
# #
####################################################
# Enables support for tracking state changes over time
history:
#exclude:
#domains:
#- automation
#- weblink
#- updater
#entities:
#- sensor.date
#include:
#domains:
#- sensor
#- switch
#- media_player
#- light
####################################################
# #
# LogBook #
# #
####################################################
# View all events in a logbook
logbook:
logger:
default: warn
####################################################
# #
# Database #
# #
####################################################
influxdb:
host: 1.1.1.1
port: 8086
database: home_assistant
username: !secret influxdb_user
password: !secret influxdb_pwd
#max_retries: 3
#default_measurement: state
###################################################
# #
# IFTTT #
# #
###################################################
ifttt:
key: !secret ifttt_key
###################################################
# #
# Smart Home #
# #
###################################################
tado:
username: !secret tado_user
password: !secret tado_pwd
fritzbox:
devices:
- host: fritz.box
username: !secret fritz_user
password: !secret fritz_pwd
fritzbox_tools:
host: 1.1.1.1
username: !secret fritz_user
password: !secret fritz_pwd
####################################################
# #
# 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
####################################################
# #
# Panel Iframe #
# #
####################################################
####################################################
# #
# Panel Custom #
# #
####################################################
####################################################
# #
# Restfull commands #
# #
####################################################
rest_command:
google_backup:
url: 'http://x.x.x.x:8055/gb/doBackup'
timeout: '300'
ss_cookie:
url: !secret ss_cookie
method: get
verify_ssl: false
ss_preset_home:
url: !secret ss_preset_home
method: get
verify_ssl: false
ss_preset_living:
url: !secret ss_preset_living
method: get
verify_ssl: false
ss_preset_bedroom:
url: !secret ss_preset_bedroom
method: get
verify_ssl: false
ss_preset_rack:
url: !secret ss_preset_rack
method: get
verify_ssl: false
ss_home_on:
url: !secret ss_home_on
method: get
verify_ssl: false
ss_home_off:
url: !secret ss_home_off
method: get
verify_ssl: false
####################################################
# #
# Weather #
# #
####################################################
weather:
# - platform: openweathermap
# api_key: !secret openweathermap
- platform: darksky
api_key: !secret darksky
mode: daily