I’m using this blueprint Auto Snapshots on Motion · GitHub to send camera notifications on motion.
I have 3 Nest cameras connected via the official integration and 4 BlueIris cameras via the HACS integration.
After a fresh restart of HA everything works great for “a while” generally half a day or so. After that it becomes very hit and miss on if the notification actually sends an image and if that image is from the time of the event or from hours beforehand.
I have PreLoad Stream checked for all cameras but looking into the logs I see regular stream errors:
Ex for Blue Iris camera:
2022-05-06 22:31:47 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new camera.blueiris entity: camera.blueiris_driveway
2022-05-06 22:39:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets
2022-05-06 22:40:34 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:41:24 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:42:24 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:43:34 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:44:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (EXIT, Immediate exit requested) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-06 22:45:54 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe
2022-05-07 00:36:49 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets
2022-05-07 00:53:11 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Error demuxing stream: [Errno 1414092869] Immediate exit requested: 'http://blueiris.example.com/h264/driveway-cam/temp.m3u8?session=0adeadbeefdeadbeefdeadbeefdeadbe'
2022-05-07 07:04:02 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.blueiris_driveway] Error from stream worker: Stream ended; no additional packets
Ex for Nest cam:
2022-05-06 22:13:57 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Initialized trigger Motion Camera - Front Porch
2022-05-06 22:13:58 INFO (MainThread) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Started stream: rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 02:00:15 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 02:40:35 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Stream has no video
2022-05-07 03:21:13 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:48:17 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:48:38 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:49:11 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:49:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:50:45 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 03:51:45 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found) rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Running automation actions
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step delay 0:00:00
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step device automation
2022-05-07 07:46:17 INFO (MainThread) [homeassistant.components.automation.motion_camera_front_porch] Motion Camera - Front Porch: Executing step delay 0:00:05
2022-05-07 07:46:18 INFO (MainThread) [homeassistant.components.stream.stream.camera.front_porch_doorbell] Started stream: rtsps://stream-us1-bravo-ft.dropcam.com:443/sdm_live_stream/BigRandomString?auth=****
So maybe the question is: Am I doing something wrong with how I handle cameras in general or am I just happening to hit similar issues in both BlueIris and Nest?