[GH-ISSUE #522] HS BWRY 3,5" - preview image uses wrong colors #2541

Closed
opened 2026-03-20 21:07:29 +01:00 by sascha_hemi · 11 comments
Owner

Originally created by @bogd on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/522

Describe the bug
On 4-color (BWRY) tags, the preview image shown by the AP is wrong or missing.

To Reproduce
Steps to reproduce the behavior:

  1. Set the tag to "current date". The preview image shows the DoW as yellow
  2. The tag shows the DoW in red

Also:

  1. Draw a custom image from HomeAssistant, using all colors (black, white, red)
  2. The preview image on the AP is missing completely
  3. The "Content" shown in HAss is also wrong (showing black instead of yellow)

Expected behavior
The AP preview and the "Content" in HAss should match what is shown on the tag

Screenshots

Actual tag:
Image
AP preview:
Image
HAss preview:
Image

Additional info
Code used to generate tag contents:

background: white
  payload:
    - type: rectangle
      x_start: 20
      x_end: 80
      y_start: 15
      y_end: 100
      width: 2
      fill: red
      outline: black
    - type: rectangle
      x_start: 100
      x_end: 180
      y_start: 15
      y_end: 100
      width: 2
      fill: yellow
      outline: black
    - type: rectangle
      x_start: 200
      x_end: 280
      y_start: 15
      y_end: 100
      width: 2
      fill: black
      outline: red
    - type: rectangle
      x_start: 300
      x_end: 380
      y_start: 15
      y_end: 100
      width: 2
      fill: black
      outline: yellow
Originally created by @bogd on GitHub (Oct 30, 2025). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/522 **Describe the bug** On 4-color (BWRY) tags, the preview image shown by the AP is wrong or missing. **To Reproduce** Steps to reproduce the behavior: 1. Set the tag to "current date". The preview image shows the DoW as yellow 2. The tag shows the DoW in red Also: 1. Draw a custom image from HomeAssistant, using all colors (black, white, red) 2. The preview image on the AP is missing completely 3. The "Content" shown in HAss is also wrong (showing black instead of yellow) **Expected behavior** The AP preview and the "Content" in HAss should match what is shown on the tag **Screenshots** Actual tag: ![Image](https://github.com/user-attachments/assets/0ce5ba21-4c66-407a-96b4-c371fa3a70f5) AP preview: <img width="917" height="416" alt="Image" src="https://github.com/user-attachments/assets/9b0c1881-9734-4694-aa92-7ee5a8b05c14" /> HAss preview: <img width="1112" height="687" alt="Image" src="https://github.com/user-attachments/assets/804d55e6-ace5-4809-9303-18a4e3e332a1" /> **Additional info** Code used to generate tag contents: ``` background: white payload: - type: rectangle x_start: 20 x_end: 80 y_start: 15 y_end: 100 width: 2 fill: red outline: black - type: rectangle x_start: 100 x_end: 180 y_start: 15 y_end: 100 width: 2 fill: yellow outline: black - type: rectangle x_start: 200 x_end: 280 y_start: 15 y_end: 100 width: 2 fill: black outline: red - type: rectangle x_start: 300 x_end: 380 y_start: 15 y_end: 100 width: 2 fill: black outline: yellow ```
sascha_hemi added the bug label 2026-03-20 21:07:29 +01:00
Author
Owner

@nlimper commented on GitHub (Oct 30, 2025):

In all HS BWRY tags it seems the perceptual color is not added.

"colortable": {
		"white": [ 255, 255, 255 ],
		"black": [ 0, 0, 0 ],
		"red": [ 255, 0, 0 ],
		"yellow": [ 255, 255, 0 ]
	},
	"perceptual": {
		"white": [ 255, 255, 255 ],
		"black": [ 0, 0, 0 ],
		"yellow": [ 200, 200, 0 ]
	},

The entry for red in the perceptual table is missing (those colors are used for rendering the previews).
Your display is https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/resources/tagtypes/6D.json, but also other HS BWRY tagtypes are missing the entry.

<!-- gh-comment-id:3470405465 --> @nlimper commented on GitHub (Oct 30, 2025): In all HS BWRY tags it seems the perceptual color is not added. ``` "colortable": { "white": [ 255, 255, 255 ], "black": [ 0, 0, 0 ], "red": [ 255, 0, 0 ], "yellow": [ 255, 255, 0 ] }, "perceptual": { "white": [ 255, 255, 255 ], "black": [ 0, 0, 0 ], "yellow": [ 200, 200, 0 ] }, ``` The entry for red in the perceptual table is missing (those colors are used for rendering the previews). Your display is https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/resources/tagtypes/6D.json, but also other HS BWRY tagtypes are missing the entry.
Author
Owner

@atc1441 commented on GitHub (Oct 30, 2025):

Just correctly added the perceptual color table for HS
Not sure if it is also needed for Opticon or M3

<!-- gh-comment-id:3470423505 --> @atc1441 commented on GitHub (Oct 30, 2025): Just correctly added the perceptual color table for HS Not sure if it is also needed for Opticon or M3
Author
Owner

@bogd commented on GitHub (Oct 31, 2025):

I updated the firmware on my AP, and downloaded the tag definition files (which did pull an updated 6D.json). However, I still see the issue (preview uses yellow, tag shows red). Is there anything else I need to do to apply the fix?

<!-- gh-comment-id:3473946007 --> @bogd commented on GitHub (Oct 31, 2025): I updated the firmware on my AP, and downloaded the tag definition files (which did pull an updated 6D.json). However, I still see the issue (preview uses yellow, tag shows red). Is there anything else I need to do to apply the fix?
Author
Owner

@atc1441 commented on GitHub (Oct 31, 2025):

please clear the cache of your browser

<!-- gh-comment-id:3473950274 --> @atc1441 commented on GitHub (Oct 31, 2025): please clear the cache of your browser
Author
Owner

@bogd commented on GitHub (Oct 31, 2025):

Amazingly enough, that was it... I had performed all possible updates (even flashed the C6 update on the AP), but I never would have thought of a browser issue!

Thank you!

<!-- gh-comment-id:3474008814 --> @bogd commented on GitHub (Oct 31, 2025): Amazingly enough, that was it... I had performed all possible updates (even flashed the C6 update on the AP), but I never would have thought of a browser issue! Thank you!
Author
Owner

@atc1441 commented on GitHub (Oct 31, 2025):

Nice to hear :)

<!-- gh-comment-id:3474023120 --> @atc1441 commented on GitHub (Oct 31, 2025): Nice to hear :)
Author
Owner

@AquariDN commented on GitHub (Nov 15, 2025):

Which firmware worked for you? I can't find one that supports BWRY.

<!-- gh-comment-id:3536775521 --> @AquariDN commented on GitHub (Nov 15, 2025): Which firmware worked for you? I can't find one that supports BWRY.
Author
Owner

@nlimper commented on GitHub (Nov 16, 2025):

@AquariDN They all support BWRY from the beginning. But, always use the latest version.
The actual definition of the colors is in the tagtype json, which correspondents with the tagtype from the tag firmware. If something is not working, you have to provide more info.

<!-- gh-comment-id:3537040022 --> @nlimper commented on GitHub (Nov 16, 2025): @AquariDN They all support BWRY from the beginning. But, always use the latest version. The actual definition of the colors is in the tagtype json, which correspondents with the tagtype from the tag firmware. If something is not working, you have to provide more info.
Author
Owner

@AquariDN commented on GitHub (Nov 16, 2025):

@nlimper Does that mean I can simply use this file for the HS Pro 350Q-N ?(https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/binaries/Tag/TLSR_HS_BWY_35_ALPHA.bin)

<!-- gh-comment-id:3537673814 --> @AquariDN commented on GitHub (Nov 16, 2025): @nlimper Does that mean I can simply use this file for the HS Pro 350Q-N ?(https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/binaries/Tag/TLSR_HS_BWY_35_ALPHA.bin)
Author
Owner

@nlimper commented on GitHub (Nov 16, 2025):

@AquariDN That's a tag firmware file. Of course your tag firmware should be suitable for the right hardware. I don't know which are compatible, but this issue was about the access point, not about the tag firmware. :-)

<!-- gh-comment-id:3538512260 --> @nlimper commented on GitHub (Nov 16, 2025): @AquariDN That's a tag firmware file. Of course your tag firmware should be suitable for the right hardware. I don't know which are compatible, but this issue was about the access point, not about the tag firmware. :-)
Author
Owner

@AquariDN commented on GitHub (Nov 16, 2025):

ok Thank you @nlimper

<!-- gh-comment-id:3538821049 --> @AquariDN commented on GitHub (Nov 16, 2025): ok Thank you @nlimper
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2541