-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
269 lines (236 loc) · 6.76 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
default_config:
lovelace:
mode: storage
homeassistant:
customize: !include customize.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
cors_allowed_origins:
- https://unpkg.com
- https://unpkg.com/lit-html@1/directives/style-map.js?module
- https://unpkg.com/lit-html@1/directives/if-defined?module
- https://unpkg.com/lit-html@%5E1.0.0?module
- https://unpkg.com/lit-html@1/directives/style-map.js?module
frontend:
themes: !include_dir_merge_named themes
logger:
default: info
# Text to speech; uses google translate to convert to mp3
tts:
- platform: google_translate
language: 'nl'
# Push history to mariadb instead of the default sqlite. Keep history for 15 days.
# Older history is gradually pushed into influxdb.
recorder:
purge_keep_days: 15
db_url: !secret recorder_db_url
# configure influxdb connection.
influxdb:
host: localhost
port: 8086
database: homeassistant
username: !secret influx_username
password: !secret influx_password
max_retries: 3
default_measurement: state
# various includes for groups, automation and scenes.
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# notify configuration using google firebase; this enables desktop browser notifications.
notify:
- platform: html5
name: home_assistant_notifier
vapid_pub_key: !secret notify_vapid_pub_key
vapid_prv_key: !secret notify_vapid_prv_key
vapid_email: !secret notify_vapid_email
# WiP: homekit config. very incomplete.
homekit:
- advertise_ip: !secret hassio_host_ip
- port: 21163
name: Holterweg_roba
filter:
include_entities:
- light.gang_lampen
- light.kamer_nekomo_lampen
- light.kamer_roba_lampen
- light.kantoor_lampen
- light.keuken_lampen
- light.overloop_lampen
- light.slaapkamer_lampen
- light.woonkamer_lampen
- switch.shelly_espresso
- switch.shelly_magnetron
- port: 21164
name: Holterweg_nekomo
filter:
include_entities:
- light.gang_lampen
- light.kamer_nekomo_lampen
- light.kamer_roba_lampen
- light.kantoor_lampen
- light.keuken_lampen
- light.overloop_lampen
- light.slaapkamer_lampen
- light.woonkamer_lampen
- switch.shelly_espresso
- switch.shelly_magnetron
# sensors are defined in the sensors directory; one yaml per 'theme'.
sensor: !include_dir_merge_list sensors/
# Bosch/Siemens 'home connect' integration; enables dishwasher and fridge sensors and stats.
# deprecated
#home_connect:
# client_id: !secret home_connect_client_id
# client_secret: !secret home_connect_client_secret
zha:
zigpy_config:
ota:
otau_directory: /config/zigpy_ota
ikea_provider: true
network:
channel: 15 # What channel the radio should try to use.
channels: [15, 20, 25] # Channel mask
zha_toolkit:
#media_player:
# - platform: onkyo
# host: !secret onkyo_ip
# name: onkyo
# Xiaomi humidifier setup
#fan:
# - platform: xiaomi_miio
# host: !secret xiaomi_humidifier_ip
# token: !secret xiaomi_humidifier_token
# sonos connection
sonos:
media_player:
hosts:
- !secret sonos_ip
#badnest:
# issue_token: !secret badnest_issue_token
# cookie: !secret badnest_cookie
# region: eu
emulated_hue:
listen_port: 4280
advertise_ip: !secret hue_ip_address
host_ip: !secret hassio_host_ip
advertise_port: 80
wake_on_lan:
# deprecated 20-10
#withings:
# client_id: !secret withings_client_id
# client_secret: !secret withings_client_secret
# use_webhook: true
light:
- platform: template
lights:
rvdm_sleep_lights:
friendly_name: "rvdm sensor sleep"
turn_on:
- service: input_select.select_option
data_template:
entity_id: input_select.rvdm_status_dropdown
option: 'Just Awake'
turn_off:
- service: input_select.select_option
data_template:
entity_id: input_select.rvdm_status_dropdown
option: 'Sleeping'
utility_meter:
daily_power:
source: sensor.energy_usage_today
cycle: daily
daily_gas:
source: sensor.gas_usage_today
cycle: daily
mqtt:
sensor:
- name: 'Day-ahead-price'
unit_of_measurement: "€"
state_topic: enstoe/day-ahead
value_template: '{{ value_json.day_ahead_price }}'
json_attributes_topic: enstoe/day-ahead
template:
- trigger:
platform: time
at: "23:59:01"
sensor:
- name: degree_day_daily
state: >
{% set regularized_temp = 18.0 | float %}
{% set average_outside_temp = states('sensor.outside_temperature_avg') | float %}
{% set dd = regularized_temp - average_outside_temp %}
{% if dd > 0 %}
{{ dd }}
{% else %}
0
{% endif %}
unit_of_measurement: 'DD'
- trigger:
platform: time
at: "23:59:59"
sensor:
- name: gas_m3_per_degree_day
state: >
{% set gas_usage = states('sensor.gas_delivery_daily') | float %}
{% set dd = states('sensor.degree_day_daily') | float %}
{% if dd > 0 %}
{{ gas_usage / dd }}
{% else %}
0
{% endif %}
unit_of_measurement: 'm³/DD'
rest: !include rest.yaml
ffmpeg:
afvalbeheer:
wastecollector: circulus
resources:
- restafval
- gft
- papier
- pmd
postcode: 7434PA
streetnumber: 115
upcomingsensor: 1
builtinicons: 1
builtiniconsnew: 1
dutch: 1
dayofweek: 1
alwaysshowday: 1
evohome:
username: !secret evohome_username
password: !secret evohome_password
scan_interval: 180
rest_command:
reboot_p1_dongle:
url: 192.168.43.68/ReBoot
method: get
powercalc:
ramses_cc:
serial_port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A50285BI-if00-port0
packet_log:
file_name: packet.log
rotate_backups: 28
restore_cache: true
scan_interval: 60
01:010995:
system:
appliance_control: 10:058452
zones:
"00": { _name: "Keuken", sensor: 34:074351, actuators: [ 04:122018 ] }
"01": { _name: "Roba kamer", sensor: 04:122022, actuators: [ 04:122022 ] }
"02": { _name: "Nekomo kamer", sensor: 04:122020, actuators: [ 04:122020 ] }
known_list:
01:010995: # system
10:058452: # opentherm gw
34:074351: # sensor keuken
04:122018: # actuator keuken
04:122022: # sensor roba kamer
04:122022: # actuator roba kamer
04:122020: # sensor nekomo kamer
04:122020: # actuator nekomo kamer
18:262143: # evofw3
ramses_rf:
enforce_known_list: true