-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
executable file
·359 lines (325 loc) · 8.4 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
#########################
# Basic Config
#########################
zwave:
usb_path: /dev/ttyACM0
config_path: /config/ozw_config/openzwave/config/
device_config:
light.nursery_fan_level:
refresh_value: true
polling_intensity: 1
light.nursery_light_level:
refresh_value: true
polling_intensity: 1
# Zigbee
zha:
zigpy_config:
ota:
ikea_provider: true # Auto update Trådfri devices
zha_map:
homeassistant:
# Customization file
customize: !include customize.yaml
logger:
default: info
logs:
homeassistant.components.zha: notset
# homeassistant.components.zha: debug
# zigpy: debug
# introduction: # Show links to resources in log and frontend
cloud:
default_config: # default config
fastdotcom: # Fast.com speed test
wake_on_lan: # enables `wake_on_lan` domain
zeroconf:
discovery: # Discover some devices automatically
ignore:
- apple_tv
# Includes
group: !include groups.yaml
automation: !include automations.yaml
automation old: !include_dir_merge_list automations
script: !include scripts.yaml
scene: !include scenes.yaml
light: !include lights.yaml
frontend:
themes: !include_dir_merge_named themes
http:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
#########################
# Google
#########################
google:
client_id: !secret google_id
client_secret: !secret google_secret
google_domains:
domain: !secret google_ddns_domain
username: !secret google_ddns_id
password: !secret google_ddns_pw
#########################
# Weather
#########################
sun:
weather:
- platform: darksky
api_key: !secret darksky_api
mode: daily
#########################
# Sensors
#########################
sensor: !include sensors.yaml
binary_sensor:
- platform: template
sensors:
bedroom_motion:
friendly_name: "Bedroom Motion"
device_class: motion
value_template: >-
{%- if is_state('sensor.bedroom_multi_burglar', '0') -%}
false
{%- else -%}
true
{%- endif -%}
kitchen_motion:
friendly_name: "Kitchen Motion"
device_class: motion
value_template: >-
{%- if is_state('sensor.kitchen_multi_burglar', '0') -%}
false
{%- else -%}
true
{%- endif -%}
garage_motion:
friendly_name: "Garage Motion"
device_class: motion
value_template: >-
{%- if is_state('sensor.garage_multi_burglar', '0') -%}
false
{%- else -%}
true
{%- endif -%}
office_motion:
friendly_name: "Office Motion"
device_class: motion
value_template: >-
{%- if is_state('sensor.office_multi_burglar', '0') -%}
false
{%- else -%}
true
{%- endif -%}
bed_mark:
friendly_name: "In Bed - Mark"
device_class: presence
value_template: >-
{%- if is_state('binary_sensor.bedroom_bed_mark', 'on') -%}
false
{%- else -%}
true
{%- endif -%}
bed_molly:
friendly_name: "In Bed - Molly"
device_class: presence
value_template: >-
{%- if is_state('binary_sensor.bedroom_bed_molly', 'on') -%}
false
{%- else -%}
true
{%- endif -%}
#########################
# Fan
#########################
fan:
- platform: template
fans:
nursery_fan:
friendly_name: "Nursery Fan"
value_template: "{{ states('light.nursery_fan_level') }}"
speed_template: >
{% set output = {0: 'off', 85: 'low', 170: 'medium', 255: 'high'} %}
{% set idx = state_attr('light.nursery_fan_level', 'brightness') %}
{{ output[idx] }}
turn_on:
service: light.turn_on
entity_id: light.nursery_fan_level
turn_off:
service: light.turn_off
entity_id: light.nursery_fan_level
set_speed:
service: light.turn_on
entity_id: light.nursery_fan_level
data_template:
brightness: >
{% set mapper = {'off' : 0, 'low': 85, 'medium': 170, 'high': 255} %}
{{ mapper[speed] }}
speeds:
- "off"
- "low"
- "medium"
- "high"
#########################
# Custom Panel
#########################
panel_custom:
- name: zwave-graph-panel
url_path: zwave-graph
sidebar_title: Z-Wave Graph
sidebar_icon: mdi:z-wave
module_url: /local/zwavegraph3.js
config:
# ranker - pick one: network-simplex, tight-tree, longest-path
ranker: network-simplex
# edge_visibility - pick one: relevant, all
edge_visibility: relevant
# grouping - pick one: z-wave, ungrouped
grouping: z-wave
#########################
# Text to speech
#########################
tts:
- platform: google_translate
service_name: google_say
#########################
# Cameras
#########################
#arlo:
# username: !secret arlo_username
# password: !secret arlo_password
#########################
# Media
#########################
media_player:
spotify:
client_id: !secret spotify_id
client_secret: !secret spotify_secret
media_extractor:
#########################
# Notifications
#########################
notify:
- name: html5
platform: html5
vapid_pub_key: !secret vapid_pub_key
vapid_prv_key: !secret vapid_prv_key
vapid_email: !secret vapid_email
- name: molly_and_mark
platform: group
services:
- service: mobile_app_pixel_3
- service: mobile_app_molly_dehate
- name: mark
platform: group
services:
- service: mobile_app_pixel_3
#########################
# Presence Detection
#########################
owntracks:
waypoints: false # disable owntracks from reporting regions - prevents overlapping homes
zone:
- name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
radius: 90
icon: mdi:home
- name: WFS
latitude: !secret wfs_latitude
longitude: !secret wfs_longitude
radius: 90
icon: mdi:account-hard-hat
- name: A-O
latitude: !secret ao_latitude
longitude: !secret ao_longitude
radius: 540
icon: mdi:account-hard-hat
#########################
# Spotcast
#########################
spotcast:
sp_dc: !secret sp_dc
sp_key: !secret sp_key
#########################
# Camera
#########################
camera:
- platform: foscam
ip: !secret foscam_ip
rtsp_port: !secret foscam_rtsp_port
username: !secret foscam_username
password: !secret foscam_password
- platform: generic
name: WyzeCam
still_image_url: "null"
stream_source: !secret wyzecam_addy
#########################
# Radio Player Config
#########################
# Adding an audio destination? Add it to these places:
# input_select - chromecast_radio_value
# input_select - chromecast_radio
# automation - sync_radio_input_selects
input_select:
chromecast_radio_value:
name: "Selected Speaker:"
options:
- media_player.kitchen
- media_player.radio
- media_player.main_floor
- media_player.main_and_basement
- media_player.bedroom
- media_player.basement
- media_player.all_indoor
- media_player.garage
- media_player.deck
- media_player.all_indoor_and_outdoor
initial: media_player.kitchen
chromecast_radio:
name: "Select Speakers:"
options:
- Kitchen
- Living Room
- Main Floor
- Main and Basement
- Basement
- Bedroom
- All Indoor
- Garage
- Deck
- Everywhere
initial: Kitchen
icon: mdi:speaker-wireless
spotify_playlist:
name: "Select Playlist:"
options:
- Discover Weekly
- Release Radar
- Bangin Christmas Party
- Bangin Dinner Party
- CRJ Radio
- Sunset Mix
- Chillout Mix
- Beats Mix
#########################
# Logging
#########################
recorder:
purge_keep_days: 8
exclude:
entities:
- sensor.date
- sensor.date_time
- sensor.date_time_iso
- sensor.time_date
- sensor.internet_time
- sensor.time_utc
- sensor.time
- sensor.time_12hr
- sensor.memory_free
- sensor.memory_use_percent
- sensor.disk_use_percent
- sensor.processor_use
domains:
- updater
- zone
- zwave