Hello, trying to grab a snapshot to use as the camera preview image. Clicking the camera opens the stream fine.
Here is Automation
alias: BackRightSnapshot
description: BackRightSnapshot
trigger:
- platform: time_pattern
seconds: /5
condition: []
action:
- service: camera.snapshot
target:
entity_id: camera.BackRight
data:
filename: /tmp/snapshots/br.jpg
mode: single
whitelisted here in config yaml - blasting wildly
homeassistant:
allowlist_external_dirs:
- "/tmp/"
- "tmp"
- "tmp/"
- "/tmp"
no errors on the automation - do NOT get the “can’t write file” error that is commonly seen
but the directory is empty
I searched the whole computer and find the file here:
/var/lib/docker/overlay2/d2734fce6e294f4007d743e0e3f97619a364314a4d4b361f65f7cd6bfa7130ea/merged/tmp/snapshots/br.jpg
So I am confused - it IS creating the snapshot, just ending up in wrong spot/
Update 1, the br.jpg file above is not a snapshot of the stream, it is a copy of the still-image in the config - so I am still confused
Update 2, changed the camera object to
camera:
- platform: ffmpeg
input: rtsp://192.168.0.71/ch01/0
name: BackRight
And now the log says:
BackRightSnapshot: Already running
10:51:15 PM – (WARNING) Automation - message first occurred at 10:49:10 PM and shows up 16 times
Timeout reading image.
10:50:35 PM – (WARNING) /usr/local/lib/python3.9/site-packages/haffmpeg/tools.py
update 3: calling ffmpeg directly from command line grabs the screenshot fine so i might go down that path in separate script
update 4:
issue is now confined to the picture-glance card
If I specify still image and stream, the image never loads - but if I click the stream opens fine
If I specify still image and no stream, the image loads - but cant click for the stream obviously.