mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #533] Pixels of generated image are sometimes shifted #2496
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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:
fill: red
width: 3
x_start: 142
y_start: 2
x_end: 142
y_end: 54
fill: red
width: 3
x_start: 142
y_start: 85
x_end: 142
y_end: 93
fill: red
width: 2
x_start: 0
y_start: 109
x_end: 296
y_end: 109
value: Vandaag
font: ppb.ttf
x: 70
"y": 10
size: 20
color: black
anchor: mm
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)
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
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)
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
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'
}}
value: Deze maand
font: ppb.ttf
x: 219
"y": 10
size: 20
color: black
anchor: mm
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
value: >-
-€{{ ('%.2f' |
format(states('sensor.zonnepanelen_maandelijke_netto_opbrengst') | float(0)
font: ppb.ttf
x: 235
"y": 68
size: 20
color: red
anchor: mm
value: " "
font: ppb.ttf
x: 170
"y": 93
size: 22
color: black
anchor: lm
value: "{{ states('sensor.zonnepanelen_maandelijkse_opbrengst') | round(1) }} kWh"
font: ppb.ttf
x: 228
"y": 93
size: 20
color: black
anchor: mm
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
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