-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·576 lines (521 loc) · 16.1 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
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret latitude
longitude: !secret longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: !secret elevation
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Helsinki
customize: !include customize.yaml
# whitelist_external_dirs:
# - '/tmp'
# - '/images'
# - '/config/vacuum'
# - '/videos'
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
javascript_version: latest
themes: !include_dir_merge_named themes
extra_html_url:
- /local/custom_ui/state-card-floorplan.html
- /local/luca_gps.html
- /local/tiia_gps.html
lovelace:
mode: yaml
system_health:
mobile_app:
hacs:
token: !secret hacs_token
python_script: true
theme: true
# custom_updater:
# card_urls:
# - https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
# - https://raw.githubusercontent.com/rdehuyss/homeassistant-lovelace-google-calendar-card/master/custom_updater.json
# component_urls:
# - https://raw.githubusercontent.com/keatontaylor/custom_components/master/custom_components.json
# panel_custom: !include panel_custom.yaml
panel_iframe:
luca:
title: 'Luca GPS'
url: '/local/luca_gps.html'
icon: mdi:human-male
tiia:
title: 'Tiia GPS'
url: '/local/tiia_gps.html'
icon: mdi:human-female
networkmap:
title: 'Zigbee Map'
url: '/local/community/zigbee2mqtt_networkmap/map.html'
icon: 'mdi:graphql'
# Enables configuration UI
config:
http:
# Uncomment this to add a password (recommended!)
# ssl_certificate: /certs/fullchain.pem
# ssl_key: /certs/privkey.pem
#ssl_certificate: !secret ssl_certificate
#ssl_key: !secret ssl_key
# base_url: !secret base_url
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# 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/
websocket_api:
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
alexa:
cloud:
alexa:
filter:
include_entities:
- input_boolean.follow_music
- input_boolean.schedule_cleaning
- input_boolean.schedule_kitchen_cleaning
- input_boolean.cleaning_doublepass
- input_boolean.auto_lights
- light.paperlight
- light.yellow_light
- light.big_light
- light.kitchen
- light.office
- light.hallway_upstairs
- light.hallway_downstairs
- light.ball
- light.color
- light.living_room
- light.desk
- light.kids_room
- light.bedroom
- light.shelf
- light.christmas_tree
- scene.bedtime
- scene.movie_mode_arctic
- scene.relax
- scene.reading
- scene.razer
- fan.xiaomi_miio_device
- switch.start_vacuum
- switch.clean_dining_area
- switch.clean_kitchen
- switch.clean_livingroom
- switch.playstation
- script.vacuum_clean_dining_area
- script.vacuum_clean_kitchen
- script.vacuum_clean_livingroom
- switch.audiobook
- switch.air_conditioner
- script.zootopia
- script.good_doctor
- script.criminal_minds
- script.greys_anatomy
- media_player.lg_webos_smart_tv
- media_player.living_room_tv
- media_player.bedroom_tv
- media_player.speaker
entity_config:
switch.clean_kitchen:
name: Vacuuming the Kitchen
description: Vacuum the kitchen
switch.clean_dining_area:
name: Vacuuming the dining area
description: Vacuum the dining area
switch.clean_livingroom:
name: Vacuuming the living room
description: Vacuum the living room
fan.xiaomi_miio_device:
name: Air purifier
description: Xiaomi air purifier
script.zootopia:
name: Zootopia
display_categories: switch
script.good_doctor:
name: Good Doctor
display_categories: switch
script.criminal_minds:
name: Criminal Minds
display_categories: switch
script.greys_anatomy:
name: Grey's Anatomy
display_categories: switch
input_boolean.auto_lights:
name: Automatic Lights
display_categories: switch
google:
client_id: !secret google_cal_id
client_secret: !secret google_cal_secret
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
exclude:
entities:
- group.all_motion_sensors
- sensor.motion_livingroom
- sensor.motion_kitchen
- group.sensor_kitchen
- group.sensor_livingroom
- group.sensor_pi
- group.sensor_view
- sensor.fortnite_stats_hotky
- sensor.fortnite_stats_teacakess
domains:
- group
influxdb:
host: !secret influxdb_ip
port: 8086
# uncomment if you used a password
# username: admin
# password: !secret influxdb_password
database: homeassistant
default_measurement: state
exclude:
domains:
- shell_command
- image_processing
- calendar
- camera
- device_tracker
- script
entities:
- binary_sensor.floorplan
- media_player.black_sonos_one
- media_player.white_sonos_one
- media_player.beam
- media_player.echo
- sensor.vacuum_map_walle
- sensor.vacuum_map_mo
- sensor.0x00158d00023d8cd6_linkquality
- sensor.0x00158d00036b7c46_linkquality
- sensor.0x00158d0003f3f064_linkquality
- sensor.0x00158d0004144a1b_linkquality
- sensor.circadian_values
- sensor.date
- sensor.date_time
- sensor.date_time_iso
- sensor.fortnite_stats_hotky
- sensor.fortnite_stats_teacakess
include:
entities:
- device_tracker.sevenplus_router
- device_tracker.luca_iphone
- device_tracker.jeresiphone
- device_tracker.jeres_iphone
- device_tracker.tiiasiphone
- device_tracker.tiias_iphone
ifttt:
key: !secret ifttt_key
device_tracker:
#- platform: nmap_tracker
# hosts: !secret hosts
# exclude:
# - !secret raspberry_pi_ip
# track_new_devices: no
# consider_home: 800
# interval_seconds: 10
# home_interval: 120
#- platform: bluetooth_tracker
# interval_seconds: 10
# consider_home: 300
# track_new_devices: no
- platform: mqtt
devices:
sevenplusbt: 'bluetooth_pi/presence/sevenplus'
tiiaphone: 'bluetooth_pi/presence/tiiaphone'
jerephone: 'bluetooth_pi/presence/jerephone'
# - platform: unifi_direct
# host: !secret downstairs_ap_IP
# username: !secret unifi_user
# password: !secret unifi_pw
# track_new_devices: no
# - platform: unifi_direct
# host: !secret upstairs_ap_IP
# username: !secret unifi_user
# password: !secret unifi_pw
# track_new_devices: no
# - platform: unifi
# host: !secret unifi_controller_ip
# username: !secret unifi_user
# password: !secret unifi_controller_pw
# verify_ssl: false
# track_new_devices: false
# detection_time: 300
# monitored_conditions:
# - rssi
# - signal
# - ap_mac
# - name
# - mac
# - ip
# - _last_seen_by_uap
# - platform: icloud
# username: !secret icloud_user
# password: !secret icloud_pw
light:
- platform: group
name: Livingroom Lights
entities:
- light.paperlight
- light.desk
- light.big_light
# - platform: group
# name: Paperlight
# entities:
# - light.paperlight_1
# - light.paperlight_2
# - light.paperlight_3
- platform: group
name: Bedroom
entities:
- light.bedroom_1
- light.bedroom_2
- light.bedroom_3
- platform: group
name: Kids Room
entities:
- light.kids_room_1
- light.kids_room_2
- light.kids_room_3
# - platform: group
# name: Hallway Downstairs
# entities:room_q
# - light.hallway_1
# - light.hallway_2
# - light.hallway_3
- platform: mqtt
name: Dashboard Kitchen
command_topic: "dashboard/rpi1/set"
state_topic: "dashboard/rpi1/status"
brightness_state_topic: 'dashboard/rpi1/brightness'
brightness_command_topic: 'dashboard/rpi1/brightness/set'
qos: 0
payload_on: "ON"
payload_off: "OFF"
optimistic: false
- platform: mqtt
name: Hallway Downstairs
schema: json
command_topic: "zigbee2mqtt/hallway_downstairs/set"
state_topic: "zigbee2mqtt/hallway_downstairs"
optimistic: false
brightness: true
- platform: mqtt
name: Paperlight
schema: json
command_topic: "zigbee2mqtt/paperlight/set"
state_topic: "zigbee2mqtt/paperlight"
optimistic: false
brightness: true
color_temp: true
- platform: mqtt
name: Entrance
schema: json
command_topic: "zigbee2mqtt/entrance/set"
state_topic: "zigbee2mqtt/entrance"
availability_topic: "zigbee2mqtt/bridge/state"
optimistic: false
brightness: true
color_temp: true
xy: true
- platform: hue
host: !secret hue_bridge
allow_hue_groups: false
- platform: switch
name: Christmas Tree
entity_id: switch.christmas_tree
- platform: switch
name: Shelf
entity_id: switch.air_conditioner
circadian_lighting:
transition: 30
interval: 1800
# ring:
# username: !secret ring_user
# password: !secret ring_pw
logi_circle:
client_id: !secret logi_client_id
client_secret: !secret logi_client_secret
api_key: !secret logi_api_key
redirect_uri: !secret logi_redirect_uri
tplink:
# Track the sun
sun:
logger:
default: critical
logs:
homeassistant.components: info
homeassistant.components.http.ban: warning
octoprint:
host: !secret octoprint_ip
api_key: !secret octoprint_key
bed: true
number_of_tools: 1
# Text to speech
tts:
- platform: google_translate
service_name: google_say
language: 'en-us'
# Additional components
#light:
#- platform: hue
# host: !secret hue_bridge
# Sensors
hue:
bridges:
- host: !secret hue_bridge
fan:
- platform: xiaomi_miio
host: !secret air_purifier_ip
token: !secret air_purifier_token
name: Xiaomi Air Purifier
tradfri:
host: !secret tradfri_ip
# climate:
# - platform: netatmo
# netatmo:
# api_key: !secret netatmo_api_key
# secret_key: !secret netatmo_secret_key
# username: !secret netatmo_user
# password: !secret netatmo_pw
map:
media_player:
# - platform: plex
# include_non_clients: true
# scan_interval: 5
# show_all_controls: true
# - platform: gstreamer
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: ps4
host: !secret ps4waker_ip
# ps4_ip: !secret ps4_ip
name: PlayStation 4
games_filename: '/config/ps4/ps4-games.json'
# imagemap_json: '/config/ps4/games.json'
local_store: ''
alexa_media:
accounts:
- email: !secret alexa_email
password: !secret alexa_password
url: 'amazon.com'
wake_on_lan:
webostv:
host: !secret lgtv_ip
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: 78:5D:C8:62:65:D1
weather:
- platform: darksky
api_key: !secret darksky_api_key
mode: daily
webhook:
media_extractor:
default_query: best
python_script:
ios:
push:
categories:
- name: Laundry
identifier: 'laundry'
actions:
- identifier: 'STOP_WASHING_MACHINE'
title: 'Turn off'
activationMode: 'background'
destructive: yes
behavior: 'default'
# browser_mod:
#snips:
mqtt:
broker: 192.168.92.20
username: !secret mqtt_user
password: !secret mqtt_passwd
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
stream:
zigbee2mqtt_networkmap:
homekit: !include homekit.yaml
shell_command:
rename_snapshots_dafang: 'bash /config/bash_scripts/renameSnapshotsDafang.sh'
dafang_motion_on: !secret dafang_motion_on
dafang_motion_off: !secret dafang_motion_off
rename_snapshots_xiaofang1: 'bash /config/bash_scripts/renameSnapshotsXiaofang1.sh'
xiaofang1_motion_on: !secret xiaofang1_motion_on
xiaofang1_motion_off: !secret xiaofang1_motion_off
reboot_xiaofang1: !secret reboot_xiaofang1
rename_snapshots_xiaofang2: 'bash /config/bash_scripts/renameSnapshotsXiaofang2.sh'
xiaofang2_motion_on: !secret xiaofang2_motion_on
xiaofang2_motion_off: !secret xiaofang2_motion_off
reboot_xiaofang2: !secret reboot_xiaofang2
rename_snapshots_raspberry: 'bash /config/bash_scripts/renameSnapshotsRaspberry.sh'
rename_car: 'bash /config/bash_scripts/renameCar.sh'
rename_person: 'bash /config/bash_scripts/renamePerson.sh'
rename_snapshots_backyard: 'bash /config/bash_scripts/renameSnapshotsBackyard.sh'
export_csv: 'python /config/export_to_csv.py -r {{rssi}} -s {{signal}} -a {{ap}} -l {{location}}'
export_csv_luca: "python /config/export_to_csv.py -r {{states.device_tracker.sevenplus_router.attributes.rssi}} -s {{states.device_tracker.sevenplus_router.attributes.signal}} -a {% if is_state('binary_sensor.luca_downstairs_wifi','on') %}1{% else %}0{% endif %} -d {% if is_state('input_boolean.luca_downstairs','on') %}1{% else %}0{% endif %}"
export_csv_tiia: "python /config/export_to_csv.py -r {{states.device_tracker.tiiasiphone.attributes.rssi}} -s {{states.device_tracker.tiiasiphone.attributes.signal}} -a {% if is_state('binary_sensor.tiia_downstairs_wifi','on') %}1{% else %}0{% endif %} -d {% if is_state('input_boolean.tiia_downstairs','on') %}1{% else %}0{% endif %}"
export_gps_luca: "python /config/export/export_gps.py -t {{states.device_tracker.luca_iphone.attributes.latitude}} -o {{states.device_tracker.luca_iphone.attributes.longitude}} -d '{{states.device_tracker.sevenplusha.attributes.timestamp}}' -p luca"
export_gps_tiia: "python /config/export/export_gps.py -t {{states.device_tracker.tiias_iphone.attributes.latitude}} -o {{states.device_tracker.tiias_iphone.attributes.longitude}} -d '{{states.device_tracker.tiias_iphone.attributes.timestamp}}' -p tiia"
plot_luca: "python /config/export/plot.py -p luca"
plot_tiia: "python /config/export/plot.py -p tiia"
build_map: 'bash /config/bash_scripts/vacuum_maps.sh'
rename_vacuum_maps: 'bash /config/bash_scripts/renameVacuumMaps.sh'
rename_vacuum_maps_walle: 'bash /config/bash_scripts/renameVacuumMapsWalle.sh'
rename_vacuum_maps_mo: 'bash /config/bash_scripts/renameVacuumMapsMo.sh'
record_clip: 'bash /config/bash_scripts/recordClip.sh'
upload_clip: 'bash /config/bash_scripts/uploadClip.sh'
# install_gmplot: 'pip install gmplot'
# install_gpxpy: 'pip install gpxpy'
# install_tensorflow: 'pip3 install tensorflow==1.11.0'
recorder:
purge_keep_days: 5
db_url: !secret mysql_db_url
exclude:
domains:
- shell_command
- image_processing
entities:
- media_player.black_sonos_one
- media_player.white_sonos_one
- media_player.beam
- media_player.echo
- sensor.vacuum_map_walle
- sensor.vacuum_map_mo
- sensor.next_launch
sensor: !include_dir_list sensors
camera: !include cameras.yaml
rest_command: !include rest_commands.yaml
binary_sensor: !include binary_sensors.yaml
group: !include groups.yaml
automation: !include_dir_list automations
zone: !include zones.yaml
scene: !include_dir_list scenes
script: !include_dir_merge_named scripts
intent_script: !include_dir_merge_named intent_scripts
notify: !include notify.yaml
switch: !include switches.yaml
input_boolean: !include input_boolean.yaml
input_select: !include input_select.yaml
input_number: !include input_number.yaml
input_datetime: !include input_datetime.yaml
image_processing: !include image_processing.yaml
timer: !include timer.yaml