I’m playing around with an ESL, which should get updated every 2h (except at night).
Sometimes it updates correctly (Last update + graph), sometimes it shows old data.
I tried to fix the automation with the help of Copilot, but as expected, this was a total waste of time.
Any hints how to make this automation work correctly and show graph + Last update at the times specified are much appreciated!
alias: Kühlschranktemperatur ESL 5.83
description: Zeichnet Grafik via OpenEPaperLink
triggers:
- trigger: time
at:
- "00:05:00"
- "01:05:00"
- "08:05:00"
- "10:05:00"
- "12:05:00"
- "14:05:00"
- "16:05:00"
- "18:05:00"
- "20:05:00"
- "22:05:00"
conditions: []
actions:
- action: open_epaper_link.drawcustom
metadata: {}
target:
device_id: 53b73eb6e8da7497ae925767b29ca1df
data:
rotate: 270
dither: 2
ttl: 0
refresh_type: "0"
dry-run: false
payload:
- type: text
value: Kühlschranktemperatur
x: 20
"y": 8
size: 28
font: rbm.ttf
anchor: lt
- type: text
value: Last update {{ update_time }}
x: 572
"y": 15
size: 16
font: rbm.ttf
anchor: rt
- type: text
value: "{{ states('sensor.atc_6e8695_batterieprozentsatz') | int }}%"
x: 615
"y": 15
size: 16
font: rbm.ttf
anchor: rt
- type: icon
value: >
{% set b = states('sensor.atc_6e8695_batterieprozentsatz') | int %}
{% if b >= 100 %} battery-100 {% elif b >= 90 %} battery-90 {% elif
b >= 80 %} battery-80 {% elif b >= 70 %} battery-70 {% elif b >= 60
%} battery-60 {% elif b >= 50 %} battery-50 {% elif b >= 40 %}
battery-40 {% elif b >= 30 %} battery-30 {% elif b >= 20 %}
battery-20 {% else %} battery-10 {% endif %}
x: 610
"y": 5
size: 32
color: >
{% set b = states('sensor.atc_6e8695_batterieprozentsatz') | int %}
{{ 'red' if b <= 20 else 'black' }}
- type: plot
data:
- entity: sensor.indoor_outdoor_meter_763d_temperatur
color: red
width: 2
- entity: sensor.kuhlschrank_temperatur
color: black
width: 2
ylegend:
width: -1
size: 16
color: black
yaxis:
width: 2
tick_width: 1
tick_every: 1
color: grey
grid_style: dashed
xlegend:
width: 18
size: 16
format: "%H"
interval: 7200
color: black
xaxis:
width: 1
tick_width: 1
tick_length: 6
tick_every: 60
color: grey
grid_style: dashed
x_start: 14
y_start: 46
x_end: 630
y_end: 475
low: 0
duration: 86400
font: ppb.ttf
background: white
variables:
update_time: "{{ now().strftime('%H:%M') }}"
mode: restart