-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfiguration.yaml
400 lines (351 loc) · 12.6 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
#######################################
# 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
# https://www.home-assistant.io/integrations/homeassistant/
############################################################
homeassistant:
# Customization file
customize: !include customize.yaml
# Note on auth_providers and packages https://www.home-assistant.io/docs/configuration/packages/#customizing-entities-with-packages
packages: !include_dir_named packages/
auth_providers:
# - type: trusted_networks
# allow_bypass_login: true
# trusted_users:
# 192.168.10.119: 740fec422e6a4886937b348ac3017f05
# trusted_networks:
# - 192.168.10.0/24
- type: homeassistant
############################################################
#
# 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:
#=== 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:
#Home Assistant Cloud - NOPE!
cloud:
# Enable web interface https://www.home-assistant.io/integrations/http
http:
server_port: 8123
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 - Home Assistant Community Add-on: Nginx Proxy Manager
- 172.30.33.0/24 # You may also provide the subnet mask - Home Assistant Community Add-on: Nginx Proxy Manager
ip_ban_enabled: true
login_attempts_threshold: 20
# 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
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
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_power_on_time
- sensor.cc_cpu_temperature
- sensor.cc_cpu_load
- automation.process_presence_incoming_webhook
entity_globs:
- input_number.irrigation* #https://github.com/kloggy/HA-Irrigation-Version2/blob/master/Pre-Requisites.md
- sensor.adguard_*
- sensor.*_last_seen # mqtt-energenie-ener314rt
- sensor.*_retries # mqtt-energenie-ener314rt
- sensor.*_last_reported # mqtt-energenie-ener314rt
# 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_power_on_time
- sensor.cc_cpu_temperature
- sensor.cc_cpu_load
- automation.process_presence_incoming_webhook
entity_globs:
- sensor.adguard_*
- sensor.*_last_seen # mqtt-energenie-ener314rt
- sensor.*_retries # mqtt-energenie-ener314rt
- sensor.*_last_reported # mqtt-energenie-ener314rt
# 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 integration
system_health:
# Meta-component integration
default_config:
# My Home Assistant integration https://www.home-assistant.io/integrations/my
# Needed for 2023 Nest
my:
# Media source integration platform allows integrations to expose media for use inside Home Assistant through the Media Browser panel or
# through supported media players like Google Cast.
media_source:
############################################################
#
# 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:
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/
climate: !include_dir_merge_list includes/mqtt/climates/
#################################################
# RFLink with keep alive fix https://github.com/home-assistant/home-assistant.io/pull/16527
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_*
- wh3_*
- wt122*
# - 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*
- fineoffset_0000_*
# Define values that can be controlled via the frontend and can be used within conditions of automation
# 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
#################################################
# Google Assistant integration.
# Every now and again have to visit this link and click TEST: https://console.actions.google.com/project/hassio-214617/accountlinking/
google_assistant:
project_id: hassio-214617
# secure_devices_pin: !secret google_assistant_secure_devices_pin
service_account: !include private/google_assistant_report_state_hassio_214617.json #Orginal
# service_account: !include private/hassio-214617-7641f87252da.json # new
# service_account: !include SERVICE_ACCOUNT2.JSON # test
report_state: true
# expose_by_default: false # Expose devices in all supported domains by default. If exposed_domains domains is set, only those domains are exposed by default.
entity_config: !include_dir_named includes/google_assistant_entity_config.yaml
exposed_domains: # This has no effect if expose_by_default is set to false.
- switch
- fan
- light
- lock
- cover
- camera
- script
- scene
- sensor
- climate
# - alarm_control_panel
# - group
# - input_boolean
# - input_select
# - humidifier
# - vacuum
# - media_player
#################################################
# Proxy video live streams through Home Assistant
stream:
# ll_hls: true
# part_duration: 1.5
# segment_duration: 10
#################################################
# Device trackers.
device_tracker:
# Google Maps migrated to ha-google-maps https://github.com/pnbruckner/ha-google-maps
# # google_maps - Uses cookie file
# - 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
# # owntracks
# - platform: owntracks
# max_gps_accuracy: 250
#################################################
# Bluetooth
# See bluetooth-proxy-m5stack-atom-lite.yaml
bluetooth:
############################################################
#
# 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 ui: !include automations.yaml # Cannot change location or filename as the automations editors only creates here!
script ui: !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 manual: !include_dir_merge_named includes/scripts #https://www.home-assistant.io/docs/configuration/splitting_configuration/#example-combine-include_dir_merge_list-with-automationsyaml
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
# https://www.home-assistant.io/integrations/universal/
media_player: !include includes/media_player.yaml
scene: !include scenes.yaml
###################################################################################################################################################
# OLD OLD
# #################################################
# # 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
# - 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!
# 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
# #################################################
# # Google Assistant integration.
# # Fallback for re-linking hass ass
# google_assistant:
# project_id: home-ass-40452
# service_account: !include SERVICE_ACCOUNT.JSON
# report_state: true
# expose_by_default: false
# entity_config:
# light.guest_bedroom_lamp_left:
# expose: true
# #################################################
# # Google Assistant integration.
# # Fallback for re-linking
# google_assistant:
# project_id: hassio-214617
# service_account: !include private/google_assistant_report_state_hassio_214617.json
# report_state: true
# expose_by_default: false
# entity_config:
# light.guest_bedroom_lamp_left:
# expose: true