esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 35 forks source link

Waveshare E-Paper Image Black when using online_image component #6274

Open djkroko opened 2 weeks ago

djkroko commented 2 weeks ago

The problem

When using online_image component a white Image with Black Text gets displayed with black Background and white Text using type: BINARY. Using type: TRANSPARENT_BINARY the screen goes completly Black.

When using image component the same Image File is shown correct.

Maybe it can be fixed by adding type:TRANSPARENT_IMAGE to the online_image component like in Issue #4226

Which version of ESPHome has the issue?

2024.9.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.9.3

What platform are you using?

ESP32

Board

mhetesp32minikit

Component causing the issue

online_image

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

guillempages commented 1 week ago

This doesn't seem related to #4226. TRANSPARENT_IMAGE is not available in normal images anymore anyway.

This is probably an issue of how the waveshare treats black and white (i.e. whether "on" means white or black).

If you are displaying the image with the standard lambda it.image(x, y, image_id);, you can try using it.image(x, y, image_id, COLOR_OFF, COLOR_ON); (or maybe the other way around) to see if this fixes your issue.