fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
922 stars 75 forks source link

Entity picture not updating properly in 1.5.2/6.3.0 #820

Closed jshep321 closed 1 year ago

jshep321 commented 1 year ago

I had implemented a complex automation (node red) to emulate the behavior laid out for updating the entity picture when a motion/person/etc notification is received -- starting the stream(eufy_security.start_p2p_livestream), generate the image (eufy_security.generate.image), and then stopping the stream.

After the update, the entity picture on one of devices (wireless 2k doorbell camera) reverts to an image from the first installation 6 months ago. The entity picture on the other device (wired 2k doorbell camera) shows a zoomed image of the person detected last.

Same behavior if I manually enter the entity picture URL in a browser (from the entity developer tools details).

When streaming, the streams are up-to-date as expected.

I assume this is not the expected behavior?

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields; -Home assistant OS (rpi 4 hardware)

Hardware Information; Wired 2k doorbell and wireless 2k doorbell (with alarm module)

fuatakgun commented 1 year ago

Yes, you are right, it is not expected but you should reach out to bropat and get his help to debug the issue. Integration is acting as a gateway between add-on and home assistant user. It is the add-on generating the bytes for the integration

robbinonline commented 1 year ago

The release notes of version 6.3 says enable event picture (cd0b2b0) Has to do something with that, i rollback to 6.2 and everything works.

jshep321 commented 1 year ago

@bropat should I write an issue for this?

fuatakgun commented 1 year ago

@bropat might not be watching here

sythesigh commented 1 year ago

So, I appear to have the opposite happening. Before the update my doorbell and 2c camera were updating the images and playing video perfectly, now only the doorbell is updating the preview image and the 2c has a preview image from 1 week ago, even after activating streaming for a new image. Both are streaming fine, it’s just the picture image is not updating in the 2c. Have you changed the loacation of the updated image files for the 2c or is this an actual issue? Also, should I be here or in with @bropat Thanks for your time

fuatakgun commented 1 year ago

@sythesigh , I had reverted the implementation of preserving images from streaming after streaming is finished as it was implemented as a temporary solution until event images are fixed.

please open a new request for preserving latest image (either from event or stream, whichever comes last), if it makes sense

nanard69 commented 1 year ago

In the continuity of #847, if i reboot my raspberry the snapshots updates.

fuatakgun commented 1 year ago

resolving this, I have separated the camera entity and latest event picture entity. latest event picture is received from eufy servers. camera entity holds latest snapshot event.

sythesigh commented 1 year ago

@fuatakgun @bropat thanks guys! That’s sorted both cameras for me. Thank you for your hard work. Much appreciated 👍🏻😁

zzricezz commented 10 months ago

@fuatakgun i'm having the same issue, image.**_event_image have an old image but the Camera image show the last capture picture.

How do I get the fix? Mine was a recent installation so I would assumed the fixed would be part of the new package?

ttuuxxeerr commented 8 months ago

any update, still having the issue.