-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
493 lines (440 loc) · 10.7 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
homeassistant:
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret latitude
longitude: !secret longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 200
unit_system: metric
time_zone: Australia/Sydney
customize: !include customize.yaml
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 10.0.0.0/24
weather:
- platform: darksky
api_key: !secret darksky_key
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes/
# Enables configuration UI
config:
mobile_app:
logger:
default: warning
lovelace:
mode: yaml
resources:
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/decluttering-card/decluttering-card.js
type: module
shopping_list:
wake_on_lan:
system_health:
google_assistant:
project_id: level-mark-166706
service_account: !include service_account.json
report_state: true
#api_key: !secret google_api_key
exposed_domains:
- switch
- light
- cover
- input_boolean
- fan
- sensor
- camera
entity_config:
switch.Silvia:
expose: true
switch.plug_158d00020f3b00:
expose: true
switch.My_pc:
expose: true
switch.Gym_Speakers:
expose: true
media_player.living_room_tv:
expose: true
media_player.tunes:
expose: true
#googlehome:
# devices:
# - host: 10.0.0.16
# track_alarms: false
# track_devices: false
# #device_types: 1
# - host: 10.0.0.12
# track_alarms: false
# track_devices: false
# - host: 10.0.0.13
# track_alarms: false
# track_devices: false
cast:
map:
geo_location:
- platform: nsw_rural_fire_service_feed
entity_namespace: 'nsw_fire_service_feed'
radius: 20
categories:
- 'Emergency Warning'
- 'Watch and Act'
- 'Advice'
stream:
camera:
- platform: generic
still_image_url: http://10.0.0.10/image/jpeg.cgi
#stream_source: http://10.0.0.10/VIDEO.CGI
username: !secret camera_username
password: !secret camera_password
name: Entry Cam
- platform: bom
location: Sydney
- platform: generic
name: Garage Cam
still_image_url: !secret garage_cam_image
stream_source: !secret garage_cam_stream_lq
username: !secret camera_username
password: !secret camera_password
# - platform: generic
# still_image_url: http://www.rms.nsw.gov.au/trafficreports/cameras/camera_images/f3_windybanks.jpg
# name: M1 Windybanks
# - platform: generic
# still_image_url: http://www.rms.nsw.gov.au/trafficreports/cameras/camera_images/f3_wahroonga.jpg
# name: M1 Wahroonga
# - platform: generic
# still_image_url: http://www.rms.nsw.gov.au/trafficreports/cameras/camera_images/pacific_chats.jpg
# name: Chatswood
# - platform: generic
# still_image_url: http://www.rms.nsw.gov.au/trafficreports/cameras/camera_images/pennanthillsrd_thornleigh.jpg
# name: Thornleigh
http:
#trusted_networks:
# Uncomment this if you are using SSL or running in Docker etc
base_url: !secret base_url
ssl_certificate: !secret ssl_certificate
ssl_key: !secret ssl_key
device_tracker:
# - platform: owntracks
# max_gps_accuracy: 200
- platform: netgear
host: 10.0.0.1
username: !secret router_username
password: !secret router_password
consider_home: 900
interval_seconds: 12
track_new_devices: yes
new_device_defaults:
track_new_devices: false
- platform: bluetooth_tracker
# Checks for available updates
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
recorder:
db_url: !secret db_url
# Enables support for tracking state changes over time.
history:
include:
domains:
- light
- cover
- switch
- sensor
- binary_sensor
- plant
- person
- media_player
exclude:
entities:
- sensor.last_boot
- sensor.date
- sensor.garage_door_time_in_state
- sensor.garage_door_wifi_signal_strength
- sensor.garage_door_status
- sensor.sonarr_upcoming
- sensor.time
- sensor.illumination_7811dcb20b46
- sensor.ssl_certificate_expiry
- sensor.weather_summary
- sensor.weather_precip_probability
- sensor.bom_feels_like_c
- sensor.bom_air_temp_c
- sensor.realtime_power
- sensor.power_per_minute_mean
- sensor.hourly_total_power
#- sensor.energy_shoulder
#- sensor.energy_peak
#- sensor.energy_offpeak
- sensor.daily_supply_cost
- sensor.daily_shoulder_cost
- sensor.daily_peak_cost
- sensor.daily_offpeak_cost
- sensor.platform_1
- sensor.platform_2
- sensor.local_bus
- sensor.display_timer_remaining
- sensor.display_timer_local
- sensor.bp_normanhurst_p98
- sensor.bp_berowra_p98
- sensor.7_eleven_berowra_p98
- sensor.aquarium_monitor_last_update
# View all events in a logbook
logbook:
include:
domains:
- light
- cover
- switch
- sensor
- binary_sensor
exclude:
entities:
- sensor.last_boot
- sensor.date
- sensor.garage_door_time_in_state
- sensor.garage_door_wifi_signal_strength
- sensor.garage_door_status
- sensor.sonarr_upcoming
- sensor.time
- sensor.illumination_7811dcb20b46
- sensor.ssl_certificate_expiry
- sensor.weather_summary
- sensor.weather_precip_probability
- sensor.bom_feels_like_c
- sensor.bom_air_temp_c
- sensor.realtime_power
- sensor.power_per_minute_mean
- sensor.hourly_total_power
- sensor.energy_shoulder
- sensor.energy_peak
- sensor.energy_offpeak
- sensor.daily_supply_cost
- sensor.daily_shoulder_cost
- sensor.daily_peak_cost
- sensor.daily_offpeak_cost
- sensor.platform_1
- sensor.platform_2
- sensor.local_bus
- sensor.display_timer_remaining
- sensor.display_timer_local
- sensor.bp_normanhurst_p98
- sensor.bp_berowra_p98
- sensor.7_eleven_berowra_p98
- sensor.aquarium_monitor_last_update
# Track the sun
sun:
sensor: !include sensor.yaml
scene: !include scene.yaml
automation: !include automations.yaml
# Text to speech
tts:
platform: google_translate
mqtt:
broker: localhost
port: 1883
client_id: home-assistant-1
keepalive: 60
protocol: 3.1
discovery: true
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
switch:
# - platform: mqtt
# command_topic: "$device/80d5a43df8/channel/1-6-in"
# name: Silvia
# payload_on: '{"Method":"turnOn","params":null,"JsonRpc":"2.0"}'
# payload_off: '{"Method":"turnOff","params":null,"JsonRpc":"2.0"}'
# qos: 0
- platform: mqtt
name: "Zigbee2mqtt Main join"
state_topic: "zigbee2mqtt/bridge/config/permit_join"
command_topic: "zigbee2mqtt/bridge/config/permit_join"
payload_on: "true"
payload_off: "false"
- platform: xiaomi_miio
name: Silvia
host: 10.0.0.7
token: !secret silvia_token
- platform: xiaomi_miio
name: Gym Speakers
host: 10.0.0.8
token: !secret bathroom_fan_token
#- platform: flux
#name: flux
#lights:
#- light.study
#- light.dining_table
#- light.lounge
#- light.Bedroom
#- light.Entry
#- light.Hallway
#- light.Stairs
#mode: mired
#disable_brightness_adjust: True
- platform: wake_on_lan
name: My PC
mac: "B4:2E:99:3E:C5:5D"
host: 10.0.0.2
turn_off:
service: switch.turn_off
entity_id: switch.pc
- platform: command_line
switches:
pc:
command_off: !secret pc_shutdown_command
webostv:
host: 10.0.0.21
name: Living Room TV
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: "2C:2B:F9:32:D6:2E"
customize:
sources:
- livetv
- steamlink
- chromecast
- youtube
- foxtel
- netflix
- amazon
media_player:
- platform: gpmdp
name: Tunes
host: 10.0.0.2
notify:
- name: Pushbullet
platform: pushbullet
api_key: !secret pushbullet_key
light: !include light.yaml
group: !include groups.yaml
script: !include scripts.yaml
cover:
- platform: garadget
covers:
garage_door:
device: !secret garadget_device_id
username: !secret garadget_user
password: !secret garadget_password
name: Garage door
input_datetime:
weekday_wakeup_time:
name: Weekday Wake-up Time
has_date: false
has_time: true
initial: '06:57'
weekend_wakeup_time:
name: Weekend Wake-up Time
has_date: false
has_time: true
initial: '9:00'
input_number:
peak_tariff_rate:
name: Peak
max: 100
min: 0
initial: 53.8
step: 0.01
unit_of_measurement: c
offpeak_tariff_rate:
name: Off Peak
max: 100
min: 0
initial: 14.78
step: 0.01
unit_of_measurement: c
shoulder_tariff_rate:
name: Shoulder
max: 100
min: 0
initial: 24.21
step: 0.01
unit_of_measurement: c
input_boolean:
zigbee_permit_join:
name: Allow devices to join
initial: off
icon: mdi:cellphone-wireless
input_select:
zigbee2mqtt_log_level:
name: Zigbee2mqtt Log Level
options:
- debug
- info
- warn
- error
initial: info
icon: mdi:format-list-bulleted
timer:
zigbee_permit_join:
name: Time remaining
duration: 120
utility_meter:
energy:
source: sensor.power_meter_kwh
cycle: daily
tariffs:
- offpeak
- shoulder
- peak
#xiaomi_aqara:
# discovery_retry: 5
# gateways:
# - key: !secret xiaomi_password
person:
zone:
name: Home
latitude: !secret latitude
longitude: !secret longitude
radius: 200
icon: mdi:home
zone 2:
name: Work
radius: 200
latitude: !secret work_latitude
longitude: !secret work_longitude
icon: mdi:laptop
zone 3:
name: Main Work
radius: 200
latitude: !secret nwork_latitude
longitude: !secret nwork_longitude
icon: mdi:medical-bag
zone 4:
name: Work
radius: 200
latitude: !secret nwork2_latitude
longitude: !secret nwork2_longitude
icon: mdi:medical-bag
speedtestdotnet:
scan_interval:
hours: 4
monitored_conditions:
- ping
- download
- upload
binary_sensor:
- platform: workday
country: AU
province: NSW
plant:
basil:
sensors:
moisture: sensor.basil_moisture
temperature: sensor.basil_temperature
conductivity: sensor.basil_conductivity
brightness: sensor.basil_light_intensity
min_moisture: 30
openuv:
api_key: !secret openuv_api_key