-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.yaml
588 lines (502 loc) · 12.5 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
# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2:
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 home_latitude
longitude: !secret home_longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 7
# 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: America/Halifax
customize: !include customize.yaml
default_config:
# {{{ Alexa
alexa:
smart_home:
endpoint: https://api.amazonalexa.com/v3/events
client_id: !secret alexa_client_id
client_secret: !secret alexa_client_secret
filter:
include_domains:
- light
- scene
include_entities:
- media_player.bedroomtv
- media_player.roku_living_roomtv
- switch.switch1
- switch.switch6
- switch.switch7
# }}}
# {{{ switches
switch:
# Make script into a toggle switch
- platform: template
switches:
kitchen_fireplace:
friendly_name: Kitchen Fireplace Switch
unique_id: kitchen_fireplace_switch
turn_on:
service: script.turn_on
target:
entity_id: script.kitchen_fireplace_lights_on
turn_off:
service: script.turn_on
target:
entity_id: script.kitchen_fireplace_lights_on
# }}}
# {{{ frontend
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes/
http:
#ssl_certificate: !secret http_ssl_certificate
#ssl_key: !secret http_ssl_key
use_x_forwarded_for: true
trusted_proxies:
- 192.168.2.80
# }}}
# {{{ Homekit
homekit:
filter:
include_domains:
- climate
- light
- scene
include_entities:
- lock.yv4162uk5l2256988_door_lock
- media_player.bedroomtv
- media_player.roku_living_roomtv
- media_player.sonos
include_entity_globs:
- binary_sensor.*_occupancy
- sensor.*_humidity
- sensor.*_temperature
exclude_entity_globs:
- camera.*_sd_*
- sensor.fredericton_*
exclude_entities:
- camera.doorbell_high
- sensor.garage_temperature
# }}}
## {{{ Rest Commands
rest_command:
sabnzb_api:
url: !secret sabnzbd_rest_url
# }}}
# {{{ InfluxDB
influxdb:
api_version: 2
host: blackbird.dem
port: 8086
ssl: false
verify_ssl: false
token: !secret influxdb_token
organization: 04c1799f5fa78557
bucket: homeassistant
tags:
source: ha
tags_attributes:
- friendly_name
max_retries: 3
default_measurement: units
include:
domains:
- binary_sensor
- sensor
exclude:
entities:
- sensor.displays
- sensor.frontmost_app
- sensor.python_package_index_pypi
- sensor.last_update_trigger
- sensor.season
entity_globs:
- binary_sensor.*_detections_motion
- binary_sensor.*_detections_motion
- binary_sensor.*_hdr_mode
- binary_sensor.*_is_dark
- binary_sensor.*_motion
- binary_sensor.*_overlay_show_bitrate
- binary_sensor.*_overlay_show_date
- binary_sensor.*_overlay_show_logo
- binary_sensor.*_overlay_show_name
- binary_sensor.*_status_light_on
- sensor.*_infrared_mode
- sensor.*_recording_mode
- sensor.*_energy_factor
- sensor.*_energy_totalstarttime
- sensor.*_last_restart_time
- sensor.*_mqtt_connect_count
- sensor.*_restart_reason
- sensor.*_ssid
- sensor.*_wifi_connect_count
- sensor.*_steps
- sensor.*_last_restart_time_2
- sensor.*_mqtt_connect_count_2
- sensor.*_restart_reason_2
- sensor.*_ssid_2
- sensor.*_wifi_connect_count_2
- sensor.active_*
- sensor.primary_display_*
- sensor.sun_*
# }}}
# {{{ Lights
light:
# Make Dining Room switches act like a lights
- platform: switch
name: Dining room lamp
entity_id: switch.switch6
- platform: switch
name: Dining room shelves
entity_id: switch.switch7
# Make Entryway switch act like a light
- platform: switch
name: Entryway
entity_id: switch.entryway
# Make Garage switches act like lights
- platform: switch
name: Garage Lamp
entity_id: switch.switch8
# Make Kitchen switches act like lights
- platform: switch
name: Kitchen Fireplace Light
entity_id: switch.kitchen_fireplace
# Make Livingroom switches act like a lights
- platform: switch
name: Saltlick
entity_id: switch.switch5
# Make Loft switches act like lights
- platform: switch
name: Loft Tree0
entity_id: switch.switch2
- platform: switch
name: Loft Tree1
entity_id: switch.switch3
# Make Porch switch act like a light
- platform: switch
name: Porch Lights
entity_id: switch.porch
# Light Groups
- platform: group
name: Barn lights
entities:
- light.barn0
- platform: group
name: Basement lights
entities:
- light.basement0
- light.basement1
- light.basement2
- platform: group
name: Bathroom lights
entities:
- light.bathroom_sink
- platform: group
name: Bathroom sink
entities:
- light.sink0
- light.sink2
- platform: group
name: Bedroom ceiling upper
entities:
- light.bedroom0
- light.bedroom1
- light.bedroom7
- platform: group
name: Bedroom ceiling lower
entities:
- light.bedroom4
- light.bedroom5
- light.bedroom6
- platform: group
name: Bedroom ceiling
entities:
- light.bedroom_ceiling_upper
- light.bedroom_ceiling_lower
- platform: group
name: Bedroom lamps
entities:
- light.bedroom2
- light.bedroom3
- platform: group
name: Bedroom lights
entities:
- light.bedroom_ceiling
- light.bedroom_lamps
- platform: group
name: Dining room lights
entities:
- light.dining_room_lamp
- light.dining_room_shelves
- light.dining_room_table
- platform: group
name: Garage lights
entities:
- light.garage_lamp
- platform: group
name: Foyer Lights
entities:
- light.foyer0
- light.foyer1
- light.foyer2
- light.foyer3
- light.foyer4
- platform: group
name: Hallway lights
entities:
- light.entryway
- light.foyer_lights
- platform: group
name: Kitchen lights
entities:
- light.kitchen_counter
- light.kitchen_island
- light.kitchen_pantry
- light.kitchen_pots
- platform: group
name: Livingroom lamps
entities:
- light.lamp0
- light.lamp1
- light.lamp2
- light.tiffany
- platform: group
name: Livingroom lights
entities:
- light.livingroom_lamps
- light.living_room_main
- light.saltlick
- platform: group
name: Loft trees
entities:
- light.loft_tree0
- light.loft_tree1
- platform: group
name: Main floor lights
entities:
- light.barn_lights
- light.dining_room_lights
- light.entryway
- light.foyer_lights
- light.kitchen_lights
- light.livingroom_lights
- light.office_lights
- light.pantry_lights
- light.powder_room
- platform: group
name: Office Lights
entities:
- light.office_lamp
- platform: group
name: Outdoor lights
entities:
- light.front_door
- light.back_door
- platform: group
name: Pantry lights
entities:
- light.kitchen_counter
- light.kitchen_pantry
- platform: group
name: Second floor lights
entities:
- light.bathroom_lights
- light.bedroom_lights
- light.spare_room_lights
- platform: group
name: Spare room ceiling upper
entities:
- light.spare_ceiling_up0
- light.spare_ceiling_up1
- light.spare_ceiling_up2
- platform: group
name: Spare room ceiling lower
entities:
- light.spare_ceiling0
- light.spare_ceiling1
- light.spare_ceiling2
- platform: group
name: Spare room ceiling
entities:
- light.spare_room_ceiling_upper
- light.spare_room_ceiling_lower
- platform: group
name: Spare room lights
entities:
- light.spare0
- light.spare1
- light.spare_room_ceiling
- platform: group
name: Third floor lights
entities:
- light.loft_trees
# }}}
# {{{ Media Players
media_player:
# }}}
# {{{ Misc
# Enable frontend configuration
config:
# Set logging level
logger:
default: error
logs:
homeassistant.components.camera: fatal
homeassistant.components.media_player.roku: fatal
homeassistant.components.http.ban: warning
homeassistant.components.wemo: fatal
# Lutron Caseta
#lutron_caseta:
# host: 192.168.2.121
# keyfile: '/etc/homeassistant/lutron/caseta.key'
# certfile: '/etc/homeassistant/lutron/caseta.crt'
# ca_certs: '/etc/homeassistant/lutron/caseta-bridge.crt'
# Enables support for tracking state changes over time.
history:
# Setup recorder and logbook
recorder:
db_url: !secret db_url
logbook:
exclude:
domains:
- device_tracker
- sun
# Track the sun
sun:
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
# Enable Mobile App component
mobile_app:
system_health:
# }}}
# {{{ mqtt
timer:
zigbee_permit_join:
name: Time remaining
duration: 120
# Input select for Zigbee2mqtt debug level
input_select:
zigbee2mqtt_log_level:
name: Zigbee2mqtt Log Level
options:
- debug
- info
- warn
- error
initial: info
icon: mdi:format-list-bulleted
# Input text to input Zigbee2mqtt friendly_name for scripts
input_text:
zigbee2mqtt_old_name:
name: Zigbee2mqtt Old Name
zigbee2mqtt_new_name:
name: Zigbee2mqtt New Name
zigbee2mqtt_remove:
name: Zigbee2mqtt Remove
# }}}
# {{{ Notify
notify:
- name: zulip
platform: rest
resource: !secret zulip_notify_resource
method: POST_JSON
title_param_name: topic
- name: ecobee
platform: ecobee
# }}}
# {{{ Persons
person:
- name: Gail
id: gail1968
user_id: 09f60884ba844227a9b3c2d54fb341e2
device_trackers:
- device_tracker.gail_iphone
- device_tracker.gail3
- name: Cameron
id: cam1995
device_trackers:
- device_tracker.camphone
- name: Grant
id: grant1994
device_trackers:
- device_tracker.grantphone
- name: Jennifer
id: jen2000
user_id: 10f174a6c6db401babe419a388e8eaa8
device_trackers:
- device_tracker.unifi_default_28_c5_38_bf_0f_00
# }}}
# {{{ Presence Trackers
#device_tracker:
# - platform: iphonedetect
# consider_home: 600
# new_device_defaults:
# track_new_devices: true
# hosts:
# jennifer_iphone_detect: 192.168.2.64
# jennifer_iphone_detect2: 192.168.2.10
# jennifer_iphone_detect3: 192.168.2.152
# }}}
# {{{ Sensors
sensor:
- platform: cert_expiry
host: !secret http_base_url
- platform: template
sensors:
distance_apart:
friendly_name: 'GandG Apart'
value_template: >-
{% if distance(states.device_tracker.iphone, states.device_tracker.gail_iphone) | int == 0 %}
0
{% elif distance(states.device_tracker.iphone, states.device_tracker.gail_iphone) | round(2) < 0.09 %}
0
{% else %}
{{ distance(states.device_tracker.iphone, states.device_tracker.gail_iphone) | round(2) }}
{% endif %}
unit_of_measurement: 'km'
# # Sensor for monitoring the bridge state
# - platform: mqtt
# name: Zigbee2mqtt Bridge state
# state_topic: "zigbee2mqtt/bridge/state"
# icon: mdi:router-wireless
# # Sensor for Showing the Zigbee2mqtt Version
# - platform: mqtt
# name: Zigbee2mqtt Version
# state_topic: "zigbee2mqtt/bridge/config"
# value_template: "{{ value_json.version }}"
# icon: mdi:zigbee
# # Sensor for Showing the Coordinator Version
# - platform: mqtt
# name: Coordinator Version
# state_topic: "zigbee2mqtt/bridge/config"
# value_template: "{{ value_json.coordinator }}"
# icon: mdi:chip
binary_sensor:
- platform: ffmpeg_motion
name: Garage Motion
input: http://pi3:8081
reset: 20
# }}}
# {{{ Switches
# Wemo switches are not always being discovered automatically.
wemo:
discovery: false
static:
- 192.168.20.80
- 192.168.20.82
- 192.168.20.83
# }}}
# {{{ Text-to-speech
tts:
- platform: google_translate
service_name: google_say
- platform: voicerss
api_key: !secret voicerss_api_key
# }}}
group: !include groups.yaml
scene: !include scenes.yaml
automation: !include automations.yaml
script: !include scripts.yaml