[GH-ISSUE #533] Pixels of generated image are sometimes shifted #837

Open
opened 2026-03-20 18:13:38 +01:00 by sascha_hemi · 0 comments
Owner

Originally created by @Kaboutersuper on GitHub (May 12, 2025).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/533

I have an overview of my solar panel production. Sometimes the generated image is garbled, see screenshot. Some lines of pixels are shifted. It does not happen often and is hard to reproduce.

Image

Sensor values:
states('sensor.zonnepanelen_dagelijkse_opbrengst')
states('sensor.model_zon_forecast')
states('sensor.zonnepanelen_dagelijkse_netto_opbrengst')
states('sensor.extra_usage_2')
states('sensor.zonnepanelen_maandelijkse_opbrengst')
states('sensor.zonnepanelen_maandelijke_netto_opbrengst')
state_attr('sensor.zonnepanelen_dagelijkse_opbrengst','last_period')

Payload:

  • type: line
    fill: red
    width: 3
    x_start: 142
    y_start: 2
    x_end: 142
    y_end: 54
  • type: line
    fill: red
    width: 3
    x_start: 142
    y_start: 85
    x_end: 142
    y_end: 93
  • type: line
    fill: red
    width: 2
    x_start: 0
    y_start: 109
    x_end: 296
    y_end: 109
  • type: text
    value: Vandaag
    font: ppb.ttf
    x: 70
    "y": 10
    size: 20
    color: black
    anchor: mm
  • type: text
    value: >-
    €{{ ('%.2f' | format(states('sensor.zonnepanelen_dagelijkse_opbrengst') |
    float(0) * 0.279358) ) }}
    font: ppb.ttf
    x: 70
    "y": 40
    size: 34
    color: >-
    {{'black' if states('sensor.zonnepanelen_dagelijkse_opbrengst') | float(0)

    = states('sensor.model_zon_forecast') | float(0) else 'red' }}
    anchor: mm

  • type: text
    value: >-
    -€{{ ('%.2f' |
    format(states('sensor.zonnepanelen_dagelijkse_netto_opbrengst') | float(0) *
    0.15+0) ) }}
    font: ppb.ttf
    x: 70
    "y": 68
    size: 20
    color: red
    anchor: mm
  • type: text
    value: " {{ states('sensor.zonnepanelen_dagelijkse_opbrengst') | round(1) }} kWh"
    font: ppb.ttf
    x: 74
    "y": 90
    size: 20
    color: >-
    {{'black' if states('sensor.zonnepanelen_dagelijkse_opbrengst') | float(0)

    = states('sensor.model_zon_forecast') | float(0) else 'red' }}
    anchor: mm

  • type: text
    value: " {{ ('%.0f' | format( (states('sensor.extra_usage_2') | float(0)) |round(-2) )) }} W"
    font: ppb.ttf
    x: 143
    "y": 102
    size: 14
    color: >-
    {{'black' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else 'red'
    }}
    anchor: mm
  • type: icon
    value: >-
    {{'thumb-up' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else
    'thumb-down' }}
    x: 130
    "y": 59
    size: 25
    color: >-
    {{'black' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else 'red'
    }}
  • type: text
    value: Deze maand
    font: ppb.ttf
    x: 219
    "y": 10
    size: 20
    color: black
    anchor: mm
  • type: text
    value: >-
    €{{ ('%.2f' | format(states('sensor.zonnepanelen_maandelijkse_opbrengst') |
    float(0) * 0.279358) ) }}
    font: ppb.ttf
    x: 222
    "y": 40
    size: 34
    color: black
    anchor: mm
  • type: text
    value: >-
    -€{{ ('%.2f' |
    format(states('sensor.zonnepanelen_maandelijke_netto_opbrengst') | float(0)
    • 0.15+0) ) }}
      font: ppb.ttf
      x: 235
      "y": 68
      size: 20
      color: red
      anchor: mm
  • type: text
    value: " "
    font: ppb.ttf
    x: 170
    "y": 93
    size: 22
    color: black
    anchor: lm
  • type: text
    value: "{{ states('sensor.zonnepanelen_maandelijkse_opbrengst') | round(1) }} kWh"
    font: ppb.ttf
    x: 228
    "y": 93
    size: 20
    color: black
    anchor: mm
  • type: text
    value: >-
    Doel:{{ ('%.2f' | format((states('sensor.model_zon_forecast') | float(0) *
    0.279358)|round(2) )) }}, gisteren:{{ ('%.2f' |
    format((state_attr('sensor.zonnepanelen_dagelijkse_opbrengst','last_period')
    | float(0) * 0.279358)|round(2) )) }}
    font: ppb.ttf
    x: 3
    "y": 120
    size: 12
    color: black
    anchor: lm
  • type: text
    value: >-
    {{ now() | as_local() | as_timestamp() | timestamp_custom('%d/%m/%Y
    %H:%M')}}
    font: ppb.ttf
    x: 170
    "y": 120
    size: 10
    color: black
    anchor: lm
Originally created by @Kaboutersuper on GitHub (May 12, 2025). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/533 I have an overview of my solar panel production. Sometimes the generated image is garbled, see screenshot. Some lines of pixels are shifted. It does not happen often and is hard to reproduce. ![Image](https://github.com/user-attachments/assets/eb95f96f-3d28-47c0-b861-5c759073e646) Sensor values: states('sensor.zonnepanelen_dagelijkse_opbrengst') states('sensor.model_zon_forecast') states('sensor.zonnepanelen_dagelijkse_netto_opbrengst') states('sensor.extra_usage_2') states('sensor.zonnepanelen_maandelijkse_opbrengst') states('sensor.zonnepanelen_maandelijke_netto_opbrengst') state_attr('sensor.zonnepanelen_dagelijkse_opbrengst','last_period') Payload: - type: line fill: red width: 3 x_start: 142 y_start: 2 x_end: 142 y_end: 54 - type: line fill: red width: 3 x_start: 142 y_start: 85 x_end: 142 y_end: 93 - type: line fill: red width: 2 x_start: 0 y_start: 109 x_end: 296 y_end: 109 - type: text value: Vandaag font: ppb.ttf x: 70 "y": 10 size: 20 color: black anchor: mm - type: text value: >- €{{ ('%.2f' | format(states('sensor.zonnepanelen_dagelijkse_opbrengst') | float(0) * 0.279358) ) }} font: ppb.ttf x: 70 "y": 40 size: 34 color: >- {{'black' if states('sensor.zonnepanelen_dagelijkse_opbrengst') | float(0) >= states('sensor.model_zon_forecast') | float(0) else 'red' }} anchor: mm - type: text value: >- -€{{ ('%.2f' | format(states('sensor.zonnepanelen_dagelijkse_netto_opbrengst') | float(0) * 0.15+0) ) }} font: ppb.ttf x: 70 "y": 68 size: 20 color: red anchor: mm - type: text value: " {{ states('sensor.zonnepanelen_dagelijkse_opbrengst') | round(1) }} kWh" font: ppb.ttf x: 74 "y": 90 size: 20 color: >- {{'black' if states('sensor.zonnepanelen_dagelijkse_opbrengst') | float(0) >= states('sensor.model_zon_forecast') | float(0) else 'red' }} anchor: mm - type: text value: " {{ ('%.0f' | format( (states('sensor.extra_usage_2') | float(0)) |round(-2) )) }} W" font: ppb.ttf x: 143 "y": 102 size: 14 color: >- {{'black' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else 'red' }} anchor: mm - type: icon value: >- {{'thumb-up' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else 'thumb-down' }} x: 130 "y": 59 size: 25 color: >- {{'black' if states('sensor.extra_usage_2') | float(0) >= 1500.0 else 'red' }} - type: text value: Deze maand font: ppb.ttf x: 219 "y": 10 size: 20 color: black anchor: mm - type: text value: >- €{{ ('%.2f' | format(states('sensor.zonnepanelen_maandelijkse_opbrengst') | float(0) * 0.279358) ) }} font: ppb.ttf x: 222 "y": 40 size: 34 color: black anchor: mm - type: text value: >- -€{{ ('%.2f' | format(states('sensor.zonnepanelen_maandelijke_netto_opbrengst') | float(0) * 0.15+0) ) }} font: ppb.ttf x: 235 "y": 68 size: 20 color: red anchor: mm - type: text value: " " font: ppb.ttf x: 170 "y": 93 size: 22 color: black anchor: lm - type: text value: "{{ states('sensor.zonnepanelen_maandelijkse_opbrengst') | round(1) }} kWh" font: ppb.ttf x: 228 "y": 93 size: 20 color: black anchor: mm - type: text value: >- Doel:{{ ('%.2f' | format((states('sensor.model_zon_forecast') | float(0) * 0.279358)|round(2) )) }}, gisteren:{{ ('%.2f' | format((state_attr('sensor.zonnepanelen_dagelijkse_opbrengst','last_period') | float(0) * 0.279358)|round(2) )) }} font: ppb.ttf x: 3 "y": 120 size: 12 color: black anchor: lm - type: text value: >- {{ now() | as_local() | as_timestamp() | timestamp_custom('%d/%m/%Y %H:%M')}} font: ppb.ttf x: 170 "y": 120 size: 10 color: black anchor: lm
sascha_hemi added the bug label 2026-03-20 18:13:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#837