-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
476 lines (450 loc) · 12.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
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: 118
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Chicago
customize:
group.vu:
hidden: no
group.dillion:
hidden: no
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
cloud:
# New config panel
config:
http:
# Uncomment this to add a password (recommended!)
# api_password: PASSWORD
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
base_url: nguyenha.duckdns.org
api_password: !secret http_password
ssl_certificate: '/etc/letsencrypt/live/nguyenha.duckdns.org/fullchain.pem'
ssl_key: '/etc/letsencrypt/live/nguyenha.duckdns.org/privkey.pem'
cors_allowed_origins:
- https://reformedreality.com
- http://reformedreality.com
# Checks for available updates
updater:
# Discover some devices automatically
# discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
recorder:
purge_keep_days: 5
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
sensor: !include sensors.yaml
# Text to speech
tts:
platform: google
ifttt:
key: !secret ifttt_api_key
notify:
- platform: telegram
name: Vu_Telegram
chat_id: 467266232
- platform: html5
name: html5
gcm_api_key: !secret notify_html5_gcm_api_key
gcm_sender_id: !secret notify_html5_gcm_sender_id
- platform: joaoapps_join
device_id: !secret join_vu_device_id
name: GalaxyS7
api_key: !secret join_vu_device_api_key
joaoapps_join:
- name: GalaxyS7
device_id: group.GalaxyS7
api_key: !secret join_vu_device_api_key
mqtt:
broker: 127.0.0.1
port: 1883
client_id: home-assistant-1
username: ha
password: !secret mqtt_password
protocol: 3.1
birth_message:
topic: 'hass/status'
payload: 'online'
qos: 1
retain: true
will_message:
topic: 'hass/status'
payload: 'offline'
qos: 1
retain: true
device_tracker:
#- platform: linksys_ap
# host: 192.168.1.1
# username: admin
# password: !secret linksys_ap_pw
# consider_home: 180
# interval_seconds: 10
# track_new_devices: yes
- platform: nmap_tracker
hosts:
- 192.168.1.113
- 192.168.1.112
- 192.168.1.115
- 192.168.1.191
home_interval: 1
consider_home: 180
scan_options: " --privileged -sP "
- platform: owntracks
max_gps_accuracy: 200
media_player:
- platform: cast
host: 192.168.1.103
- platform: cast
host: 192.168.1.102
- platform: cast
host: 192.168.1.152
- platform: cast
host: 192.168.1.150
- platform: cast
host: 192.168.1.156
- platform: cast
host: 192.168.1.151
- platform: cast
host: 192.168.1.145
- platform: cast
host: 192.168.1.116
- platform: plex
include_non_clients: true
show_all_controls: true
- platform: roku
host: 192.168.1.124
group:
Kitchen:
view: yes
entities:
- media_player.kitchen_home
- device_tracker.ghome
Living Room:
view: yes
entities:
- media_player.main_tv
Office:
view: yes
entities:
- media_player.office_tv
Theater:
view: yes
entities:
- light.mqtt_theater_room_light
- sensor.theater_room_motion_sensor
# Garage Door:
# view: yes
# entities:
# - sensor.gogogate2sensor
# - cover.main_garage
Family:
view: yes
entities:
- device_tracker.vnguyen972_vugalaxy7
- device_tracker.dillion972_HungSamsung
- device_tracker.dustin972_dustinGalaxy7
- device_tracker.duyen972_DuyenGalaxys7
Location:
entities:
- sensor.dustin
- sensor.dillion
- sensor.duyen
- sensor.vu
Dark Sky Weather:
entities:
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_cloud_coverage
- sensor.dark_sky_daily_high_apparent_temperature
- sensor.dark_sky_daily_high_temperature
- sensor.dark_sky_daily_low_apparent_temperature
- sensor.dark_sky_daily_low_temperature
- sensor.dark_sky_daily_max_precip_intensity
- sensor.dark_sky_daily_summary
- sensor.dark_sky_dew_point
- sensor.dark_sky_hourly_summary
- sensor.dark_sky_humidity
- sensor.dark_sky_icon
- sensor.dark_sky_minutely_summary
- sensor.dark_sky_nearest_storm_bearing
- sensor.dark_sky_nearest_storm_distance
- sensor.dark_sky_ozone
- sensor.dark_sky_precip
- sensor.dark_sky_precip_intensity
- sensor.dark_sky_precip_probability
- sensor.dark_sky_pressure
- sensor.dark_sky_summary
- sensor.dark_sky_temperature
- sensor.dark_sky_visibility
- sensor.dark_sky_wind_bearing
- sensor.dark_sky_wind_speed
zone: !include zones.yaml
cover:
- platform: gogogate2
username: admin
password: adm1n
ip_address: 192.168.1.127
# - platform: command_line
# covers:
# garage_door:
# command_open: curl --silent -X GET https://maker.ifttt.com/trigger/OpenMyGarage/with/key/bamq6_Bv89a5zqRh4XL9B?value1=Opened
# command_close: curl --silent -X GET https://maker.ifttt.com/trigger/CloseMyGarage/with/key/bamq6_Bv89a5zqRh4XL9B?value1=Opened
# command_state: /home/pi/hass.shell.commands/garage/checkG2Sensor.sh
input_boolean:
nap_time:
name: Nap Time
initial: off
living_room_light_automation:
name: Living Room Light Automation
initial: on
vacation_time_mode:
name: Vacation Time Mode
initial: off
input_select:
trash_day:
options:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
initial: Wed
# vacation:
# options:
# - Yes
# - No
# initial: No
# living_room_light_automation:
# options:
# - Yes
# - No
# initial: No
scene:
- name: theater light normal
entities:
light.mqtt_theater_room_light:
state: on
transition: 2
brightness: 75
- name: theater light dim
entities:
light.mqtt_theater_room_light:
state: on
transition: 2
brightness: 20
- name: theater light off
entities:
light.mqtt_theater_room_light:
state: off
transition: 2
automation: !include automations.yaml
light:
- platform: group
name: Living Room Lights
entities:
- light.mqtt_livingroom_light_1
- light.mqtt_livingroom_light_2
- platform: mqtt
name: "MQTT Theater Room Light"
state_topic: "smartthings/Theater Room Dimmer/switch"
command_topic: "smartthings/Theater Room Dimmer/switch"
brightness_state_topic: "smartthings/Theater Room Dimmer/level"
brightness_command_topic: "smartthings/Theater Room Dimmer/level"
brightness_scale: 99
brightness_template: "{{ value }}"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
optimistic: false
- platform: mqtt
name: "MQTT Dinner Table Light"
state_topic: "smartthings/Dinner Table Light/switch"
command_topic: "smartthings/Dinner Table Light/switch"
brightness_state_topic: "smartthings/Dinner Table Light/level"
brightness_command_topic: "smartthings/Dinner Table Light/level"
brightness_scale: 99
brightness_template: "{{ value }}"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
optimistic: false
- platform: mqtt
name: "MQTT Hallway to Garage Light"
state_topic: "smartthings/Hallway To Garage/switch"
command_topic: "smartthings/Hallway To Garage/switch"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
optimistic: false
- platform: mqtt
name: "MQTT Livingroom Light 1"
state_topic: "smartthings/Livingroom Light 1/switch"
command_topic: "smartthings/Livingroom Light 1/switch"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
optimistic: false
- platform: mqtt
name: "MQTT Livingroom Light 2"
state_topic: "smartthings/Livingroom Light 2/switch"
command_topic: "smartthings/Livingroom Light 2/switch"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
optimistic: false
#emulated_hue:
# type: google_home
# listen_port: 80
remote:
- platform: harmony
name: Theater Room
host: 192.168.1.196
activity: Watch movie
ecobee:
api_key: !secret ecobee_api_key
binary_sensor:
- platform: workday
name: Work Days
country: US
state: TX
workdays: [mon, tue, wed, thu, fri]
- platform: workday
name: Holidays
country: US
state: TX
workdays: [holiday]
excludes: []
- platform: workday
name: Weekends
country: US
state: TX
workdays: [sat, sun]
excludes: [mon, tue, wed, thu, fri, holiday]
switch:
- platform: template
switches:
theater:
value_template: "{% if is_state('remote.theater_room', 'on') %}on{% else %}off{% endif %}"
turn_on:
service: remote.turn_on
entity_id: remote.theater_room
turn_off:
service: remote.turn_off
entity_id: remote.theater_room
lock:
- platform: lockitron
access_token: !secret lockitron_access_token
id: !secret lockitron_lock_id
duckdns:
domain: nguyenha
access_token: !secret duckdns_access_token
#rest_command:
# notify_googlehome_door_locked:
# url: 'https://maker.ifttt.com/trigger/FrontDoorLockStatusChanged/with/key/bamq6_Bv89a5zqRh4XL9B?value1=Locked'
# payload: >
# '{"entity_id":"media_player.nguyeniverse","message":"Front Door is {{Value1}}"}'
# notify_googlehome_door_unlocked:
# url: 'https://maker.ifttt.com/trigger/FrontDoorLockStatusChanged/with/key/bamq6_Bv89a5zqRh4XL9B?value1=Unlocked'
# payload: >
# '{"entity_id":"media_player.nguyeniverse","message":"Front Door is {{Value1}}"}'
# update_lockitron_status_locked:
# url: 'https://apilio.herokuapp.com/boolean_variables/frontDoorLocked/set_true/with_key/c1e95158a62b73f9a197de4584a841a6'
# update_lockitron_status_unlocked:
# url: 'https://apilio.herokuapp.com/boolean_variables/frontDoorLocked/set_false/with_key/c1e95158a62b73f9a197de4584a841a6'
google_assistant:
project_id: project-5901766033282729275
client_id: 6349238557567013A7351545817A507
access_token: 6432z896263A400821425988
api_key: !secret google_api_key
agent_user_id: [email protected]
expose_by_default: false
entity_config:
cover.garage_door:
expose: true
aliases:
- Garage Door
script.movie_time:
expose: true
aliases:
- Movie Time
script.movie_done:
expose: true
aliases:
- Done Watching Movie
input_boolean.nap_time:
expose: true
aliases:
- Nap Time
input_boolean.living_room_light_automation:
expose: true
aliases:
- LivingRoom Light Automation
input_boolean.vacation_time_mode:
expose: true
aliases:
- Vacation Time Mode
light.living_room_lights:
expose: true
aliases:
- Living Room Lights
exposed_domains:
# - switch
# - script
# - scene
# - group
# - input boolean
# - fan
# - light
# - cover
# - media_player
# - climate
telegram_bot:
- platform: polling
api_key: !secret telegram_api_key
allowed_chat_ids:
- 467266232
script:
movie_time:
alias: Movie Time
sequence:
- alias: Start Theater
service: remote.turn_on
data:
entity_id: remote.theater_room
- alias: Turn off Light
service: light.turn_off
data:
entity_id: light.mqtt_theater_room_light
movie_done:
alias: Done Watching Movie
sequence:
- alias: Stop Theater
service: remote.turn_off
data:
entity_id: remote.theater_room
- alias: Turn on Light
service: light.turn_on
data:
entity_id: light.mqtt_theater_room_light