-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.yaml
342 lines (292 loc) · 7.11 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
homeassistant:
name: Appart
latitude: !secret latitude_home
longitude: !secret longitude_home
elevation: 35
temperature_unit: C
unit_system: metric
time_zone: Europe/Paris
customize : !include customize.yaml
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- !secret local_network
whitelist_external_dirs:
- !secret config_dir
map:
lovelace:
mode: yaml
http:
ssl_certificate: !secret ssl_certificate_dir
ssl_key: !secret ssl_key_dir
base_url: !secret base_url
ip_ban_enabled: True
login_attempts_threshold: 5
mobile_app:
person:
# Track the sun
sun:
system_health:
updater:
reporting: no
logger:
default: info
logs:
homeassistant.components.command_line.switch: error
homeassistant.components.flux.switch: error
homeassistant.components.discovery: error
homeassistant.components.media_player.vlc: debug
discovery:
recorder:
db_url: !secret mariadb_url
purge_interval: 1
purge_keep_days: 9
exclude:
domains:
- automation
- scene
- device_tracker
- group
- input_number
- input_select
- input_boolean
- script
- weather
- zone
- weblink
- updater
- sensor
- light
- binary_sensor
- media_player
- sun
include:
entities:
- binary_sensor.sonoff_t1_touchpad
- binary_sensor.multisensor_motion
- sensor.multisensor_temperature
- sensor.temp_salon
- sensor.multisensor_humidity
- light.bureau
- light.plafond
- light.entree
- light.cheminee
- sensor.memory_free
history:
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes
config:
# Example configuration.yaml entry
mqtt:
broker: !secret mqtt_ip
port: 1883
client_id: home-assistant-1
keepalive: 60
username: !secret mqtt_username
password: !secret mqtt_pw
protocol: 3.1
device_tracker: !include_dir_merge_list tracker
shell_command:
sonarr_on: !secret sonarr_on
sonarr_off: !secret sonarr_off
radarr_on: !secret radarr_on
radarr_off: !secret radarr_off
reboot_cmd: sudo reboot -n
media_player:
- platform: kodi
host: !secret osmc_host
port: 8080
name: OSMC
username: !secret osmc_username
password: !secret osmc_password
turn_on_action:
service: kodi.call_method
data:
entity_id: media_player.OSMC
method: GUI.ActivateWindow
window: home
turn_off_action:
- service: media_player.media_stop
data:
entity_id: kodi.call_method
- service: kodi.call_method
data:
entity_id: media_player.OSMC
method: GUI.ActivateWindow
window: screensaver
- platform: kodi
host: !secret kodicuisine_host
port: 8080
name: Kodi_Cuisine
username: !secret kodicuisine_username
password: !secret kodicuisine_pw
# - platform: mpd
#host: !secret mpd_host
- platform: vlc
- platform: samsungtv
host: !secret samsungtv_host
port: 8001
name: Television
mac: !secret samsungtv_mac
hue:
bridges:
- host: !secret hue_host
allow_unreachable: true
switch: !include_dir_merge_list switch
automation: !include automations.yaml
sensor: !include_dir_merge_list sensor
binary_sensor: !include_dir_merge_list binarysensor
script: !include scripts.yaml
input_number: !include_dir_merge_named inputslider
input_boolean:
fredhome:
name: Frederic Home
initial: on
icon: mdi:account-circle
switch_vlc:
name : Lance au Salon
initial: off
icon: mdi:radio
switch_walter:
name : Lance sur Walter
initial: off
icon: mdi:radio
switch_lightentree:
name : Lumiere entrée
initial: off
icon: mdi:lightbulb
switch_pod:
name : Lance sur Pod
initial: off
icon: mdi:radio
notify:
- platform: kodi
name: tv_notif
host: !secret osmc_host
port: 8080
username: !secret osmc_username
password: !secret osmc_password
- platform: twitter
name: twitter_notif
consumer_key: !secret twitter_consumer_key
consumer_secret: !secret twitter_consumer_secret
access_token: !secret twitter_AT
access_token_secret: !secret twitter_ATS
username: !secret twitter_username
- name: telegram_notif_bot
platform: telegram
chat_id : !secret telegram_id
- platform: free_mobile
name: sms_send
username: !secret fm_username
access_token: !secret fm_at
- platform: html5
name: html5_ha
vapid_pub_key: !secret html_pub
vapid_prv_key: !secret html_priv
vapid_email: !secret html_email
tts:
- platform: google_translate
language: 'fr'
cache: false
telegram_bot:
- platform: polling
parse_mode: html
api_key: !secret telegram_key
allowed_chat_ids:
- !secret telegram_id
duckdns:
domain: !secret duckdns_domain
access_token: !secret duckdns_AT
google_assistant:
project_id: !secret ga_PID
service_account: !include Google_SA.json
exposed_domains:
- switch
- light
- media_player
withings:
client_id: !secret withings_cid
client_secret: !secret withings_sec
profiles:
- Frederic
meteo_france:
- city: !secret city
linky:
- username: !secret linky_user
password: !secret linky_pass
weather:
- platform: darksky
api_key: !secret darksky_API
pi_hole:
host: !secret pihole_host
api_key: !secret pihole_api
freebox:
host: !secret freebox_host
port: !secret freebox_port
rest_command:
fireflyiii_transaction:
url: !secret transaction_url
method: GET
light:
- platform: group
name: real_lights
entities:
- light.bureau
- light.cheminee
- light.color_temperature_light_1
- light.dimmable_light_1
- light.dimmable_light_2
- light.hue_filament_bulb_1
- light.plafond
input_select:
radio_select:
name: radios
options:
- mopidy
- fip
- fip-electro
- fip-groove
- fip-jazz
- fip-monde
- fip-nouveau
- fip-reggae
- fip-rock
- fip-metal
input_text:
container_name:
initial: nodered
remote:
- platform: hueremote
dialogflow:
intent_script:
GetTemperature:
speech:
text: La température dans le salon est de {{ states('sensor.temp_salon') }} degrés
ListLights:
speech:
text: >
Actuellement les lumières {% for state in states -%}
{% if (state.domain=="light") and (state.state=="on") and ('is_hue_group' not in state.attributes) -%}
{{state.name}},
{%- endif %}
{%- endfor -%} sont allumées.
OnOffLight:
speech:
text: J'{{ Action_switch }} la lumière {{ Light }}
action:
- service: notify.telegram_notif_bot
data_template:
message: DialogFLow {{ Action_switch }} {{ Light }}
- service_template: >
{%- if Action_switch == "allume" -%}
light.turn_on
{%- else -%}
light.turn_off
{%- endif -%}
data_template:
entity_id: "light.{{ lower(Light) }}"