Skip to content

Display distortion after refreshing #980

@mrsofa

Description

@mrsofa

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation

  • Update openHASP to the latest version

  • Reproduce the issue and describe all steps

Describe the bug

When pushing new image from home assistant the screen gets this funny distortion shaking animation for a couple of seconds. It also takes a long time to load the image. (Image size: 121Kb)

To Reproduce

Just clicking the refresh button or switching page makes it happen.
Haos automation:

alias: Ducks → Plate2 camera image
description: Convert Frigate stream to PNG and upload to Plate2
triggers:
  - trigger: state
    entity_id: number.plate2_page_number
    to: "5"
    id: page_change
  - trigger: mqtt
    topic: hasp/plate2/state/p5b9
    payload: "{\"event\":\"down\"}"
    id: manual_refresh
conditions: []
actions:
  - action: shell_command.ducks_convert_resize
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - action: shell_command.ducks_upload_to_plate
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: openhasp.command
    data:
      entity_id: openhasp.plate2
      keyword: jsonl
      parameters: "{\"page\":5,\"id\":2,\"src\":\"L:/ducks.png\"}"
mode: single

Switchplate jsonl:

{"page":5,"id":1,"obj":"label","x":20,"y":60,"w":440,"h":35,"text":"Ducks","align":0,"text_font":28} {"page":5,"id":2,"obj":"img","x":10,"y":100,"w":460,"h":300,"src":"L:/ducks.png","auto_size":0} {"page":5,"id":9,"obj":"btn","x":410,"y":60,"w":60,"h":60,"toggle":false,"text":"\uF45@","text_font":"mdi35","align":1

"bg_color":"#3498DB","radius":10}

54 {"page":5,"id":3,"obj":"label","x":10

Expected behavior

Preferably no weird screeen distortion if possible.

Screenshots or video

Device: ESP32-8048S070C (esp32 cheap yellow display 7")
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    hardwareNew hardware or driverwaiting feedbackFeedback is required before the issue can be worked upon further

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions