-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
523 lines (501 loc) · 15.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
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
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 vistasea_latitude
longitude: !secret vistasea_longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 15
# metric for Metric, imperial for Imperial
unit_system: imperial
# Country
country: US
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Los_Angeles
# Currency:
currency: USD
internal_url: "https://192.168.32.161:8123"
# Customization file
customize: !include customize.yaml
customize_glob: !include customize_glob.yaml
allowlist_external_dirs:
- /config
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
#
# Discover some devices automatically
discovery:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
http:
ssl_certificate: !secret ssl_certificate
ssl_key: !secret ssl_key
#netgear_lte:
# - host: !secret lte_modem_host
# password: !secret lte_modem_pass
# #scan_interval: 60
# sensor:
# monitored_conditions:
# - usage
# - connection_text
# - radio_quality
# - rx_level
# - tx_level
# - current_band
influxdb:
api_version: 2
ssl: false
host: 192.168.32.61
port: 8086
token: 72f938dc9fb7c3323094faf2fc1b4e42a60e871e1327709ade4240a6495bfffb
organization: tworoads.net
bucket: homeassistant_core
telegram_bot:
# - platform: broadcast
- platform: polling
api_key: !secret telegram_apikey
parse_mode: html # otherwise '_' are interpreted as for italics in msg parser
allowed_chat_ids:
- !secret telegram_chatid
- !secret telegram_userid
notify:
- name: telegram_vistasea
platform: telegram
api_key: !secret telegram_apikey
chat_id: !secret telegram_chatid #first chat Group "HA Vistasea"
camera:
- platform: local_file
name: Front Yard Snapshot
file_path: /config/www/snapshots/vs_front_yard.png
- platform: local_file
name: Back Yard Snapshot
file_path: /config/www/snapshots/vs_back_yard.png
device_tracker:
- platform: mqtt_json
devices:
srp_iphone_ios: 'location/phone/srp_iphone_ios'
audi_a6_gps: 'location/car/audi_a6_gps'
audi_q7_gps: 'location/car/audi_q7_gps'
toyota_rav4_gps: 'location/car/toyota_rav4_gps'
logger:
default: info
logs:
homeassistant.components.automation: warning
#homeassistant.components.venstar: debug
#homeassistant.config: debug
#homeassistant.components.telegram_bot: debug
#aiounifi: debug
#homeassistant.components.unifi: debug
envisalink:
host: !secret envisalink_host
panel_type: HONEYWELL
user_name: user
password: user
code: '3071'
port: 4025
evl_version: 4
keepalive_interval: 60
zonedump_interval: 20
timeout: 10
zones:
10:
name: 'Front Door'
type: 'door'
11:
name: 'Back Door'
type: 'door'
12:
name: 'Upper Deck Door'
type: 'door'
13:
name: 'Bedroom Door'
type: 'door'
14:
name: 'Garage Door'
type: 'door'
20:
name: 'Laundry Room Smoke'
type: 'smoke'
21:
name: 'Lower Hall Smoke'
type: 'smoke'
22:
name: 'Upper Hall Smoke'
type: 'smoke'
23:
name: 'Garage Smoke'
type: 'smoke'
27:
name: 'Lower Motion'
type: 'motion'
28:
name: 'Upper Motion'
type: 'motion'
29:
name: 'Garage Motion'
type: 'motion'
partitions:
1:
name: 'House Alarm'
2:
name: 'Garage Alarm'
input_boolean:
guest_mode:
name: Guest Mode
input_number:
gas_level:
name: Gas Level
min: 0
max: 100
step: 1
mode: box
mqtt:
sensor:
- state_topic: room-assistant/status/livingroom
unique_id: room_assistant_livingroom
name: "Room Assistant Livingroom"
- state_topic: room-assistant/status/loft
unique_id: room_assistant_loft
name: "Room Assistant Loft"
- state_topic: room-assistant/status/master
unique_id: room_assistant_master
name: "Room Assistant Master"
- state_topic: room-assistant/status/garage
unique_id: room_assistant_garage
name: "Room Assistant Garage"
- state_topic: environment/vistasea_garage/BME280_temperature
unique_id: garage_temperature
name: 'Garage Temperature'
- state_topic: 'environment/vistasea_garage/BME280_humidity'
unique_id: garage_humidity
name: 'Garage Humidity'
- state_topic: 'environment/vistasea_garage/BME280_pressure'
unique_id: garage_pressure
name: 'Garage Pressure'
unit_of_measurement: 'hPa'
- state_topic: 'environment/vistasea_garage/BME280_sealevel_pressure'
unique_id: garage_sealevel_pressure
name: 'Garage Sealevel Pressure'
unit_of_measurement: 'hPa'
- state_topic: 'environment/vistasea_master/BME280_temperature'
unique_id: master_temperature
name: 'Master Temperature'
- state_topic: 'environment/vistasea_master/BME280_humidity'
unique_id: master_humidity
name: 'Master Humidity'
- state_topic: 'environment/vistasea_master/BME280_pressure'
unique_id: master_pressure
name: 'Master Pressure'
unit_of_measurement: 'hPa'
- state_topic: 'environment/vistasea_master/BME280_sealevel_pressure'
unique_id: master_sealevel_pressure
name: 'Master Sealevel Pressure'
unit_of_measurement: 'hPa'
- name: "Zigbee2MQTT Bridge Status"
unique_id: zigbee2mqtt_bridge_status
state_topic: "zigbee2mqtt/bridge/state"
icon: mdi:clock-outline
- name: "Zigbee2MQTT Verion"
unique_id: zigbee2mqtt_version
icon: mdi:numeric-1-box-multiple-outline
state_topic: "zigbee2mqtt/bridge/info"
value_template: "{{ value_json.version }}"
- name: "Zigbee Channel"
unique_id: zigbee_channel
state_topic: "zigbee2mqtt/bridge/info"
icon: mdi:numeric
value_template: "{{ value_json.network.channel }}"
- name: "Zigbee2MQTT Device Count"
unique_id: zigbee2mqtt_device_count
icon: mdi:numeric
state_topic: "zigbee2mqtt/bridge/info"
value_template: "{{ value_json.config.devices | count }}"
- name: "Zigbee2MQTT Defined Groups"
unique_id: zigbee2mqtt_defined_groups
icon: mdi:numeric
state_topic: "zigbee2mqtt/bridge/info"
value_template: "{{ value_json.config.groups | count }}"
# Sensors
sensor:
# - platform: helium
# hotspots:
# - 112YavLSSEvDt1HpmABL5rPGRhNXD3ki2gttukjpbLqhjWBgHtiG
- platform: gpsd
name: Vistasea GPS
host: 192.168.32.157
scan_interval: 60
- platform: rest
# All of these seem to use the same IP
resource: http://192.168.12.1/TMI/v1/gateway?get=all
scan_interval: 60
method: GET
name: tmhi_radio_status
json_attributes:
- signal
- device
- time
value_template: "{{ value_json.device.isEnabled }}"
# - platform: mqtt
# name: bme280 Garage
# state_topic: "environment/vistasea_garage/SENSOR"
# value_template: "{{ value_json['BME280'].Temperature }}"
# json_attributes_topic: "environment/vistasea_garage/SENSOR"
# availability_topic: "environment/vistasea_garage/LWT"
# payload_available: "Online"
# payload_not_available: "Offline"
# unit_of_measurement: 'F'
# Weewx Weather
- platform: rest
resource: http://192.168.32.157/weewx/daily.json
name: Weewx Weather
scan_interval: 150
force_update: true
json_attributes:
- time
- current
- almanac
value_template: '{{ value_json.location }}'
- platform: rest
name: "Vera House Mode"
resource: !secret vera_resource
method: "GET"
scan_interval: 15
value_template: >-
{% set mapper = {
'1' : 'Home',
'2' : 'Away',
'3' : 'Night',
'4' : 'Vacation' } %}
{{ mapper[value] }}
- platform: rest
name: "Massive Chambray Buffalo LED"
unique_id: massive_chambray_buffalo_led
scan_interval: 300 # 5 min
resource: !secret bobcat_led
value_template: "{{value_json.led}}"
# Local System monitor
- platform: systemmonitor
resources:
- type: memory_use_percent
- type: swap_use_percent
- type: disk_use_percent
arg: /
- type: processor_use
- type: load_1m
- type: last_boot
- type: processor_temperature
# - platform: noaa_tides
# station_id: 9446489
# Time and date
- platform: time_date
display_options:
- 'time'
- 'date'
# - 'date_time'
# - 'date_time_utc'
# - 'date_time_iso'
# - 'time_date'
# - 'time_utc'
- platform: snmp
host: 192.168.32.162
baseoid: 1.3.6.1.2.1.25.1.8.1
name: raspi_livingroom_vs_cpu_temperature
scan_interval: 60
accept_errors: true
value_template: "{{ value }}"
unit_of_measurement: " °C"
- platform: snmp
host: 192.168.32.163
baseoid: 1.3.6.1.2.1.25.1.8.1
name: raspi_garage_vs_cpu_temperature
scan_interval: 60
accept_errors: true
value_template: "{{ value }}"
unit_of_measurement: " °C"
# - platform: snmp
# host: 192.168.30.1
# baseoid: 1.3.6.1.4.1.88888.1.1.16.1.1.2.101.1
# name: Mofi4500 LTE Band
# version: 2c
# scan_interval: 23
# accept_errors: true
# value_template: "{{ value }}"
# - platform: snmp
# host: 192.168.30.1
# version: 2c
# name: Mofi4500 LTE RSRQ
# unit_of_measurement: 'dB'
# baseoid: 1.3.6.1.4.1.88888.1.1.16.1.1.4.101.1
# accept_errors: true
# scan_interval: 27
# value_template: '{{value | float}}'
# - platform: snmp
# host: 192.168.30.1
# version: 2c
# name: Mofi4500 LTE RSRP
# unit_of_measurement: 'dB'
# baseoid: 1.3.6.1.4.1.88888.1.1.16.1.1.5.101.1
# accept_errors: true
# scan_interval: 27
# value_template: '{{value | float}}'
- platform: snmp
# host: 192.168.30.1
host: 192.168.32.254
version: 2c
name: TMHI 5G Usage
scan_interval: 23
unit_of_measurement: 'MiB'
# baseoid: 1.3.6.1.4.1.88888.1.1.16.1.1.7.101.1
baseoid: 1.3.6.1.4.1.8072.1.3.2.4.1.2.10.119.97.110.95.117.115.97.103.101.0.1
accept_errors: true
value_template: '{{value | float(default=0)}}'
- platform: snmp
name: erx_wan_in
host: 192.168.32.254
baseoid: 1.3.6.1.2.1.31.1.1.1.6.4
community: public
version: '2c'
scan_interval: 10
accept_errors: true
- platform: snmp
name: erx_wan_out
host: 192.168.32.254
baseoid: 1.3.6.1.2.1.31.1.1.1.10.4
community: public
version: '2c'
scan_interval: 10
accept_errors: true
- platform: derivative
name: erx_wan_in_derivative
source: sensor.erx_wan_in
unit_time: s
unit: B
- platform: derivative
name: erx_wan_out_derivative
source: sensor.erx_wan_out
unit_time: s
unit: B
# - platform: statistics
# name: erx_wan_in_statistics
# entity_id: sensor.erx_wan_in
# sampling_size: 86400
# max_age: 24:00:00
# - platform: statistics
# name: erx_wan_out
# entity_id: sensor.erx_wan_out
# sampling_size: 86400
# max_age: 24:00:00
- platform: statistics
name: tmhi_5g_statistics
entity_id: sensor.tmhi_5g_usage
state_characteristic: change
sampling_size: 28800
max_age:
hours: 24
- platform: history_stats
name: Heat Pump Duty Cycle
entity_id: binary_sensor.heat_pump_status
state: "on"
type: ratio
#start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
duration:
hours: 24
- platform: history_stats
name: Heat Pump Time On
entity_id: binary_sensor.heat_pump_status
state: "on"
type: time
#start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
duration:
hours: 24
- platform: history_stats
name: Heat Pump On Count
entity_id: binary_sensor.heat_pump_status
state: "on"
type: count
#start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
duration:
hours: 24
- platform: integration
source: sensor.ups_current_power
name: UPS Current Energy
unit_prefix: k
unit_time: h
round: 2
utility_meter:
daily_energy:
source: sensor.house_total_energy
cycle: daily
monthly_energy:
source: sensor.house_total_energy
cycle: monthly
input_select:
home_status:
name: Home Status
options:
- Home
- Arrived
- Left
- Away
- Night
- Guest
- Vacation
initial: Home
# NWS weather
#weather:
# - platform: nws
# mode: hourly # default daynight
# api_key: [email protected]
weather:
- platform: darksky
api_key: !secret darksky_api
mode: daily
scan_interval:
minutes: 15
lovelace:
mode: yaml
resources:
- url: /hacsfiles/bignumber-card/bignumber-card.js
type: module
- url: /hacsfiles/simple-thermostat/simple-thermostat.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/secondaryinfo-entity-row/secondaryinfo-entity-row.js
type: module
- url: /hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js
type: module
- url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/home-assistant-sun-card/home-assistant-sun-card.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/compass-card/compass-card.js
type: module
- url: /hacsfiles/battery-state-card/battery-state-card.js
type: module
frontend:
extra_module_url:
- /hacsfiles/lovelace-card-mod/card-mod.js
history: !include history.yaml
recorder: !include recorder.yaml
group: !include groups.yaml
zone: !include zones.yaml
#binary_sensor: !include binary_sensors.yaml
automation: !include automations.yaml
automation split: !include_dir_list automations
template: !include templates.yaml
rest_command: !include rest.yaml
scene: !include scenes.yaml
script: !include scripts.yaml