-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·356 lines (306 loc) · 9.91 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
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 homeassistant_latitude
longitude: !secret homeassistant_longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: !secret homeassistant_elevation
# 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: !include customize.yaml
#Groups
group: !include group.yaml
# Show links to resources in log and frontend
# introduction:
media_player:
- platform: roku
# Logitech Harmony Hub
remote:
- platform: harmony
name: media_room
host: 10.9.21.28
activity: 22937584
light:
#Philips Hue
- platform: hue
host: 10.9.21.152
#LEDENET
- platform: flux_led
devices:
10.9.21.22:
name: LED Strip 1
protocol: 'ledenet'
10.9.21.24:
name: LED Strip 2
protocol: 'ledenet'
# Enables the frontend
frontend:
http:
# Uncomment this to add a password (recommended!)
api_password: !secret http_password
notify:
platform: pushbullet
api_key: !secret pushbullet_api
name: pushbullet
# Emulated Hue
emulated_hue:
host_ip: 10.9.21.150
type: alexa
exposed_domains:
- light
- group
- switch
# Automation Section
automation: !include automation.yaml
# 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:
exclude:
entities:
- sensor.large_garage_door_time_in_state
- sensor.large_garage_door_wifi_signal_strength
- sensor.small_garage_door_time_in_state
- sensor.small_garage_door_wifi_signal_strength
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_temperature
- sensor.dark_sky_daily_high_apparent_temperature
- sensor.dark_sky_cloud_coverage
- sun.sun
recorder:
# Delete events and states older than 1 weeks
purge_days: 7
exclude:
domains:
- cover
entities:
- sun.sun
- sensor.disk_use_home
- sensor.cpu_use
- sensor.cpu
- sensor.ram_free
- cover.large_garage_door
- sensor.large_garage_door_status
- sensor.large_garage_door_time_in_state
- sensor.large_garage_door_wifi_signal_strength
- sensor.large_garage_door_reflection_rate
- cover.small_garage_door
- sensor.small_garage_door_status
- sensor.small_garage_door_time_in_state
- sensor.small_garage_door_wifi_signal_strength
- sensor.small_garage_door_reflection_rate
- sensor.dark_sky_temperature
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_icon
- sensor.dark_sky_summary
- sensor.dark_sky_minutely_summary
- sensor.dark_sky_hourly_summary
- sensor.dark_sky_daily_summary
- sensor.dark_sky_daily_high_temperature
- sensor.dark_sky_daily_high_apparent_temperature
- sensor.dark_sky_daily_low_temperature
- sensor.dark_sky_daily_low_apparent_temperature
- sensor.dark_sky_cloud_coverage
- sensor.dark_sky_precip_probability
# View all events in a logbook
logbook:
exclude:
domains:
- cover
entities:
- sun.sun
- sensor.disk_use_home
- sensor.cpu_use
- sensor.cpu
- sensor.ram_free
- cover.large_garage_door
- sensor.large_garage_door_status
- sensor.large_garage_door_time_in_state
- sensor.large_garage_door_wifi_signal_strength
- sensor.large_garage_door_reflection_rate
- cover.small_garage_door
- sensor.small_garage_door_status
- sensor.small_garage_door_time_in_state
- sensor.small_garage_door_wifi_signal_strength
- sensor.small_garage_door_reflection_rate
- sensor.dark_sky_temperature
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_icon
- sensor.dark_sky_summary
- sensor.dark_sky_minutely_summary
- sensor.dark_sky_hourly_summary
- sensor.dark_sky_daily_summary
- sensor.dark_sky_daily_high_temperature
- sensor.dark_sky_daily_high_apparent_temperature
- sensor.dark_sky_daily_low_temperature
- sensor.dark_sky_daily_low_apparent_temperature
- sensor.dark_sky_cloud_coverage
- sensor.dark_sky_precip_probability
logger:
default: info
logs:
homeassistant.core: warn
homeassistant.components.http: warn
homeassistant.components.device_tracker: warn
plexapi: warn
# Track the sun
sun:
# Weather Prediction
sensor:
- platform: darksky
api_key: !secret darksky_api
monitored_conditions:
- summary
- icon
- nearest_storm_distance
- nearest_storm_bearing
- precip_type
- precip_intensity
- precip_probability
- temperature
- apparent_temperature
- cloud_cover
- humidity
- minutely_summary
- hourly_summary
- daily_summary
- temperature_max
- temperature_min
- apparent_temperature_max
- apparent_temperature_min
- platform: template
sensors:
media_room:
value_template: '{{ states.remote.media_room.attributes.current_activity }}'
friendly_name: 'Media Room'
large_garage_door_status:
friendly_name: 'State of the door'
value_template: '{{ states.cover.large_garage_door.state }}'
large_garage_door_time_in_state:
friendly_name: 'Since'
value_template: '{{ states.cover.large_garage_door.attributes["time in state"] }}'
large_garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.large_garage_door.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'
large_garage_door_reflection_rate:
friendly_name: 'Reflection Rate'
value_template: '{{ states.cover.large_garage_door.attributes["sensor reflection rate"] }}'
small_garage_door_status:
friendly_name: 'State of the door'
value_template: '{{ states.cover.small_garage_door.state }}'
small_garage_door_time_in_state:
friendly_name: 'Since'
value_template: '{{ states.cover.small_garage_door.attributes["time in state"] }}'
small_garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.small_garage_door.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'
small_garage_door_reflection_rate:
friendly_name: 'Reflection Rate'
value_template: '{{ states.cover.small_garage_door.attributes["sensor reflection rate"] }}'
#Plex Media Server
- platform: plex
host: 10.9.21.2
# Sonarr
- platform: sonarr
api_key: !secret sonarr_api
host: 10.9.21.2
monitored_conditions:
- series
- upcoming
- wanted
- queue
- commands
- diskspace
days: 3
# nzbget
- platform: nzbget
host: 10.9.21.2
username: !secret nzbget_username
password: !secret nzbget_password
monitored_variables:
- average_download_rate
- download_rate
- download_size
- free_disk_space
- remaining_size
- uptime
- platform: speedtest
monitored_conditions:
- ping
- download
- upload
server_id: 9384
#Pi system monitor
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /home
- type: memory_free
- type: processor_use
- platform: cpuspeed
name: CPU
zwave:
usb_path: /dev/zwave
config_path: /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config
polling_interval: 30000
#input_select for Bedroom Fan
input_select:
fan_speed:
name: Bedroom Fan Speed
options:
- "Off"
- Low
- Medium
- High
initial: Medium
icon: mdi:fan
#garage door opener/sensor
cover:
platform: garadget
covers:
!secret garadget_large_door:
username: !secret garadget_username
password: !secret garadget_password
name: Large Garage Door
!secret garadget_small_door:
username: !secret garadget_username
password: !secret garadget_password
name: Small Garage Door
#input_slider for theater lights
input_slider:
media_room_brightness:
name: Brightness
initial: 20
min: 0
max: 254
step: 1
icon: mdi:brightness-6
# Device Tracker
device_tracker: !include device_tracker.yaml
#MQTT
mqtt:
broker: m13.cloudmqtt.com
port: 23219
username: !secret cloudmqtt_username
password: !secret cloudmqtt_password
#Scripts
shell_command:
# Config Backup
backup_configuration: cp -a /home/homeassistant/.homeassistant/configuration.yaml "/home/homeassistant/backup/configuration.yaml-$(date +"%m%d%Y-%H%M")"
backup_group: cp -a /home/homeassistant/.homeassistant/group.yaml "/home/homeassistant/backup/group.yaml-$(date +"%m%d%Y-%H%M")"
backup_customize: cp -a /home/homeassistant/.homeassistant/customize.yaml "/home/homeassistant/backup/customize.yaml-$(date +"%m%d%Y-%H%M")"
backup_known_devices: cp -a /home/homeassistant/.homeassistant/known_devices.yaml "/home/homeassistant/backup/known_devices.yaml-$(date +"%m%d%Y-%H%M")"
backup_device_tracker: cp -a /home/homeassistant/.homeassistant/device_tracker.yaml "/home/homeassistant/backup/device_tracker.yaml-$(date +"%m%d%Y-%H%M")"
backup_automation: cp -a /home/homeassistant/.homeassistant/automation.yaml "/home/homeassistant/backup/automation.yaml-$(date +"%m%d%Y-%H%M")"
backup_secrets: cp -a /home/homeassistant/.homeassistant/secrets.yaml "/home/homeassistant/backup/secrets.yaml-$(date +"%m%d%Y-%H%M")"
backup_script: cp -a /home/homeassistant/.homeassistant/script.yaml "/home/homeassistant/backup/script.yaml-$(date +"%m%d%Y-%H%M")"
script: !include script.yaml