-
Notifications
You must be signed in to change notification settings - Fork 12
/
cameras.yaml
executable file
·489 lines (431 loc) · 13.8 KB
/
cameras.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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
# I'm currently using ffmpeg cameras with a live555 proxy. This gives me near real time cameras (~2 sec lag)
# and pretty high reliability, though on the kindles, I had to switch to low res
# proxy cameras for 3/4 of the cameras to reduce load on the tablet enough to make them reliable.
# Previously I was using Onvif integration with UDP multicasting
# It is basically realtime, and seems reliable when there is
# enough CPU. Once there are about 3 devices streaming, I run out
# of CPU without the stream component.
# I have it configured without the stream component as it
# still ads the 6-7 second delay.
# Onvif is configured via the integrations pane in the UI.
# live 555 proxy streams with ffmpeg component - best solution so far. Low latency, fairly reliable.
- platform: ffmpeg
name: Front Stream
input: !secret proxy_front_main_stream_url
- platform: ffmpeg
name: Back Stream
input: !secret proxy_back_main_stream_url
- platform: ffmpeg
name: Left Stream
input: !secret proxy_left_main_stream_url
- platform: ffmpeg
name: Right Stream
input: !secret proxy_right_main_stream_url
# synology proxy streams with ffmpeg component test
# (only gets the substream, probably have to change camera settings in synology)
# - platform: ffmpeg
# name: Front Stream
# input: !secret syno_front_main_stream_url
# - platform: ffmpeg
# name: Back Stream
# input: !secret syno_back_main_stream_url
# - platform: ffmpeg
# name: Left Stream
# input: !secret syno_left_main_stream_url
# - platform: ffmpeg
# name: Right Stream
# input: !secret syno_right_main_stream_url
#
# - platform: generic
# name: Right SubStream
# still_image_url: !secret right_sub_still_url
# stream_source: !secret right_substream_url
# framerate: 4
#
# - platform: generic
# name: Left SubStream
# still_image_url: !secret right_sub_still_url
# stream_source: !secret right_substream_url
# framerate: 4
#
# - platform: generic
# name: Front Substream
# still_image_url: !secret front_sub_still_url
# stream_source: !secret front_substream_url
# framerate: 4
#
# - platform: generic
# name: Back Substream
# still_image_url: !secret back_sub_still_url
# stream_source: !secret back_substream_url
# framerate: 4
##
- platform: ffmpeg
input: !secret front_substream_url
name: Front Substream
- platform: ffmpeg
input: !secret back_substream_url
name: Back Substream
- platform: ffmpeg
input: !secret left_substream_url
name: Left Substream
- platform: ffmpeg
input: !secret right_substream_url
name: Right Substream
# Proxy cameras worked for a couple weeks to give me a low
# res, low frame rate preview stream for my tablets, but
# weren't as reliable as the source stream. Using ONVIF
# seems more reliable but needs about 30% CPU per device to
# display the feeds with stream turned on
# - platform: proxy
# name: front_preview
# entity_id: camera.front_stream
# max_stream_width: 320
# max_image_width: 320
# image_refresh_rate: 1.0
# cache_images: true
# - platform: proxy
# name: back_proxy
# entity_id: camera.back_stream
# max_stream_width: 320
# max_image_width: 320
# image_refresh_rate: 1.0
# cache_images: true
# - platform: proxy
# name: left_preview
# entity_id: camera.left_stream
# max_stream_width: 180
# max_image_width: 180
# image_refresh_rate: 1.0
# cache_images: true
# - platform: proxy
# name: right_preview
# entity_id: camera.right_stream
# max_stream_width: 180
# max_image_width: 180
# image_refresh_rate: 1.0
# cache_images: true
- platform: proxy
name: back_proxy
entity_id: camera.back_stream
max_stream_width: 860
max_image_width: 860
image_refresh_rate: 5.0
cache_images: true
- platform: proxy
name: left_proxy
entity_id: camera.left_stream
max_stream_width: 540
max_image_width: 540
image_refresh_rate: 5.0
cache_images: true
- platform: proxy
name: right_proxy
entity_id: camera.right_stream
max_stream_width: 540
max_image_width: 540
image_refresh_rate: 5.0
cache_images: true
# I used to use synology streams when I couldn't get the camera streams working directly for frigate, but the camera streams seem better now. No point in streaming it through 2 devices.
#
# - platform: generic
# name: Syno Stream Front
# still_image_url: !secret front_still_url
# stream_source: !secret syno_front_url
# framerate: 4
#
# Generic cameras work the best with stream component and use very little CPU that way, but are unreliable with stream turned off. Unfortunately with stream they have a 6-7 second lag but the upside is they use very little CPU and mostly show up properly in the UI, with the exceptions of some stalling when in preview and some buffering on the screen when in fullscreen.
#
# - platform: generic
# name: Front Stream
# still_image_url: !secret front_still_url
# stream_source: !secret front_main_stream_url
# framerate: 4
#
# - platform: generic
# name: Back Stream
# still_image_url: !secret back_still_url
# stream_source: !secret back_main_stream_url
# framerate: 4
#
# - platform: generic
# name: Left Stream
# still_image_url: !secret left_still_url
# stream_source: !secret left_main_stream_url
# framerate: 4
#
# - platform: generic
# name: Right Stream
# still_image_url: !secret right_still_url
# stream_source: !secret right_main_stream_url
# framerate: 4
# Trying to use generic cameras against synology proxy to allow for more streams at a time
# Not very reliable, only 1 FPS or so, but low CPU usage. I suspect they are just using the still url instead.
# - platform: generic
# name: Front Stream
# stream_source: !secret syno_front_main_stream_url
# still_image_url: !secret front_still_url
# framerate: 4
# - platform: generic
# name: Back Stream
# stream_source: !secret syno_back_main_stream_url
# still_image_url: !secret back_still_url
# framerate: 4
# - platform: generic
# name: Left Stream
# stream_source: !secret syno_left_main_stream_url
# still_image_url: !secret left_still_url
# framerate: 4
# - platform: generic
# name: Right Stream
# stream_source: !secret syno_right_main_stream_url
# still_image_url: !secret right_still_url
# framerate: 4
# MJPEG cameras are extremely close to realtime,
# even with streaming component turned on.
# The downside seems to be that only one thing can be streaming
# the camera URL at a time. This even applies to hass endpoints,
# So if one hass session is viewing the camera, the other hass
# sessions cannot.
# Synology forces you to choose
# H.264 or MJPEG for all the streams, so you will have to use the
# main stream for everything. Also they seem to disappear
# sometimes
#
# - platform: mjpeg
# mjpeg_url: !secret back_mjpeg_substream_url
# still_image_url: !secret back_sub_still_url
# name: Back Substream
#
# - platform: mjpeg
# mjpeg_url: !secret front_mjpeg_substream_url
# still_image_url: !secret front_sub_still_url
# name: Front Substream
#
# - platform: mjpeg
# mjpeg_url: !secret left_mjpeg_substream_url
# still_image_url: !secret left_sub_still_url
# name: Left Substream
#
# - platform: mjpeg
# mjpeg_url: !secret right_mjpeg_substream_url
# still_image_url: !secret right_sub_still_url
# name: Right Substream
# FFMPEG work pretty well if you turn off stream:
# They are near real time ~2-3 sec lag but not 100% reliable.
# Sometimes they
# vanish and are replaced with text of the name of the camera,
# even on machines with plenty of CPU.
# With stream, generic is more reliable, both have same 10+
# second lag with stream turned on.
#
# - platform: ffmpeg
# input: !secret front_main_stream_url
# extra_arguments: "-q:v 32"
# name: Front Stream
#
# - platform: ffmpeg
# input: !secret back_main_stream_url
# extra_arguments: "-q:v 32"
# name: Back Stream
#
# - platform: ffmpeg
# input: !secret left_main_stream_url
# extra_arguments: "-q:v 32"
# name: Left Stream
#
# - platform: ffmpeg
# input: !secret right_main_stream_url
# extra_arguments: "-q:v 32"
# name: Right Stream
# Frigate v.5 cameras
# - name: Right Last Person
# platform: mqtt
# topic: !secret frigate_cam2_topic
#
# - name: Left Last Person
# platform: mqtt
# topic: !secret frigate_cam4_topic
#
# - name: Front Last Person
# platform: mqtt
# topic: !secret frigate_cam3_topic
#
# - name: Back Last Person
# platform: mqtt
# topic: !secret frigate_cam1_topic
#Frigate v.2 cameras
# - name: Right Last Person
# platform: generic
# still_image_url: !secret right_best_url
#
# - name: Left Last Person
# platform: generic
# still_image_url: !secret left_best_url
#
# - name: Front Last Person
# platform: generic
# still_image_url: !secret front_best_url
#
# - name: Back Last Person
# platform: generic
# still_image_url: !secret back_best_url
# Synology Cameras (non stream) - Used for popups on tablets
#
# - platform: synology
# url: !secret synology_int_url
# username: !secret syn_uname
# password: !secret hass_pass
# timeout: 120
#
# verify_ssl: False
# Cameras for history of person detection
#
# - name: cam1
# platform: mqtt
# topic: !secret frigate_cam1_topic
# - platform: local_file
# name: cam1_history1
# file_path: /config/www/cam1/1.jpg
# - platform: local_file
# name: cam1_history2
# file_path: /config/www/cam1/2.jpg
# - platform: local_file
# name: cam1_history3
# file_path: /config/www/cam1/3.jpg
# - platform: local_file
# name: cam1_history4
# file_path: /config/www/cam1/4.jpg
# - platform: local_file
# name: cam1_history5
# file_path: /config/www/cam1/5.jpg
# - platform: local_file
# name: cam1_history6
# file_path: /config/www/cam1/6.jpg
# - platform: local_file
# name: cam1_history7
# file_path: /config/www/cam1/7.jpg
# - platform: local_file
# name: cam1_history8
# file_path: /config/www/cam1/8.jpg
# - platform: local_file
# name: cam1_history9
# file_path: /config/www/cam1/9.jpg
# - platform: local_file
# name: cam1_history10
# file_path: /config/www/cam1/10.jpg
#
# - name: cam2
# platform: mqtt
# topic: !secret frigate_cam2_topic
# - platform: local_file
# name: cam2_history1
# file_path: /config/www/cam2/1.jpg
# - platform: local_file
# name: cam2_history2
# file_path: /config/www/cam2/2.jpg
# - platform: local_file
# name: cam2_history3
# file_path: /config/www/cam2/3.jpg
# - platform: local_file
# name: cam2_history4
# file_path: /config/www/cam2/4.jpg
# - platform: local_file
# name: cam2_history5
# file_path: /config/www/cam2/5.jpg
# - platform: local_file
# name: cam2_history6
# file_path: /config/www/cam2/6.jpg
# - platform: local_file
# name: cam2_history7
# file_path: /config/www/cam2/7.jpg
# - platform: local_file
# name: cam2_history8
# file_path: /config/www/cam2/8.jpg
# - platform: local_file
# name: cam2_history9
# file_path: /config/www/cam2/9.jpg
# - platform: local_file
# name: cam2_history10
# file_path: /config/www/cam2/10.jpg
# - name: cam3
# platform: mqtt
# topic: !secret frigate_cam3_topic
# - platform: local_file
# name: cam3_history1
# file_path: /config/www/cam3/1.jpg
# - platform: local_file
# name: cam3_history2
# file_path: /config/www/cam3/2.jpg
# - platform: local_file
# name: cam3_history3
# file_path: /config/www/cam3/3.jpg
# - platform: local_file
# name: cam3_history4
# file_path: /config/www/cam3/4.jpg
# - platform: local_file
# name: cam3_history5
# file_path: /config/www/cam3/5.jpg
# - platform: local_file
# name: cam3_history6
# file_path: /config/www/cam3/6.jpg
# - platform: local_file
# name: cam3_history7
# file_path: /config/www/cam3/7.jpg
# - platform: local_file
# name: cam3_history8
# file_path: /config/www/cam3/8.jpg
# - platform: local_file
# name: cam3_history9
# file_path: /config/www/cam3/9.jpg
# - platform: local_file
# name: cam3_history10
# file_path: /config/www/cam3/10.jpg
#
# - name: cam4
# platform: mqtt
# topic: !secret frigate_cam4_topic
# - platform: local_file
# name: cam4_history1
# file_path: /config/www/cam4/1.jpg
# - platform: local_file
# name: cam4_history2
# file_path: /config/www/cam4/2.jpg
# - platform: local_file
# name: cam4_history3
# file_path: /config/www/cam4/3.jpg
# - platform: local_file
# name: cam4_history4
# file_path: /config/www/cam4/4.jpg
# - platform: local_file
# name: cam4_history5
# file_path: /config/www/cam4/5.jpg
# - platform: local_file
# name: cam4_history6
# file_path: /config/www/cam4/6.jpg
# - platform: local_file
# name: cam4_history7
# file_path: /config/www/cam4/7.jpg
# - platform: local_file
# name: cam4_history8
# file_path: /config/www/cam4/8.jpg
# - platform: local_file
# name: cam4_history9
# file_path: /config/www/cam4/9.jpg
# - platform: local_file
# name: cam4_history10
# file_path: /config/www/cam4/10.jpg
# - platform: reolink_dev
# host: !secret sebs_camera_ip
# username: !secret sebs_camera_uname
# password: !secret sebs_camera_pass
# name: Sebs Room
# scan_interval: 5
- platform: xiaomi_cloud_map_extractor
host: !secret roborock_s7_vacuum_ip
token: !secret roborock_s7_vacuum_token
username: !secret xiaomi_cloud_username
password: !secret xiaomi_cloud_password
draw: ['all']
attributes:
- calibration_points