-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
407 lines (344 loc) · 11.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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 45.8903545
longitude: 12.7016591
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Rome
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
# Enables the frontend
frontend:
extra_html_url:
- /local/custom_ui/state-card-tiles.html
- /local/custom_ui/state-card-custom-ui.html
- /local/custom_ui/custom-weather-card.html
extra_html_url_es5:
- /local/custom_ui/state-card-tiles_es5.html
- /local/custom_ui/state-card-custom-ui-es5.html
- /local/custom_ui/custom-weather-card.html
javascript_version: latest
# Enables configuration UI
config:
http:
base_url: !secret base_url
api_password: !secret http_password
cors_allowed_origins:
- https://reformedreality.com
- http://reformedreality.com
ssl_certificate: !secret ssl_certificate
ssl_key: !secret ssl_key
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Weather prediction
# Text to speech
tts:
- platform: google
language: 'it'
# Cloud
cloud:
logger:
logs:
camera.giardino: debug
input_text:
cam_ptz:
name: mic
weather:
name: weather
############################## components #########################################
google_assistant:
project_id: galvanized-hall-199521
client_id: !secret google_client_id
access_token: !secret google_access_token
agent_user_id: !secret google_agent_user_id
api_key: !secret google_api_key
expose_by_default: false
entity_config:
switch.sonoff:
name: luce corrridoio
expose: true
switch.cancello:
name: cancello
expose: true
switch.irrigazione:
name: irrigazione
expose: true
media_player.sony_bravia_tv:
name: televisione
expose: true
switch.wol:
name: computer
expose: true
switch.alarm:
name: alarm
expose: true
weather:
- platform: yweather
woeid: 710478
netatmo:
api_key: !secret netatmo_api_key
secret_key: !secret netatmo_secret_key
username: !secret netatmo_username
password: !secret netatmo_password
climate:
- platform: netatmo
- platform: broadlink
name: Condizionatore
host: 192.168.1.57
mac: '34:ea:34:43:14:01'
ircodes_ini: 'ircodes/cond.ini'
min_temp: 17
max_temp: 23
target_temp: 20
temp_sensor: sensor.temperatura
default_operation: idle
default_fan_mode: mid
customize:
operations:
- idle
- cool
- auto
fan_modes:
- high
- auto
media_player:
- platform: braviatv
host: 192.168.1.3
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: cast
host: 192.168.1.7
camera:
- platform: ffmpeg
ffmpeg_bin: /usr/bin/avconv
name: Cam
input: -rtsp_transport udp -i rtsp://admin:88888888@192.168.1.100:10554/udp/av0_0
extra_arguments: -pred 1 -q:v 2
- platform: ffmpeg
ffmpeg_bin: /usr/bin/avconv
name: Entrata
input: -rtsp_transport tcp -i rtsp://192.168.1.17/unicast
notify:
- platform: joaoapps_join
device_id: 95459480664c416e8ea10abb7d5ef67a
name: s7
api_key: !secret join_api_key
- platform: nfandroidtv
name: sony_bravia
host: 192.168.1.3
joaoapps_join:
- name: android
device_id: group.android
api_key: !secret join_api_key
mqtt:
broker: 192.168.1.6
port: 1883
client_id: home-assistant-1
keepalive: 60
username: !secret mqtt_username
password: !secret mqtt_password
protocol: 3.1
device_tracker:
- platform: owntracks
zone:
name: Casa
latitude: 45.8903545
longitude: 12.7016591
radius: 10
microsoft_face:
api_key: !secret microsoft_api_key
azure_region: westcentralus
image_processing:
- platform: microsoft_face_identify
group: family
confidence: 30
source:
- entity_id: camera.cam
xiaomi_aqara:
discovery_retry: 5
gateways:
- key: x5ag24y2d7lmo3ki
############## switches ####################################################
switch:
- platform: command_line
switches:
irrigazione:
command_on: 'python /home/homeassistant/.homeassistant/scripts/irrig_on.py'
command_off: 'python /home/homeassistant/.homeassistant/scripts/irrig_off.py'
- platform: command_line
switches:
canc:
command_on: 'python /home/homeassistant/.homeassistant/scripts/canc.py'
command_off: 'python /home/homeassistant/.homeassistant/scripts/canc_off.py'
- platform: template
switches:
cancello:
value_template: '{{ states.binary_sensor.canc_censor.state }}'
turn_on:
service: switch.turn_on
entity_id: switch.canc
turn_off:
service: switch.turn_off
entity_id: switch.canc
- platform: template
switches:
timer:
value_template: '{{ states.automation.irrigazione.state }}'
turn_on:
service: automation.turn_on
entity_id: automation.irrigazione
turn_off:
service: automation.turn_off
entity_id: automation.irrigazione
- platform: template
switches:
face_rec:
value_template: '{{ states.automation.face_rec.state }}'
turn_on:
service: automation.turn_on
entity_id: automation.face_rec
turn_off:
service: automation.turn_off
entity_id: automation.face_rec
- platform: wake_on_lan
mac_address: "D0-50-99-5D-13-60"
name: "WOL"
host: "192.168.1.4"
- platform: command_line
switches:
pc:
command_off: 'net rpc shutdown -I 192.168.1.4 -U Michele%michele'
- platform: template
switches:
copy:
value_template: '{{ states.switch.wol.state }}'
turn_on:
service: switch.turn_on
entity_id: switch.wol
turn_off:
service: switch.turn_off
entity_id: switch.pc
- platform: mqtt
name: "sonoff"
state_topic: "stat/sonoff/POWER"
command_topic: "cmnd/sonoff/POWER"
optimistic: false
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: template
switches:
robot:
value_template: '{{ states.switch.robot1.state }}'
turn_on:
service: script.turn_on
entity_id: script.robot
turn_off:
service: switch.turn_off
entity_id: switch.robot1
- platform: template
switches:
alarm:
value_template: '{{ states.alarm_control_panel.house.state }}'
turn_on:
service: script.turn_on
entity_id: script.alarm_arm
turn_off:
service: switch.turn_on
entity_id: script.alarm_disarm
- platform: broadlink
host: 192.168.1.57
mac: '34:ea:34:43:14:01'
switches:
condizionatore:
command_on: 'JgC2AQABJ5QVExUTFBMWNhU3FjYWEhYRFjYWEhQUFBMUFBQUFBMWNhYSFBQUExY2FhIUOBQTFhIWEhQTFBQUFBQ4FRIUOBQUFBMWNhQUFAACkhYSFBQWEhUSFBQWERUTFhIUOBYRFhIUFBQTFRMWEhY2FhEWEhUTFRIWEhQUFBMUFBYSFBMWEhYSFTYWNhQUFBQVAAUjAAEmlRYSFBQVEhQ4FDgWNhYSFBMWNhYSFBMUFBQUFBMUFBQ4FBQVEhQUFjYUExU3FB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QOhAVEDoQFRA6DxUQFRAVDzoQFRAVDxYQFQ86EDoQNhQVEDoPOhA7EAANBQ=='
swing:
command_on: 'JgAkAQABKZIXNRYSFhEXNRc1FzUWNhYSFjUXERYSFhEXERYSFhEXERYSFhEXERYSFhEXNRcRFhIWERcRFhIWERc1FhIWNhYRFxEWNhYRFwACkBY2FhIWERcRFhIWERcRFhIWNRcRFhIWERcRFhIWERc1FxEWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWEhY1FzUXAAUiAAEokxYSFhEXERYSFhEXERYSFhEWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWNhYSFjUXERY2FhIWAAKQFxEWEhYRFxEWEhYRFxEWEhYRFhIWEhYRFxEWEhYRFxEWEhYRFxEWEhYRFxEWERcRFhIWERcRFhIWERc1FxEWNhYADQUAAAAA'
command_off: 'JgAkAQABKJMWEhYSFhEWNhY2FjYWERcRFhIWNhYRFxEWEhYRFxEWEhYRFxEWEhYRFhIWNhYSFhEWEhYRFxEWEhY2FhEXNRYSFhEXNRcRFgACkRYRFhIWEhYRFxEWEhYRFxEWNhYSFhEWEhYSFhEWEhY2FhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEWEhY2FjYWAAUiAAEpkhcRFhIWERcRFhIWERcRFhIWERcRFhIWERcRFhIWERcRFhIWERYSFhIWERYSFhIWERYSFhIWERYSFhIWNRcRFjYWEhY1FxEWAAKRFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERYSFhEXERY2FhIWNRcADQUAAAAA'
################### sensors #################################################
binary_sensor:
- platform: rpi_gpio
ports:
25: canc_censor
- platform: ffmpeg_motion
input: -rtsp_transport udp -i rtsp://admin:88888888@192.168.1.100:10554/udp/av0_0
name: motion
ffmpeg_bin: /usr/bin/avconv
changes: 1
reset: 20
####################### input number ####################################################
input_number:
timerore:
name: ore
icon: mdi:timer
initial: 1
min: 1
max: 5
step: 1
spotify_volume:
name: volume
icon: mdi:volume-high
min: 0
max: 1
step: 0.05
input_datetime:
irrigazione:
name: Programma Irrigazione
has_date: false
has_time: true
initial: '05:00'
input_select:
spotify_playlist:
name: 'Playlist:'
options:
- Rock
- Great Female Voices
- Soft
icon: mdi:spotify
spotify_source:
name: 'Source:'
options:
- SoundBar
- TV
- Telefono
initial: SoundBar
icon: mdi:speaker-wireless
shell_command:
cam_1: 'curl -k "http://192.168.1.100:14976/decoder_control.cgi?loginuse=admin&loginpas=88888888&command=31&onestep=0&sit=31&15212668502220.604391171455106&_=1521266850222"'
cam_2: 'curl -k "http://192.168.1.100:14976/decoder_control.cgi?loginuse=admin&loginpas=88888888&command=33&onestep=0&sit=33&15212701797520.8378223747733333&_=1521270179752"'
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml
alarm_control_panel: !include alarm.yaml
panel_custom: !include panel_custom.yaml