-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
178 lines (151 loc) · 4.37 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
# TODO:
# - duck dns
# - youtube
# https://community.home-assistant.io/t/play-youtube-on-smart-tv/101407/43
# https://www.home-assistant.io/integrations/media_extractor/
# - nicer sysinfo
# https://community.home-assistant.io/t/history-graph-with-min-and-max-horizontal-lines/119677/5
# - group for light + TV
# - config examples
# https://github.com/geekofweek/homeassistant
# - upgrade
# python -m pip install --upgrade homeassistant homeassistant-cli
# - on battery - 794296394
# 480mAh - 2021-11-20T15:38 -> 2021-12-20T16:57
# 400mAh - 2021-12-20T18:43 -> 2022-01-13T09:02
# 480mAh - 2022-01-14T12:58 -> 2022-07-02T19:12
# 480mAh - 2022-07-02T21:12 -> 2022-08-02T23:07
# 480mAh - 2022-08-02T23:07 ->
# BACKUP:
# create backup:
# backup_file=/tmp/hass_`date +"%FT%T"`.bundle
# git bundle create $backup_file <branch>
# scp $backup_file <user>@<host>:backup/hass-backup
# OR rsync -avzl --exclude {*db,*shm,*wal,*fault,*~} ~/homeassistant/conf <user>@<host>:backup/hass_backup
# recreate from bundle
# git clone `bundle` repo
# dependencies:
# apt:
# - mosquitto-clients, mosquitto, python3-rpi.gpio, python3-spidev, python3-pip
# - python3-paho-mqtt, python3-dbus, python3-gi, letsencrypt, libsqlite3-dev, git
# - nginx (reverse proxy)
# https://iotechonline.com/home-assistant-access-with-nginx-proxy-and-lets-encrypt/?cn-reloaded=1
# python-3.10 (compile/install)
# pip venv:
# - telebot
# Configure a default setup of Home Assistant (frontend, api, etc)
#default_config:
# Individual options represented by default_config
#cloud:
#logbook:
#map:
#ssdp:
#zeroconf:
api:
backup:
config:
energy:
frontend:
history:
input_datetime:
input_select:
mobile_app:
sun:
system_health:
zone:
homeassistant:
name: Home
unit_system: metric
currency: GBP
time_zone: Europe/London
latitude: !secret home_latitude
longitude: !secret home_longitude
customize: !include customise.yaml
# external_url: !secret external_url
# internal_url: !secret internal_url
packages: !include_dir_named packages/
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
# - fd00::/8
# - fe80::/8
allow_bypass_login: true
trusted_users:
192.168.1.0/24:
# David
- f566f23f959541a7b8060b9a6d842e93
# Luke
- dcff045ad0ac4aed8b4ba261fc679118
# Sara
- ebe476cf675d4efc8dbcd66bae1a9114
- type: homeassistant
# http:
# # api_password: !secret http:password
# use_x_forwarded_for: true
# trusted_proxies:
# - 127.0.0.1
# # - 192.168.1.80
# ip_ban_enabled: true
# login_attempts_threshold: 5
automation: !include_dir_merge_list automation/
group: !include groups.yaml
lovelace: !include ui/lovelace.yaml
person: !include person.yaml
recorder: !include recorder.yaml
# script: !include scripts.yaml
# scene: !include scenes.yaml
logger:
default: warning
device_tracker:
- platform: bt_home_hub_5
host: 192.168.1.254
interval_seconds: 200
consider_home: 300
new_device_defaults:
track_new_devices: false
utility_meter: !include utility_meter.yaml
# # https://www.dummylabs.com/post/2019-01-13-influxdb-part1/
# influxdb:
# api_version: 1
# ssl: false
# host: 192.168.1.99
# port: 8086
# username: openhab
# password: openhab
# database: openhab_db
# # exclude:
# # entity_globs: '*'
# include:
# entities:
# - switch.heating_switch
# - input_number.heating_temp_set
# # TODO: should include via group.g_heating
# - switch.heating_boost
# - switch.heating_sched
# - switch.heating_pwm
# - group.g_present
# entity_globs:
# - switch.plug*
# - sensor.794296394_*
# # domains:
# # - group.g_plugs
# # - switch
# setup via ui
# weather:
# - platform: openweathermap
# api_key: !secret openweathermap_key
mqtt:
# broker: homeassistant
# port: 1883
light: !include lights.yaml
switch: !include switches.yaml
binary_sensor:
- platform: workday
country: GB
input_boolean:
# enable holiday mode
holiday_mode:
name: Holiday Mode
switch_off_lr:
name: Switch Off