forked from DavidFW1960/home-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
371 lines (339 loc) · 10.1 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
# Default Config
# https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/default_config/manifest.json
# documentation: https://www.home-assistant.io/integrations/default_config
default_config:
homeassistant:
# Customization file
customize: !include customize.yaml
# customize_glob: !include customize_glob.yaml
# Fuel Monitor, System Monitor, Sun, Moon, Transport, Weather, Updates, Fire Incidents, Recycling Night, Themes Packages
packages: !include_dir_named packages
# LimitlessLED use slider switch
customize_domain:
light:
assumed_state: false
# Auth & 2FA
auth_mfa_modules:
- type: notify
- type: totp
auth_providers:
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- !secret my_ipv4_network
- fd00::/8
- !secret zerotier_network
- !secret my_ipv6_network
- !secret ben_ipv6_network
trusted_users:
127.0.0.1: !secret user_id
"::1": !secret user_id
!secret trusted_ipv4: !secret user_id
"fd00::/8": !secret user_id
!secret trusted_ipv6: !secret user_id
!secret ben_trusted_ipv6: !secret user_id
!secret zerotier_network: !secret user_id
allow_bypass_login: true
- type: homeassistant
# Python
# python_script:
# LG TV
webostv:
host: !secret weboslgtv
name: LG-TV Lounge Room
# Device Trackers iPhone Detect
device_tracker:
- platform: iphonedetect
consider_home: 60
hosts:
hostname1: !secret david_iphone
hostname2: !secret david_ipad
hostname3: !secret liz_iphone
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes
# HTML5 Push Notifications
notify:
- platform: html5
name: html5_notify
vapid_pub_key: !secret vapid_pub
vapid_prv_key: !secret vapid_priv
vapid_email: !secret vapid_email
- platform: group
name: David iOS Notify
services:
- service: mobile_app_davids_iphone
data:
data:
push:
sound:
name: default
- service: mobile_app_david_s_ipad
data:
data:
push:
sound:
name: default
http:
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- ::1
ip_ban_enabled: true
login_attempts_threshold: 5
# Logger
logger:
default: warn #warn
logs:
# TransportNSW.transportnsw: error
custom_components.sensor.authenticated: debug
homeassistant.components.analytics : info
# custom_components.iphonedetect: debug
# homeassistant.components.http.view: error
# hacs: debug ###Now Enable in HACS options
# homeassistant.components.here_travel_time: debug
# homeassistant.components.zeroconf: debug
# pyipp: debug
# homeassistant.components.ssdp: debug
# homeassistant.components.fritzbox: debug
# pyfritzhome: debug
# homeassistant.components.mobile_app: debug
# homeassistant.components.webhook: debug
# homeassistant.components.http: debug
# iFrame/Panel Custom
panel_iframe:
portainer:
title: Portainer
icon: mdi:docker
url: !secret portainer
tasmoadmin:
title: Tasmo Admin
icon: mdi:lightbulb-on
url: !secret tasmoadmin
mdiindex:
title: MDI Icon Index
icon: mdi:vector-square
# url: https://cdn.rawgit.com/james-fry/home-assistant-mdi/efd95d7a/home-assistant-mdi.html
url: https://dev.materialdesignicons.com/icons
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
exclude:
domains:
- automation
- binary_sensor
- geo_location
entities:
- sensor.busmonitor1
- sensor.busmonitor
- sensor.trainmonitor1
- sensor.trainmonitor2
- sensor.centralgosford
- sensor.gosfordcentral
- sensor.karionggosford
- sensor.gosfordkariong
- sensor.systemuptime
# Sensors
sensor:
# Authentication Sensor
- platform: authenticated
enable_notification: true
provider: 'ipapi'
exclude:
- !secret my_ipv4_network
- fd00::/8
- !secret zerotier_network
- !secret my_ipv6_network
- !secret ben_ipv6_network
- 2001:4860:4000::/36 # Google
# Sql Sensor
- platform: sql
db_url: !secret sqlurl
queries:
- name: DB size
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024 / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
column: "value"
unit_of_measurement: MB
# Home Assistant Uptime
- platform: uptime
name: HA Uptime
# HERE Travel Time
- platform: here_travel_time
api_key: !secret here_api_key
name: Travel to Home
origin_entity_id: person.david
destination_entity_id : zone.home
# Alarm Emails
- platform: imap
name: Alarm Triggers
server: imap.gmail.com
port: 993
username: !secret outlooksyncuser
password: !secret outlooksyncpass
folder: inbox
search: !secret alarmnotification
# Radarr and Upcoming Media
- platform: radarr
api_key: !secret my_radarr_api
host: !secret my_radarr_host
port: !secret my_radarr_port
monitored_conditions:
- movies
- upcoming
# - commands
- status
days: 10
- platform: sonarr_upcoming_media
api_key: !secret my_sonarr_api
host: !secret my_sonarr_host
port: !secret my_sonarr_port
days: 60
ssl: false
max: 10
- platform: radarr_upcoming_media
api_key: !secret my_radarr_api
host: !secret my_radarr_host
port: !secret my_radarr_port
days: 120
ssl: false
theaters: true
max: 10
# SSL Certificates Expiry Days
- platform: template
sensors:
cert_expiry_ha_domain_days:
friendly_name: 'SSL Certificate Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_ha_domain', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_ha_domain')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
- platform: template
sensors:
cert_expiry_cockpit_days:
friendly_name: 'SSL Cockpit Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_cockpit', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_cockpit')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
- platform: template
sensors:
cert_expiry_glances_days:
friendly_name: 'SSL Glances Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_glances', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_glances')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
- platform: template
sensors:
cert_expiry_logviewer_days:
friendly_name: 'SSL Logviewer Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_logviewer', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_logviewer')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
- platform: template
sensors:
cert_expiry_portainer_days:
friendly_name: 'SSL Portainer Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_portainer', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_portainer')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
- platform: template
sensors:
cert_expiry_tasmoadmin_days:
friendly_name: 'SSL Tasmoadmin Expiry Days'
value_template: >-
{% if is_state('sensor.cert_expiry_tasmoadmin', 'unavailable') %}
unavailable
{% else %}
{{ (as_timestamp(states('sensor.cert_expiry_tasmoadmin')) - as_timestamp( now())) | timestamp_custom('%-j') }}
{% endif %}
# Artisan Charge
- platform: mqtt
name: "Artisan Events"
state_topic: "artisan"
icon: mdi:coffee
value_template: "{{ value_json.state }}"
# SABnzbd
sabnzbd:
api_key: !secret my_sabnzbd_api
host: !secret my_sab_host
port: 8080
ssl: false
sensors:
- current_status
- speed
- queue_size
- queue_remaining
- disk_size
- disk_free
- queue_count
- day_size
- week_size
- month_size
- total_size
# Text to speech
tts:
- platform: google_translate
# Switches
switch:
# Template Switch for Harmony Remote
- platform: template
switches:
harmony:
value_template: "{{ not is_state_attr('remote.harmony_hub', 'current_activity', 'PowerOff') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.harmony_hub
activity: 'Watch DTV'
turn_off:
service: remote.turn_on
data:
entity_id: remote.harmony_hub
activity: 'PowerOff'
# Binary Switch for Home and Away Automations, Alarm & Garage Door, Overtime & Holiday
input_boolean:
homeandawayauto:
name: Home and Away Automations
alarmgaragedoor:
name: Alarm arm/disarm and Garage door shut/open
overtime:
name: Overtime
holiday:
name: Holiday
lizcovid:
name: Liz Home or Work
retrigger:
name: Retrigger Docker Containers Restart
# Clear Out Gmail Alarm Notifications & Clean Known Devices file
shell_command:
removealarm: python /config/emptyinbox.py
clean_knowndevices: /bin/bash /config/clean_knowndevices.sh
remove_ip_bans: /bin/bash /config/remove_bans.sh
media_player:
- platform: onkyo
host: !secret onkyo
recorder: !include recorder.yaml
#google_assistant: !include google_assistant.yaml
cloud: !include google_assistant_nabu.yaml
light: !include lights.yaml
group: !include groups.yaml
scene: !include scenes.yaml
automation: !include automations.yaml
script: !include scripts.yaml