mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #490] Corrupt camera entity pictures #3623
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @emufan on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/490
Describe the bug
I just updated to newest version of integration as well as to AP FW 2.81 and Tag FW 41 0x29
If I run now such an automation for devices, e.g.
in generated the right image in the folder \config\www\open_epaper_link and send it to the tag.
BUT (never had that before the updates):
After the AP has sent it to the tag, the picture is deleted again in the folder.
If I have the camera entity on a dashboard or open it in more-info, the image is re-created but corrupt

Expected behavior
Have the last pictures still available for the camera entity.
@emufan commented on GitHub (Aug 6, 2025):
Arg. Do not find this breaking change there (now only "G5 Encoded Images that are fetched from the AP are not decoded correctly yet" but I don't want to fetch them), that it is not possible anymore to use the camera-images on dashboards. If I would have know that, I would not have done the update.
So you say, it it because of the re-download/update from AP?
Then why do this? Just leave the images as generated from HA as in the versions before. Sure, if I would update on AP in parallel, they would be out of sync, but for those who are doing it in HA, they would still have the HA-picture.
Without deleting and calling from HA (?) the compression would not matter, wouldn't it?
@atc1441 commented on GitHub (Aug 6, 2025):
Hey again, I did delete that comment again as Im not sure if it still counts as for me the Compressed images do show correct in HA,
In theory you could edit out the deletion of the images in the HA plugin and see if it works out. You can remove those 2 lines https://github.com/OpenEPaperLink/Home_Assistant_Integration/blob/main/custom_components/open_epaper_link/camera.py#L363 via an text editor in your HA installation and reboot HA
@emufan commented on GitHub (Aug 6, 2025):
Ah, great. Will try it. But this would only remove the delete, but not the catch from device, wouldn't it? Do you have a hint, where this is happening as well?
@svenove commented on GitHub (Aug 6, 2025):
It's also possible to deactivate compression - believe it's done by editing the tagtype-json on the AP. I don't recall the exact change, but I know I read it somewhere.
@atc1441 commented on GitHub (Aug 6, 2025):
Yeah you could change this number to like "99" https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/resources/tagtypes/04.json#L13
But then also the upload is not compressed anymore so I would not advice it but it will work. With that small screen its not that big of a deal as even uncompressed its just a small image
@emufan commented on GitHub (Aug 6, 2025):
Thanks to both of you. Don't know where 29 or 99 come from, but can test it.
But the approach in deleting the deletion (hint from above), but the request/update from AP as well (still searching for it, any tips) would be more what I would like.
@atc1441 commented on GitHub (Aug 6, 2025):
29 is the minimum version from which G5 Compression is supported and "99" would be a very high number to "disable" it
"but the request/update from AP" I dont understand what you mean by this
@emufan commented on GitHub (Aug 6, 2025):
I understood, that https://github.com/OpenEPaperLink/Home_Assistant_Integration/blob/main/custom_components/open_epaper_link/camera.py#L363 is just deleting the (working) image from folder.
But thought the problem is the step afterwards, the request of the compressed image from AP/tag if opening or using the camera entity. So I would think that I have to skip it as well, as the main problem.
Or is it that way, that If the picture is still in the folder, it is not requested from AP? Yes, then it would be enough to delete the deletion.
@atc1441 commented on GitHub (Aug 6, 2025):
It will not request the image if it is exisiting!
Also the G5 Compression is still not supported so yes my first comment was still correct ^^ The displays I use are using ZLIB Compression which is implemented in the HA Integration https://github.com/OpenEPaperLink/Home_Assistant_Integration/blob/main/custom_components/open_epaper_link/image_decompressor.py#L111
@emufan commented on GitHub (Aug 6, 2025):
Great. Will do it that way and delete my camera snapshot way, which I used currently, again for now. Thanks so much for your help and the background.
@g4bri3lDev commented on GitHub (Sep 13, 2025):
With Release 2.0.0 of the Integration decoding of G5 images has now been implemented correctly so this issue should be fixed.