forked from oakbrad/brad-homeassistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·521 lines (510 loc) · 11.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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
#
# BRAD's HA CONFIG
# LIVING IN THE FUTURE
#
homeassistant:
name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
elevation: 7
unit_system: imperial
time_zone: America/Los_Angeles
customize: !include config/customize.yaml
customize_glob: !include config/custom-ui.yaml
recorder:
db_url: !secret db_path
purge_days: 2
#logger:
# default: debug
frontend:
http:
api_password: !secret http_password
updater:
history:
sun:
wemo:
# Custom UI Panels
panel_custom:
- name: floorplan
sidebar_title: Floorplan
sidebar_icon: mdi:home
url_path: floorplan
config: !include config/floorplan.yaml
#
# Split configuration into separate files
#
device_tracker: !include config/device_tracker.yaml
zone: !include config/zones.yaml
scene: !include_dir_merge_list scenes
script: !include_dir_merge_named scripts
python_script:
input_boolean: !include config/input_boolean.yaml
input_slider: !include config/input_slider.yaml
input_select: !include config/input_select.yaml
sensor: !include config/sensors.yaml
binary_sensor: !include config/binary_sensors.yaml
switch: !include config/switches.yaml
automation: !include_dir_merge_list automation
logbook: !include config/logbook.yaml
shell_command: !include config/shell.yaml
plant: !include config/plants.yaml
media_player: !include config/media_players.yaml
mqtt: !include config/mqtt.yaml
rest_command: !include config/rest.yaml
#
# Additional Platforms
#
alarm_control_panel:
- platform: manual
name: Loft Alarm
pending_time: 45
trigger_time: 120
camera: !include config/cameras.yaml
light: !include config/lights.yaml
ios:
emulated_hue:
listen_port: 8300
expose_by_default: false
tradfri:
host: 192.168.0.9
api_key: !secret ikea_key
ifttt:
key: !secret ifttt_key
tts:
- platform: google
cache: true
cache_dir: /tmp/tts
time_memory: 3600
- platform: amazon_polly
aws_access_key_id: !secret aws_key
aws_secret_access_key: !secret aws_secret_key
name: polly
# English US Female
voice: Salli
# English UK Female
# voice: Amy
#android_ip_webcam:
# - host: 192.168.0.52
# scan_interval: 2
# sensors:
# - light
# - motion
# switches:
# - night_vision
# - overlay
#
# Set up Communication Hardware
#
# This causes HA to hang :( :(
#zha:
# usb_path: /dev/ttyUSB1
# database_path: /home/homeassistant/.homeassistant/zigbee.db
zwave:
usb_path: /dev/ttyUSB0
new_entity_ids: true
config_path: /usr/local/lib/python3.4/dist-packages/python_openzwave/ozw_config
polling_interval: 30000
device_config:
light.back_overheads:
refresh_value: true
delay: 5
polling_intensity: 1
light.front_overheads:
refresh_value: true
delay: 5
polling_intensity: 1
switch.bathroom_light:
refresh_value: true
polling_intensity: 1
switch.bathroom_fan:
refresh_value: true
polling_intensity: 1
switch.kitchen_lights:
refresh_value: true
polling_intensity: 1
###########################
## ORGANIZE INTO GROUPS ##
###########################
group:
# REPLACE HOME PAGE
default_view:
view: yes
icon: mdi:home
entities:
- group.Scenes
- group.AlarmClock
- camera.car_location
- group.Alarm
Lights:
view: yes
icon: mdi:flash
entities:
- group.Bathroom
- group.Bedroom
- group.Kitchen
- group.LivingRoom
- group.Office
- group.Overheads
- group.Misc
# CLIMATE TAB
Climate:
view: yes
icon: mdi:thermometer
entities:
- camera.sf_radar
- camera.east_bay
- group.Weather
- group.Today
- group.Indoors
# MEDIA TAB
Media:
view: yes
icon: mdi:filmstrip
entities:
- group.Radio
- media_player.roku_3__4124cg078650
- media_player.vlc_tts
- group.Speakers
- group.Downloads
# MONITORING TAB
Cameras:
view: yes
icon: mdi:eye
entities:
- group.Motion
- group.Openings
# - camera.front_door
# - camera.window
Information:
view: yes
icon: mdi:barley
entities:
- group.Plants
- group.Aquarium
# SYSTEM TAB
System:
view: yes
icon: mdi:gauge
entities:
- group.BradsDevices
- group.SystemOptions
- group.Devices
- group.Pi
# WALL PANEL
WallPanel:
view: yes
icon: mdi:tablet-android
entities:
- group.traveltimes
- group.TodayWeather
- group.Radio
- group.Rooms
# TRACKED USERS
tracked_users:
view: no
name: Tracked Users
entities:
- device_tracker.brad
- group.guestdevices
guestdevices:
view: no
name: Guest Devices
entities:
- device_tracker.jenny_oh_hatfields_iphone
# SMALLER GROUPS FOR ABOVE TABS
#
# Alarm Alarm
Alarm:
control: hidden
name: Alarm
entities:
- group.alarmbadge
- script.alarm_disarm
- script.alarm_arm_home
- input_boolean.alarm_override
# Alarm Status Badge
alarmbadge:
entities:
- alarm_control_panel.loft_alarm
- group.tracked_users
- input_boolean.guest_mode
- input_boolean.vacation_mode
# Alarm Clock
AlarmClock:
control: hidden
name: Alarm Clock
entities:
- automation.alarm_clock
- sensor.alarm_time
- input_slider.alarmhour
- input_slider.alarmminutes
- input_boolean.alarmweekday
- sensor.coffeemaker
Bathroom:
name: Bathroom
entities:
- switch.bathroom_light
- switch.bathroom_fan
BradsDevices:
name: "Brad"
entities:
- group.bradsdevicesbadges
- sensor.battery_iphone
bradsdevicesbadges:
entities:
- device_tracker.brad
- device_tracker.brad_ios
- device_tracker.brad_owntracks
- device_tracker.brad_ping
- device_tracker.brad_router
Devices:
name: Devices
entities:
- group.devicebadges
- sensor.synology_storage_free
devicebadges:
entities:
- sensor.synology_online
- sensor.bradlaptop_online
- sensor.ikeatradfri_online
- sensor.espmilight_online
- sensor.windowcam_online
- sensor.frontdoorcam_online
- sensor.laserprinter_online
Indoors:
name: Indoor Air Quality
entities:
- group.environmentbadges
environmentbadges:
entities:
- sensor.indoor_mean_temp
- sensor.indoor_mean_humidity
- sensor.air_pressure
- sensor.kitchen_smoke
- sensor.carbon_monoxide
Overheads:
entities:
- light.front_overheads
- light.back_overheads
Plants:
entities:
- sensor.plant_problems
- script.tts_plant_info
- plant.window_container
- plant.rubber_plant
- plant.giant_pothos
- plant.giant_philodendron
- plant.palm
- plant.projector_pothos
- plant.hanging_red_pothos
- plant.hanging_spider_plant
- plant.kitchen_pothos
- plant.small_philodendron
- plant.window_spider_plant
Bedroom:
entities:
- light.entry
- light.closet
- light.bedroom
- switch.bedroom_fan
Kitchen:
control: hidden
entities:
- switch.kitchen_lights
- switch.edison_pendants
- switch.string_lights
- light.stove
- light.fridge
- switch.sink
- switch.coffeemaker
LivingRoom:
name: Living Room
entities:
- light.back_overheads
- light.globes
- light.floor_lamp
- light.dining_floor_lamp
Office:
entities:
- switch.office
- light.office_pendant
- switch.work_lamp
Grocery_Zone:
name: Near Grocery
entities:
- zone.whole_foods
- zone.sprouts_market
- zone.grocery_outlet
- zone.lucky_grocery
Rooms:
name: Lights
entities:
- group.Overheads
- group.Bedroom
- switch.kitchen_lights
- group.LivingRoom
- group.Office
- scene.all_lights_off
Scenes:
control: hidden
entities:
- scene.day_dim_lights
- scene.evening_bright_lights
- scene.night_dim_lights
- scene.all_lights_off
- scene.all_lights_on
Today:
entities:
- group.todaybadges
- sensor.friendly_date
- sensor.dark_sky_hourly_summary
# Put a copy in default_view for commute
TodayDefault:
name: Today
entities:
- group.todaybadges
- sensor.friendly_date
- sensor.dark_sky_hourly_summary
todaybadges:
entities:
- sun.sun
- sensor.solar_angle
- sensor.sunrise_time
- sensor.sunset_time
- sensor.moon
Speakers:
entities:
- switch.mpd_pi
- input_slider.radiovolume
- sensor.nowplaying_pi
- switch.volumio
- input_slider.stereovolume
- sensor.nowplaying_volumio
SystemOptions:
name: Home Options
entities:
# - group.tracked_users
- input_boolean.are_any_lights_on
- input_boolean.alarm_override
- input_boolean.nightlight_override
- input_boolean.vacation_mode
- input_boolean.guest_mode
- switch.flux
Motion:
entities:
- sensor.last_motion
- group.motionbadges
motionbadges:
entities:
- binary_sensor.entry_motion
- binary_sensor.closet_motion
- binary_sensor.bathroom_motion
- binary_sensor.kitchen_motion_meta
- binary_sensor.dining_motion_meta
- binary_sensor.office_motion
- binary_sensor.livingroom_motion_meta
Openings:
entities:
- group.openingsbadges
openingsbadges:
entities:
- binary_sensor.front_door
- binary_sensor.crawl_space_door
- binary_sensor.left_window
Aquarium:
entities:
- switch.aquarium
- binary_sensor.left_window
- sensor.window_air_temp
- sensor.water_temperature
Misc:
- switch.aquarium
- switch.grow_light
- light.crawl_space
Pi:
name: HomeAssistant Pi
control: hidden
entities:
- group.pibadges
- sensor.since_last_boot
- script.restart_ha
- switch.pi_shutdown
- switch.pi_reboot
pibadges:
entities:
- sensor.ram_use
- sensor.cpu_use
- sensor.disk_use_
- sensor.disk_free_
Radio:
name: Radio
control: hidden
entities:
# - sensor.nowplaying_pi
- input_slider.radiovolume
- switch.mpd_pi
- script.tts_plant_info
# - switch.radio_kalx
# - switch.radio_jazz
# - switch.radio_metal
# - switch.radio_kzsc
Weather:
entities:
- group.weatherbadges
- group.weatherconditionsbadges
- sensor.dark_sky_daily_summary
- group.weatherforecastbadges
TodayWeather:
name: "Today's Weather"
entities:
- group.weatherbadges
- group.weatherconditionsbadges
# - sensor.dark_sky_daily_summary
weatherbadges:
entities:
- sensor.yr_symbol
- sensor.dark_sky_temperature
- sensor.dark_sky_daily_high_temperature
- sensor.dark_sky_daily_low_temperature
weatherconditionsbadges:
entities:
- sensor.dark_sky_precip_probability
- sensor.dark_sky_cloud_coverage
- sensor.friendly_wind_direction
- sensor.dark_sky_wind_speed
weatherforecastbadges:
entities:
- sensor.dark_sky_daily_high_temperature_1
- sensor.dark_sky_daily_low_temperature_1
- sensor.dark_sky_precip_probability_1
- sensor.dark_sky_cloud_coverage_1
- sensor.friendly_wind_direction_forecast
TravelTimes:
name: Travel Times
entities:
- group.traveltimesbadges
traveltimesbadges:
entities:
- sensor.home_to_sf
- sensor.home_to_16th_mission_bart
- sensor.home_to_richmond_bart
- sensor.ferry_to_sf
- sensor.ferry_to_sf_arrival
Downloads:
entities:
- sensor.transmission_status
- switch.transmission_turtle_mode
- group.transmissionbadges
- sensor.transmission_status
- sensor.sabnzbd_status
- input_boolean.sabnzbd_turtle_mode
- group.sabnzbdbadges
transmissionbadges:
entities:
- sensor.transmission_down_speed_kbps
- sensor.transmission_up_speed_kbps
sabnzbdbadges:
entities:
- sensor.sabnzbd_speed
- sensor.sabnzbd_left
- sensor.sabnzbd_queue