-
Notifications
You must be signed in to change notification settings - Fork 44
Camera entities show corruption most of the time #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
«Known Issues G5 Encoded Images that are fetched from the AP are not decoded correctly yet» |
I see there's a decode_g5 method checked in but not being used. Is it functional? Is the work involved to detect the encoding of what's returned from the AP? |
the
# Possibly decode G5 data
if len(data) >= 0 and tag_type.g5_compression and int(tag_type.g5_compression) > 0:
# Read G5 header
if len(data) <6:
print("[decode_esl_raw] Not enough data for G5 header.")
return None
header_size = data[0]
bufw = (data[2] << 8) | data[1] # little-endian
bufh = (data[4] << 8) | data[3]
format_indicator = data[5]
# Go ahead with decoding g5... |
Ah, thanks, I can try to take a look. |
Is this fully functional or your work in progress? |
it's still work in progress (not throwing errors anymore) |
Forgot to mention I worked on this over the weekend but was not able to finish: this g5 encoding is tough! I checkpointed my work here: https://github.com/jterrace/open_epaper_link_homeassistant/tree/g5
Unfortunately, the decoder is failing on the second line of the image. I ran out of time to work on it if anyone wants to pick up where I left off. Otherwise, I'll get back to it when I have time again, maybe this weekend. |
Made a little progress today, updated my branch. The decoder was failing because I wasn't stripping out the header. It at least doesn't crash and produces an image now, but the result is garbled. |
Describe the bug
I have several tags that are used in
drawcustom
automations and the tags themselves are working great, but the camera preview in Home Assistant is showing corruption instead of the actual image, and if I click on it I see nothing:Access Point is running firmware 2.75, Home Assistant integration is 1.0
The text was updated successfully, but these errors were encountered: