OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
https://openepaperlink.de
Apache License 2.0
159 stars 35 forks source link

Error 400? in imagegen.py when calling service... #102

Closed Ivanverdonck closed 10 months ago

Ivanverdonck commented 10 months ago

Describe the bug Error 400? in imagegen.py when calling service... Display update of Tags does not work using home assistant service.

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.open_epaper_link.imagegen Source: custom_components/open_epaper_link/imagegen.py:328 Integration: OpenEPaperLink (documentation, issues) First occurred: 6 januari 2024 om 20:25:07 (20 occurrences) Last logged: 14:36:51

400

To Reproduce Steps to reproduce the behavior:

  1. call service with example code:
service: open_epaper_link.drawcustom
data:
  background: white
  rotate: 270
  ttl: 300
  payload:
    - type: rectangle
      outline: red
      fill: white
      width: 5
      x_start: 10
      y_start: 10
      x_end: 185
      y_end: 240
    - type: line
      fill: red
      width: 3
      x_start: 0
      y_start: 237
      x_end: 196
      y_end: 240
    - type: text
      value: Hello World!
      font: ppb.ttf
      x: 0
      "y": 0
      size: 40
      color: red
    - type: icon
      value: account-cowboy-hat
      x: 60
      "y": 120
      size: 120
      color: red
target:
  entity_id: open_epaper_link.***
  1. See error

Expected behavior Tag should be generated and send to tag

Screenshots

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.open_epaper_link.imagegen Source: custom_components/open_epaper_link/imagegen.py:328 Integration: OpenEPaperLink (documentation, issues) First occurred: 6 januari 2024 om 20:25:07 (20 occurrences) Last logged: 14:36:51

400

Additional context Tried different service calls, all have same error.

Ivanverdonck commented 10 months ago

Sorry, Display update seems to work... only a warning...

EvertJob commented 10 months ago

What update did you do? I'm having the same issue.

I've did an update for the tag itself, that don't work/resolve the issue. Yesterday it was working fine.