bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
176 stars 26 forks source link

[Question]: Download/fetch/get clips stored in the eufy HUB into Home Assistant #245

Closed sesardelaisla closed 11 months ago

sesardelaisla commented 1 year ago

Ask your question

Is it possible to fetch the motion detected clips stored in the hub (the ones you can see in the events tab in eufy Security App) into Home Assistant, so you can manage them to be uploaded (for instance) to a NAS or sent to Telegram? If not, is it something planned to be implemented?

bropat commented 1 year ago

It was possible until before that Eufy encrypted everything (December 2022). Since the introduction of encryption and the new Homebase 3, some of the logic has been changed. It has also been gradually ported to Homebase 2. I only have Homebase 2, so I can only try to understand how everything works there. To cut a long story short, this part has to be re-implemented. I can't say when it will be ready.

sesardelaisla commented 1 year ago

Understood. For the moment, I have a workaround for being able to get clips which start at the same time that the camera detects motion, which it is the main goal of my question. However, it requires to have a Synology NAS. Synology Surveillance Station is so far the only system that is able to capture the stream almost from the same keyframe that the camera is starting from. None of the options below are able to do that according to my tests. They clips captured usually start about 7-10" later:

FFMPEG integration is the one that seems to work better (it takes 3-4" to start only). However, it seems that the addon motion detection state takes a few seconds to be updated, so an automation trigger arrives too late for the camera.record service to start at the beginning of the actual camera RTSP stream. Tried to use the stream status sensor as a trigger instead, but it is not updated when the camera start the RTSP stream on its own. Such sensor seems to work when the stream start is forced from Home Assistant. Will check whether there is any open related issue already about such sensors behaviours and will open one if necessary.

Coming back to the main topic, I will keep an eye watching related updates and issues to see whether the clip download feature is something that is done at some point.

Thanks!