forked from remycrochon/home-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
388 lines (330 loc) · 8.16 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
homeassistant:
name: Crochon
latitude: !secret latitude
longitude: !secret longitude
unit_system: metric
packages: !include_dir_named packages
external_url: !secret external-url
internal_url: !secret internal-url
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# configuration des log
logger:
default: info
logs:
# log level for HA core
homeassistant.core: fatal
# log level for MQTT integration
homeassistant.components.mqtt: warning
# log level for all python scripts
homeassistant.components.python_script: warning
# individual log level for this python script
homeassistant.components.python_script.my_new_script.py: warning
# log level for SmartThings lights
homeassistant.components.smartthings.light: warning
# log level for a custom component
#custom_components.my_integration: debug
custom_components.pool_pump: debug
# log level for the `aiohttp` Python package
aiohttp: error
# log level for both 'glances_api' and 'glances' integration
homeassistant.components.glances: fatal
glances_api: fatal
#base de données
homeassistant.components.recorder: warning
# RFXCOM
rfxtrx: warning
# Modbus
homeassistant.components.modbus: warning
pymodbus.client: warning
#AutomMower
custom_components.husqvarna_automower: warning
custom_components.husqvarna_automower.vacuum: warning
custom_components.husqvarna_automower.config_flow: warning
aioautomower: warning
# Text to speech
tts:
- platform: google_translate
# Inclusion des themes
frontend:
themes: !include_dir_merge_named themes/
# Cartes
lovelace:
# mode: yaml
# resources: !include www/custom-lovelace/resources.yaml
# - url: /local/meteofrance/meteofrance-raininhourforecast.js
# type: module
#lovelace_gen:
# Inclusion groupes/automatismes/script/scene
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#hacs:
# token: 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
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.105
- 192.168.0.153
#glances:
# - host: 192.168.0.37
rfxtrx:
device: //dev/serial/by-id/usb-RFXCOM_RFXtrx433_A128N1JF-if00-port0
# device: /dev/ttyUSB0
# Valide l'enregistrement dans les bases de données
recorder:
db_url: !secret db_mysql
auto_purge: true
commit_interval: 15
purge_keep_days: 7
include:
domains:
- binary_sensor
- input_boolean
- input_datetime
- input_number
- input_select
- sensor
- switch
- light
- utility_meter
- vacuum
- sun
- device_tracker
- weather
- group
- person
exclude:
domains:
- camera
- zone
- automation
- cover
- script
- pool_pump
- alarm_control_panel
- climate
- persistent_notification
# base influxdb
influxdb:
host: a0d7b954-influxdb
port: 8086
database: homeassistant2
username: !secret influxdb_user
password: !secret influxdb_password
max_retries: 3
default_measurement: state
include:
domains:
- binary_sensor
- input_boolean
- input_datetime
- input_number
- input_select
- sensor
- switch
- light
- utility_meter
- vacuum
- sun
exclude:
domains:
- camera
- zone
- automation
- weather
- cover
- group
- script
- pool_pump
- device_tracker
- alarm_control_panel
- climate
- persistent_notification
- person
# Modbus TCP connection Wago Piscine
modbus:
- type: tcp
name: wago_piscine
host: 192.168.0.101
port: 502
switches:
- name: Ppe filtration
unique_id: "cde_pompe_filtration"
slave: 1
address: 12288
write_type: coil
- name: Ppe pH
unique_id: "cde_ppe_ph"
slave: 1
address: 12289
write_type: coil
- name: Cde Ecl Piscine
unique_id: "cde_eclairage"
slave: 1
address: 12290
write_type: coil
- name: Cde Ouv Volet Piscine
unique_id: "cde_volet_ouverture"
slave: 1
address: 12291
write_type: coil
- name: Cde Ferm Volet Piscine
unique_id: "cde_volet_fermeture"
slave: 1
address: 12292
write_type: coil
- name: Ev Eau
unique_id: "cde_ev_eau"
slave: 1
address: 12293
write_type: coil
- name: Ppe chlore
unique_id: "cde_ppe_chlore"
slave: 1
address: 12294
write_type: coil
binary_sensors:
# - name:
# slave: 1
# address: 0
# niveau haut piscine
- name: tp_plein_lsh
slave: 1
address: 1
unique_id: niveau_haut_piscine
# scan_interval: 10 en sec 10 par défaut
# niveau bas piscine
- name: tp_plein_lsl
slave: 1
address: 2
unique_id: niveau_bas_piscine
# information couverture flottante piscine fermée
- name: volet piscine fermé
slave: 1
address: 3
unique_id: volet_piscine_ferme
# lecture de la sonde pt100 de la mesure de temperature de l'eau
sensors:
- name: temp_piscine
unit_of_measurement: °C
slave: 1
address: 0
input_type: input
scale: 0.1
precision: 1
data_type: int16
# lecture de la sonde pt100 de la mesure de temperature du local piscine
# uniquement à titre indicatif
- name: temp_local_piscine
unit_of_measurement: °C
slave: 1
address: 2
input_type: input
scale: 0.1
precision: 1
data_type: int16
# Modbus TCP connection Module Adam SSol
- type: tcp
name: adam_ssol
host: 192.168.0.47
port: 502
switches:
# Sortie D0
- name: cde_relais_ecs
slave: 1
address: 16
write_type: coil
# Sortie D1
- name: cde_relais_ecs_router_pv
slave: 1
address: 17
write_type: coil
# Sortie D2
- name: cde_porte_ssol
slave: 1
address: 18
write_type: coil
# Sortie D3
- name: cde_porte_garage
slave: 1
address: 19
write_type: coil
# Sortie D4
- name: adam_sortie_d4
slave: 1
address: 20
write_type: coil
# Sortie D5
- name: sort5_adam_ssol
slave: 1
address: 21
write_type: coil
binary_sensors:
# Entrées module Adam sous sol
- name: porte_ssol_fermee
slave: 1
address: 0
scan_interval: 5
- name: porte_ssol_ouverte
slave: 1
address: 1
scan_interval: 5
- name: porte_garage_fermee
slave: 1
address: 2
scan_interval: 5
- name: porte_garage_ouverte
slave: 1
address: 3
scan_interval: 5
- name: Etor5_adam_ssol
slave: 1
address: 4
- name: Etor6_adam_ssol
slave: 1
address: 5
# Notification dans Telegram
telegram_bot:
- platform: polling
api_key: !secret telegram_token
allowed_chat_ids:
- !secret id_telegram_remy ## remy
notify:
- name: Telegram
platform: telegram
chat_id: !secret id_telegram_remy
- platform: pushbullet
api_key: !secret pushbullet_api_key
name: pushbullet
# Notification dans les fichiers
- name: log_energy
platform: file
filename: conso_energy.csv
timestamp: True
- name: log_piscine
platform: file
filename: conso_piscine.csv
timestamp: True
livebox:
host: 192.168.0.1
username: !secret user_livebox
password: !secret mdp_livebox
#owntracks:
# max_gps_accuracy: 200
# waypoints: false
# mqtt_topic: "owntracks/#"
python_script:
api:
alexa:
smart_home:
shell_command:
push_to_github: /config/gitpush.sh
turn_off_remote_pc: "ssh -i /config/.ssh/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' [email protected] sudo reboot -h now"
sensor:
- platform: zwift
username: !secret my_zwift_username
password: !secret my_zwift_password
# players:
# - !secret my_friends_zwift_player_id