Waveshare 1.54 (B) flashing and showing pixels all over the display

I’m using a Waveshare 1.54 (B) e-Paper Module with an ESP32 in ESPHOME.
I tried a lot of settings (see below my script) without any success. The display flickers all the time with pixels all over the whole display - see photo.

spi:
  clk_pin: 16
  mosi_pin: 23
  
display:
  - platform: waveshare_epaper
    id: epaper
    cs_pin: 5
    busy_pin: 4 
    reset_pin: 21
    dc_pin: 22
    model: 1.54inv2
    full_update_every: 30
    update_interval: 90s
    reset_duration: 2ms
    lambda: |-
      ESP_LOGI("display", "Updating..");
      it.print(0, 0, id(status_font), "Bezug:");
      it.printf(0, 50, id(status_font), TextAlign::BOTTOM_LEFT, "%s W", id(verbrauch).state.c_str());

I tried it now with an e-Paper ESP32 Driver Board. Some issues, as before. The display is unusable due to the flickering and pixels all over.

Hello, I’ve got the same epaper (1.54 v2, B/W and red).
I finally managed to get it work perfectly.

From your original code, you have to do 2 modifications :

  • replace your model by 1.54inv2-b
  • delete the full_update_every command. Not supported by this model. It will not compile your project.

Let us know if it works now.