-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
372 lines (339 loc) · 10.6 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
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# C for Celcius, F for Fahrenheit
temperature_unit: C
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Paris
# location required to calculate the time the sun rises and sets
latitude: !secret home_latitude
longitude: !secret home_longitude
elevation: 0
auth_providers:
- type: homeassistant
- type: legacy_api_password
- type: trusted_networks
packages: !include_dir_named packages
customize: !include customize.yaml
customize_glob:
"sensor.*_sourcenodeid":
hidden: true
"sensor.*_alarm_level":
hidden: true
"sensor.*_alarm_type":
hidden: true
customize_domain:
automation:
initial_state: 'on'
cloud:
config:
map:
influxdb:
host: 192.168.1.20
http:
api_password: !secret api_password
base_url: !secret base_url
use_x_forwarded_for: True
trusted_proxies:
- 127.0.0.1
- ::1
trusted_networks:
- 127.0.0.1
- ::1
- 192.168.1.0/24
- 10.8.0.0/24
ip_ban_enabled: True
login_attempts_threshold: 3
#MQTT Broker
mqtt:
broker: 127.0.0.1
port: 1883
client_id: home-assistant
keepalive: 60
username: !secret mqtt_user
password: !secret mqtt_passwd
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
#Geofencing setup
zone:
name: work
latitude: !secret work_latitude
longitude: !secret work_longitude
radius: 100
icon: mdi:briefcase
# Track the sun
sun:
recorder:
db_url: postgres://@/hass
exclude:
entities:
- sensor.yr_symbol
- sensor.time
- sensor.pws_alerts
- sensor.pws_precip_1d
- sensor.pws_precip_1d_mm
- sensor.pws_temp_c
- sensor.pws_temp_high_1d_c
- sensor.pws_temp_high_record_c
- sensor.pws_temp_low_1d_c
- sensor.pws_temp_low_record_c
- sensor.pws_weather_1d_metric
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_2n_metric
- sensor.pws_weather_3d_metric
- sensor.pws_weather_3n_metric
- sensor.pws_weather_4d_metric
- sensor.pws_weather_4n_metric
- sensor.pws_wind_1d_kph
- sensor.pws_wind_kph
# Enables support for tracking state changes over time.
history:
exclude:
domains:
- automation
- sun
- script
- group
logbook:
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes
# Checks for available updates
updater:
custom_updater:
track:
- components
- cards
card_urls:
- https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
component_urls:
- https://raw.githubusercontent.com/robmarkcole/Hue-sensors-HASS/master/custom_updater.json
# Discover some devices automatically
discovery:
#Zeroconf/Avahi/Bonjour
zeroconf:
#FFmpeg
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
hue:
ios:
push:
categories:
- name: alarm
identifier: 'camera'
actions:
- identifier: 'FIRE_ALARM'
title: 'Activer Alarme'
activationMode: 'background'
authenticationRequired: no
destructive: yes
- identifier: 'CANCEL_ALARM'
title: 'Désactiver Alarme'
activationMode: 'background'
authenticationRequired: no
destructive: yes
#Notifier
notify:
- platform: pushbullet
api_key: !secret pushbullet_api_key
name: pushbullet
- platform: ios
name: iOSApp
#IFTTT
ifttt:
key: !secret ifttt_key
#Detect all device on network + my iCloud device + OwnTracks User (MQTT)
device_tracker:
- platform: owntracks
max_gps_accuracy: 150
new_device_defaults:
track_new_devices: False
hide_if_away: False
- platform: asuswrt
host: !secret asuswrt_host
username: !secret asuswrt_username
ssh_key: '/home/homeassistant/.ssh/id_rsa'
proximity:
home:
tolerance: 50
devices:
- device_tracker.hugo_iphone
alarm_control_panel:
platform: manual
pending_time: 30
media_player:
platform: cast
ignore_cec:
- '*'
apple_tv:
host: !secret apple_tv_ip
login_id: !secret apple_tv_id
start_off: true
alexa:
smart_home:
filter:
include_domains:
- cover
include_entities:
- input_boolean.appletv
- input_boolean.ps4
- input_boolean.switch
- input_boolean.babyphone_chambre
- input_boolean.babyphone_salon
- sensor.netatmo_station_temperature
- remote.harmony_hub
entity_config:
input_boolean.appletv:
name: Apple TV
description: Apple TV du Salon (via Harmony)
input_boolean.ps4:
name: Playstation 4
description: Playstation 3/4 (via Harmony)
# display_categories: ACTIVITY_TRIGGER
input_boolean.switch:
name: Nintendo Switch
description: Nintendo Switch
input_boolean.babyphone_salon:
name: Babyphone
input_boolean.babyphone_chambre:
name: Babyphone Chambre
cover.volet_chambre_amis:
name: Volet Zelda
description: Volet de la chambre d'amis
cover.volet_cuisine:
name: Volet Cuisine
description: Volet de la cuisine
cover.volet_salon:
name: Volet Salon
description: Volet du Salon
cover.tous_les_volets:
name: Tous les volets
description: Tous les volets (Salon + Cuisine + Chambre amis)
sensor.netatmo_station_temperature:
name: Température salon
remote.harmony_hub:
name: Television
intent_script:
RemoteIntent:
async_action: True
action:
- service_template: >
{% macro run_script(button) %}
{% if button=='haut' %}
script.apple_tv_up
{% elif button=='bas' %}
script.apple_tv_down
{% elif button=='gauche' %}
script.apple_tv_left
{% elif button=='droite' %}
script.apple_tv_right
{% elif button=='menu' %}
script.apple_tv_menu
{% elif button=='menu principal' %}
script.apple_tv_top_menu
{% elif button=='lecture' %}
script.apple_tv_play
{% elif button=='pause' %}
script.apple_tv_pause
{% elif button=='entrer' %}
script.apple_tv_select
{% endif %}
{% endmacro %}
{{ run_script(button_one) }}
- service_template: >
{% macro run_script(button) %}
{% if button=='haut' %}
script.apple_tv_up
{% elif button=='bas' %}
script.apple_tv_down
{% elif button=='gauche' %}
script.apple_tv_left
{% elif button=='droite' %}
script.apple_tv_right
{% elif button=='menu' %}
script.apple_tv_menu
{% elif button=='menu principal' %}
script.apple_tv_top_menu
{% elif button=='lecture' %}
script.apple_tv_play
{% elif button=='pause' %}
script.apple_tv_pause
{% elif button=='entrer' %}
script.apple_tv_select
{% endif %}
{% endmacro %}
{% if button_two %}
{{ run_script(button_two) }}
{% else %}
None
{% endif %}
- service_template: >
{% macro run_script(button) %}
{% if button=='haut' %}
script.apple_tv_up
{% elif button=='bas' %}
script.apple_tv_down
{% elif button=='gauche' %}
script.apple_tv_left
{% elif button=='droite' %}
script.apple_tv_right
{% elif button=='menu' %}
script.apple_tv_menu
{% elif button=='menu principal' %}
script.apple_tv_top_menu
{% elif button=='lecture' %}
script.apple_tv_play
{% elif button=='pause' %}
script.apple_tv_pause
{% elif button=='entrer' %}
script.apple_tv_select
{% endif %}
{% endmacro %}
{% if button_three %}
{{ run_script(button_three) }}
{% else %}
None
{% endif %}
VolumeUpIntent:
async_action: True
action:
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
device: 36884492
command:
- VolumeUp
num_repeats: >
{{ volume | int * 2 }}
VolumeDownIntent:
async_action: True
action:
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
device: 36884492
command:
- VolumeDown
num_repeats: >
{{ volume | int * 2 }}
input_boolean:
lumiere_entree_auto:
guest_mode:
name: Mode Invité
icon: mdi:account-multiple
climate:
- platform: sensibo
api_key: !secret sensibo_api_key
#Sensors
sensor: !include sensors.yaml
binary_sensor: !include binary_sensors.yaml
group: !include_dir_merge_named groups/
automation old: !include_dir_merge_list automations/
automation: !include automations.yaml
script: !include scripts.yaml