forked from genestealer/Home-Assistant-Configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
591 lines (531 loc) · 17.2 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
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
#######################################
# Home-Assistant-Configuration
# https://github.com/genestealer/Home-Assistant-Configuration
# See Readme for info: https://github.com/genestealer/Home-Assistant-Configuration/blob/master/README.md
#######################################
############################################################
#
# Homeassistant Configuration
#
############################################################
homeassistant:
# # Moved to edit in GUI
# # Name of the location where Home Assistant is running
# name: Home
# # Location required to calculate the time the sun rises and sets
# latitude: !secret latitude
# longitude: !secret longitude
# # Impacts weather/sunrise data
# elevation: !secret elevation
# external_url: !secret Base_url
# internal_url: !secret internal_ip
# unit_system: metric
# # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# time_zone: Europe/London
# currency: GBP
# Customization file
customize: !include customize.yaml
#Unhide the push notifcation slider https://github.com/home-assistant/home-assistant/issues/16043
auth_providers:
- type: homeassistant
# uncomment this to enable backwards compatible API password support
# - type: legacy_api_password
# whitelist_external_dirs:
# - /www
# - /tmp
packages: !include_dir_named packages/
############################################################
#
# Standard Configuration Elements
#
############################################################
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes
# https://github.com/thomasloven/hass-browser_mod
browser_mod:
# https://github.com/thomasloven/hass-lovelace_gen
lovelace_gen:
lovelace:
mode: storage
resources:
# - type: module
# url: browser_mod.js
# - type: module
# url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
# - type: module
# url: /hacsfiles/lovelace-card-mod/card-mod.js
# - type: module
# url: /hacsfiles/button-card/button-card.js
# - type: module
# url: /hacsfiles/config-template-card/config-template-card.js
# - type: module
# url: /hacsfiles/lovelace-layout-card/layout-card.js
# - type: module
# url: /hacsfiles/lovelace-state-switch/state-switch.js
# - type: module
# url: /hacsfiles/lovelace-hui-element/hui-element.js
# - type: module
# url: /hacsfiles/lovelace-time-picker-card/time-picker-card.js
# - url: browser_mod.js
# type: js
# - url: /browser_mod.js
# type: module
# - url: browser_mod.js
# type: module
# - url: /local/community/lovelace-card-mod/card-mod.js
# type: module
# - url: /local/community/lovelace-hui-element/hui-element.js
# type: module
# - url: /local/community/button-card/button-card.js
# type: module
# - url: /local/community/config-template-card/config-template-card.js
# type: module
# - url: /local/community/mini-graph-card/mini-graph-card-bundle.js
# type: module
# - url: /local/community/lovelace-layout-card/layout-card.js
# type: module
# - url: /local/community/lovelace-state-switch/state-switch.js
# type: module
# - url: /local/community/lovelace-time-picker-card/time-picker-card.js
# type: module
# - url: /local/community/lovelace-multiple-entity-row/multiple-entity-row.js
# type: module
# - url: /local/community/stack-in-card/stack-in-card.js
# type: module
#=== FONTS
- url: https://fonts.googleapis.com/css?family=Oswald
type: css
- url: https://fonts.googleapis.com/css?family=Dosis
type: css
# Add yaml dashboards
dashboards:
lovelace-garden: #https://github.com/kloggy/HA-Irrigation-Version2/
mode: yaml
title: Garden
icon: mdi:flower
show_in_sidebar: true
filename: myirrigation.yaml
# Enables configuration UI
config:
scene: !include scenes.yaml
#Home Assistant Cloud - NOPE!
cloud:
# Enable web interface
http:
# api_password: !secret http_password
server_port: 8123
# SSL is now performed by reverse proxy
# ssl_certificate: !secret SSL_cert
# ssl_key: !secret SSL_key
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
use_x_forwarded_for: true
trusted_proxies:
- 10.0.0.200 # Add the IP address of the proxy server
- 172.30.33.0/24 # You may also provide the subnet mask
# - 192.168.10.21/24 # IP Reverse_Proxy Nginx Proxy Manager
ip_ban_enabled: true
login_attempts_threshold: 20
# # 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. (Cleared at startup)
history:
# Tracked history. Dependency of the history integration
recorder:
purge_keep_days: 64
#db_url: !secret mariadb_db_url
exclude:
# domains:
# - automation
# - updater
entities:
- sensor.date
- sensor.time
- sensor.date_time
- sensor.date_time_utc
- sensor.time_date
- sensor.time_utc
- sensor.date_time_iso
- sensor.internet_time
entity_globs: input_number.irrigation* #https://github.com/kloggy/HA-Irrigation-Version2/blob/master/Pre-Requisites.md
# View all events in a logbook. Depends on the recorder integration for storing the data.
logbook:
exclude:
entities:
- sensor.date
- sensor.time
- sensor.date_time
- sensor.date_time_utc
- sensor.time_date
- sensor.time_utc
- sensor.date_time_iso
- sensor.internet_time
- sensor.server_server_health
- sensor.unscaled_house_consumption_current
- sensor.server_server_power_on_time
- sensor.cc_cpu_temperature
- sensor.cc_cpu_load
- sensor.adguard_average_processing_speed
- sensor.adguard_dns_queries
- sensor.adguard_dns_queries_blocked_ratio
- sensor.adguard_parental_control_blocked
- sensor.adguard_safe_browsing_blocked
- sensor.adguard_safe_searches_enforced
# Enables a map showing the location of tracked devices
map:
# https://github.com/home-assistant/home-assistant/issues/1806
logger:
default: error
logs:
requests.packages.urllib3.connectionpool: critical
rflink.protocol: error #fatal
homeassistant.components.sensor.plex: fatal
urllib3.connectionpool: error
homeassistant.components.recorder: fatal
# axis: debug
# homeassistant.components.axis: debug
homeassistant.components.rest: debug
system_health:
default_config:
############################################################
#
# Components
#
############################################################
# Track the sun.
sun:
# elevation: !secret elevation
# Text to speech.
tts:
- platform: google_translate
service_name: google_translate_say
# Use external MQTT broker.
mqtt:
# broker: !secret mqtt_broker
# port: 1883
# client_id: home-assistant
# keepalive: 60
# username: !secret mqtt_username
# password: !secret mqtt_password
# discovery: true
binary_sensor: !include_dir_merge_list includes/mqtt/binary_sensors/
cover: !include_dir_merge_list includes/mqtt/covers/
sensor: !include_dir_merge_list includes/mqtt/sensors/
switch: !include_dir_merge_list includes/mqtt/switches/
light: !include_dir_merge_list includes/mqtt/lights/
# Push notification providers.
notify:
- name: Google Cloud Notify
platform: html5
# gcm_api_key: !secret gcmKey
# gcm_sender_id: !secret gcmID
vapid_pub_key: !secret vapid_pub_key
vapid_prv_key: !secret vapid_prv_key
vapid_email: !secret vapid_email
# Sep 2022, swapped integration (which has yet to support more than one user key)
# - platform: pushover
# name: Pushover Notify
# api_key: !secret pushover_api_key
# user_key: !secret pushover_user_key
# - platform: pushover
# name: Pushover Notify Doorbell
# api_key: !secret pushover_api_key_doorbell
# user_key: !secret pushover_user_key
# - name: Facebook Notify
# platform: facebook
# page_access_token: !secret FB_Key
# #Google Nest integration.
# nest:
# client_id: !secret nest_id
# client_secret: !secret nest_secret
# # climate:
# # - platform: nest
# # - platform: generic_thermostat
# # name: Bunny Shed Thermostat
# My Home Assistant integration https://www.home-assistant.io/integrations/my
# Needed for 2023 Nest
my:
# Device trackers.
device_tracker:
# - platform: owntracks
# max_gps_accuracy: 250
- platform: google_maps # Elements per day’ to a limit of 645.
username: !secret google_maps_username
# - platform: google_maps # Elements per day’ to a limit of 645.
# username: !secret google_maps_username2 # Removed second account, due to moving to using the HA Android App
# Example configuration.yaml entry
# - platform: bluetooth_tracker
# Moved to integrations UI from Rev 0.112
# - platform: tile
# username: !secret tile_username
# password: !secret tile_password
# password: !secret google_maps_password
# - platform: googlehome
# host: !secret google_home_hub_ip
# - platform: ping
# hosts:
# hostone: 192.168.1.16
# - platform: snmp
# host: 192.168.1.1
# community: public
# baseoid: 1.3.6.1.2.1.2.2
# RFLink gateway integration, via ethernet bridge.
# Try socat pty,link=/config/serialport-rflink,echo=0 tcp:x.x.x.x:xxxx,forever,reuseaddr,keepalive,keepidle=10,keepintvl=10,keepcnt=2
# https://github.com/home-assistant/core/issues/23577
# Will not work, as socat is not in HASSIO!
rflink:
host: !secret RF_Link_IP
port: !secret RF_Link_Port
wait_for_ack: true
reconnect_interval: 10 # seconds
tcp_keepalive_idle_timer: 60 # seconds
ignore_devices:
- owl_cm113_ead1_current3
- owl_cm113_ead1_current1
- ev1527_*
# - sensor.owl_cm113_ea7f_current2
# - sensor.owl_cm113_ea7f_current3
# - sensor.owl_cm113_ea9f_current2
# - sensor.owl_cm113_ea9f_current3
# - sensor.owl_cm130_007f_kwatt
- sensor.v2phoenix_*
- light.drayton_*
- light.elrodb_*
- light.mertik_*
- light.drayton_*
- light.btf_*
- light.v2phoenix*
# Google Assistant intergration.
# Every now and again have to visit this link and lick TEST: https://console.actions.google.com/project/hassio-214617/accountlinking/
google_assistant:
project_id: !secret google_assistant_project_id
# api_key: !secret google_assistant_api_key # deprecated and will be removed in 0.105
service_account: !include private/report_state Home Assistant hassio-214617-7388b38a261c.json
report_state: true
expose_by_default: true # Expose devices in all supported domains by default. If exposed_domains domains is set, only those domains are exposed by default.
exposed_domains: # This has no effect if expose_by_default is set to false.
- alarm_control_panel
- switch
# - input_boolean
# - input_select
- fan
- light
- lock
- cover
- camera
- script
- scene
- sensor
# - humidifier
# - vacuum
# - media_player
- climate
# - group
entity_config:
# script.bedroom_lights_night_mode:
# expose: true
# script.front_garden_lawn_irrigation_timer:
# expose: true
# script.front_garden_pot_irrigation_timer:
# expose: true
# script.back_garden_irrigation_timer:
# expose: true
# script.back_garden_lawn_irrigation_timer:
# expose: true
# climate.entryway:
# expose: false
# group.all_automations:
# expose: false # Hide this to avoid telling Google Assistant to shut down everything, it disabling all automations.
# group.all_covers:
# expose: false
# group.all_lights:
# expose: false
# group.all_switchs:
# expose: false
# group.all_scripts:
# expose: false
# group.automation_system_view:
# expose: false
# group.bathroom_towel_rail_group:
# expose: false
# group.bathroom_view:
# expose: false
# group.bedroom_guest:
# expose: false
# group.bedroom_master:
# expose: false
# group.bunny_shed_controller_info_group:
# expose: false
# group.bunny_shed_group:
# expose: false
# group.bunny_shed_settings:
# expose: false
# group.bunny_shed_view:
# expose: false
# group.rf_link_group:
# expose: false
# # group.server_ilo_status_group:
# # expose: false
# group.groups:
# expose: false
# group.media_players:
# expose: false
# group.media_player:
# expose: false
# switch.adguard_filtering:
# expose: false
switch.adguard_parental_control:
expose: false
switch.adguard_safe_browsing:
expose: false
switch.adguard_safe_search:
expose: false
# Not needed since release 0.80
# client_id: !secret google_assistant_client_id
# access_token: !secret google_assistant_access_token
# Proxy video live streams through Home Assistant
stream:
# ll_hls: true
# part_duration: 1.5
# segment_duration: 10
# utility_meter:
# energy_cumulative_month:
# source: sensor.esp_doorbell_elec_mon_house_power_meter
# cycle: monthly
# # tariffs:
# # -
# energy_cumulative_daily:
# source: sensor.esp_doorbell_elec_mon_house_power_meter
# cycle: daily
# # https://github.com/bramstroker/homeassistant-powercalc
# powercalc:
# scan_interval: 00:01:00 #Each minute
# power_sensor_naming: "{} Powersensor"
# create_energy_sensors: false
############################################################
#
# Includes
# Merge named https://home-assistant.io/docs/configuration/splitting_configuration/
#
############################################################
# Single Files
zone: !include includes/zone.yaml
shell_command: !include includes/shell_commands.yaml
automation: !include automations.yaml # Cannot change location or filename as the automations editors only creates here!
script: !include scripts.yaml
# Merge List
# automation old: !include_dir_merge_list includes/automation
sensor: !include_dir_merge_list includes/sensors
light: !include_dir_merge_list includes/lights
binary_sensor: !include_dir_merge_list includes/binary_sensors
switch: !include_dir_merge_list includes/switch
cover: !include_dir_merge_list includes/cover
# camera: !include_dir_merge_list includes/cameras
template: !include_dir_merge_list includes/template
# Merge named dir
# script: !include_dir_merge_named includes/scripts
input_boolean: !include_dir_merge_named includes/input_boolean
input_select: !include_dir_merge_named includes/input_select
input_number: !include_dir_merge_named includes/input_number
rest_command: !include_dir_merge_named includes/rest_commands
# Merge Named
group: !include includes/groups.yaml
# https://www.home-assistant.io/integrations/alert/
alert: !include includes/alert.yaml
# Plex Sensor
# plex:
# host: !secret plex_server_host
# token: !secret plex_server_key
# weblink:
# entities:
# - name: Router
# url: !secret RouterIP
# icon: mdi:router-wireless
#
# - name: uTorrent
# url: !secret uTorrentIP
# icon: mdi:download
#
# - name: SickRage
# url: !secret SickRageIP
# icon: mdi:monitor
#
# - name: CouchPotato
# url: !secret CouchPotatoIP
# icon: mdi:filmstrip
#
# - name: Server Glances
# url: !secret server_glancesIP
# icon: mdi:format-list-bulleted
# #NOT WORKING!
# alexa:
# intents:
# LocateIntent:
# action:
# service: notify.notify
# data_template:
# message: "The location of {{ User }} has been queried via Alexa."
# data:
# title: "Home Assistant"
# sound: falling
# device: pixel
# url: !secret web_address
# speech:
# type: plaintext
# text: >
# {%- for state in states.device_tracker -%}
# {%- if state.name.lower() == User.lower() -%}
# {{ state.name }} is currently at {{ state.state }}
# {%- endif -%}
# {%- else -%}
# I am sorry, I do not know where {{ User }} is.
# {%- endfor -%}
# card:
# type: simple
# title: Sample title
# content: Some more content
# alexa:
# intents:
# LocateIntent:
# action:
# service: notify.notify
# data_template:
# message: The location of {{ User }} has been queried via Alexa.
# speech:
# type: plaintext
# text: >
# {%- for state in states.device_tracker -%}
# {%- if state.name.lower() == User.lower() -%}
# {{ state.name }} is at {{ state.state }}
# {%- endif -%}
# {%- else -%}
# I am sorry, I do not know where {{ User }} is.
# {%- endfor -%}
# card:
# type: simple
# title: Sample title
# content: Some more content
#
# #NOT WORKING!
# api:
# intents:
# GetTemperature:
# speech: The temperature at home is {{ states.sensor.kitchen_temperature.state }} degrees
# async_action: False
# # action:
# # service: notify.notify
# # data_template:
# # message: Api.ai has send a request
# Needed for kloggy/HA-Irrigation-Version2 https://github.com/kloggy/HA-Irrigation-Version2/blob/master/Pre-Requisites.md
input_text:
notifications_user1_name:
min: 0
max: 20
notifications_user2_name:
min: 0
max: 20
media_source: