-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·348 lines (273 loc) · 7.06 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
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 geo_lat
longitude: !secret geo_long
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 2
unit_system: metric
time_zone: !secret geo_tz
customize: !include customize.yaml
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
api_password: !secret http_password
base_url: !secret base_url
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
updater:
# include_used_components: true
# Discover some devices automatically
discovery:
#hass.io menu
hassio:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
include:
domains:
- sensor
- switch
- media_player
entities:
- sensor.swimming_pool_temperature
- sensor.email_personal
- cover.garage_door_cover
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
#map:
ios:
push:
categories:
- name: garagepush
identifier: garagepush
actions:
- identifier: CLOSEGARAGEDOOR
title: 'Close Garage Door'
activationMode: 'background'
authenticationRequired: no
destructive: no
behavior: 'default'
- identifier: DISMISS
title: 'Dismiss'
activationMode: 'background'
authenticationRequired: no
destructive: no
behavior: 'default'
alexa:
intent_script: !include intent_script.yaml
# Track the sun
#sun:
# Weather prediction
#sensor:
# - platform: yr
# Text to speech
tts:
- platform: google
# Cloud
cloud:
group: !include groups.yaml
#automation: !include automations.yaml
automation: !include_dir_merge_list automation
script: !include scripts.yaml
sensor: !include sensors.yaml
#############################################################
# covers
#############################################################
cover:
- platform: rpi_gpio
relay_time: 1
invert_relay: True
covers:
- relay_pin: 21
state_pin: 26
name: garage_door_cover
#bmw_connected_drive:
# 328i:
# username: !secret bmw_username
# password: !secret bmw_password
# country: !secret bmw_country
binary_sensor:
- platform: rpi_gpio
invert_logic: true
ports:
26: garage_open_sensor
25: garage_closed_sensor
- platform: trend
sensors:
email_personal_new:
entity_id: sensor.email_personal
#############################################################
# motion sensors
#############################################################
# ground floor
- platform: mqtt
device_class: 'door'
name: 'Front Door'
state_topic: 'alarm/g-frontdoor'
- platform: mqtt
device_class: 'motion'
name: 'Living Room'
state_topic: 'alarm/g-living'
- platform: mqtt
device_class: 'motion'
name: 'Kitchen'
state_topic: 'alarm/g-kitchen'
# upper groud
- platform: mqtt
device_class: 'motion'
name: 'Hollys Room'
state_topic: 'alarm/ug-front'
- platform: mqtt
device_class: 'motion'
name: 'Master Bedroom'
state_topic: 'alarm/ug-back'
# lower groud
- platform: mqtt
device_class: 'motion'
name: 'Satchis Room'
state_topic: 'alarm/lg-front'
- platform: mqtt
device_class: 'motion'
name: 'Study'
state_topic: 'alarm/lg-back'
- platform: mqtt
device_class: 'motion'
name: 'Michis Room'
state_topic: 'alarm/garage'
# sensor status ping
- platform: mqtt
device_class: 'connectivity'
name: 'Alarm Ping'
state_topic: 'alarm/ping'
mqtt:
broker: 10.0.0.61
port: 1883
client_id: pool-temperature
username: mqtt
password: !secret mqtt_password
#############################################################
# graphs
#############################################################
history_graph:
temperature_graphs:
name: "Temperatures"
refresh: 600
hours_to_show: 120
entities:
- sensor.swimming_pool_temperature
#############################################################
# notify
#############################################################
notify:
- name: twilio_sms
platform: twilio_sms
from_number: !secret twilio_from_number
- name: lametric_notify_long
platform: lametric
lifetime: 20
cycles: 3
- name: lametric_notify_short
platform: lametric
lifetime: 20
cycles: 1
#############################################################
# media
#############################################################
media_player:
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: sonos
#############################################################
# switch
#############################################################
switch:
- platform: rpi_gpio
ports:
21: garage_door_relay
#############################################################
# input booleans for storage
#############################################################
input_boolean:
garage_opening:
initial: off
garage_closing:
initial: off
garage_stopped:
initial: off
garage_stopped_on_open:
initial: off
garage_stopped_on_close:
initial: off
alarm_status:
name: 'Alarm Status'
initial: off
icon: mdi:bell
mobile_token_send:
initial: off
chris_occupancy:
initial: off
seema_occupancy:
initial: off
misaki_occupancy:
initial: off
satsuki_occupancy:
initial: off
#############################################################
# la metric
#############################################################
lametric:
client_id: !secret lametric_client_id
client_secret: !secret lametric_client_secret
#############################################################
# twilio
#############################################################
twilio:
account_sid: !secret twilio_account_sid
auth_token: !secret twilio_auth_token
emulated_hue:
host_ip: !secret local_ip
listen_port: 8300
expose_by_default: false
exposed_domains:
# - input_boolean
- script
# - switch
input_select:
chris_status_dropdown:
name: Chris
options:
- Home
- Just Arrived
- Just Left
- Away
- Extended Away
initial: Home
#############################################################
# text input
#############################################################
input_text:
mobile_number:
name: Mobile
pattern: '^\(?(?:\+?61|0)4\)?(?:[ -]?[0-9]){2}\)?(?:[ -]?[0-9]){5}[0-9]$'
#############################################################
# alarm panel
#############################################################
alarm_control_panel:
- platform: manual
name: Home Alarm
trigger_time: 4
armed_away:
pending_time: 30
delay_time: 20
disarmed:
trigger_time: 0
armed_home:
pending_time: 0
delay_time: 0