Open bbo76 opened 5 months ago
This service aarlo.camera_request_video_to_file
should do the job.
Is that the one you are using?
yes but the file is not taking from now but it's an old file...
It looks like the file isn't overwrite. I tried to clear media folder and the snapshot is fresh image. Home Assistant by default not support overwrite files ?
I'll take a look. It's probably the way I'm doing it.
I have another question, If I'm true, we need to call the recording service before call the request video file ? So if we have no cloud subscription this feature work or we need to put HDD or usb drive on the base station to save media ?
Any updates on this?
It's working as expected for me. This is the code that writes the snapshot to a file, the call to open()
with w
will overwrite the file.
# Get and write snapshot
snapshot = camera.get_snapshot()
with open(snapshot_file, "wb") as out_file:
out_file.write(snapshot)
Can you turn on and send me some debug, something else must be going wrong. I also don't know the answer to the "recording without subscription" but maybe the debug will help here.
Debug instructions are here, you should go with verbose.
When I call the service to request a video or snapshot with file, the file downloaded is an old media. Wich service I need to call to record a new snapshot or video from now ?