[GH-ISSUE #127] Reduce the pressure #72

Closed
opened 2026-05-07 00:18:40 +02:00 by BreizhHardware · 8 comments

Originally created by @Daswomo on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/127

Originally assigned to: @glenndehaan on GitHub.

The problem

The add-on works great.
Can the print be produced without the logo and QR code?

What version of UniFi Voucher Site has the issue?

Home Assistant

What was the last working version of UniFi Voucher Site?

No response

What type of installation are you running?

Docker

Anything in the logs that might be useful for us?


Additional information

No response

Originally created by @Daswomo on GitHub (Apr 11, 2026). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/127 Originally assigned to: @glenndehaan on GitHub. ### The problem The add-on works great. Can the print be produced without the logo and QR code? ### What version of UniFi Voucher Site has the issue? Home Assistant ### What was the last working version of UniFi Voucher Site? _No response_ ### What type of installation are you running? Docker ### Anything in the logs that might be useful for us? ```Text ``` ### Additional information _No response_
BreizhHardware 2026-05-07 00:18:40 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@glenndehaan commented on GitHub (Apr 11, 2026):

Hi @Daswomo,

Currently you can only hide the QR by not supplying the SSID. I could look into an additional toggle for a more compact layout. Would you then still want to show the "connect to [ssid]" text?

Kind regards,
Glenn de Haan

<!-- gh-comment-id:4229789693 --> @glenndehaan commented on GitHub (Apr 11, 2026): Hi @Daswomo, Currently you can only hide the QR by not supplying the SSID. I could look into an additional toggle for a more compact layout. Would you then still want to show the "connect to [ssid]" text? Kind regards, Glenn de Haan
Author
Owner

@Daswomo commented on GitHub (Apr 12, 2026):

It would be preferable if the logo were not included at the beginning of the printout and if the blank end of the voucher were shortened, as this currently wastes an unnecessary amount of paper.
I would really appreciate it if this could be adjusted.

Alternatively, options could be added to the print settings that allow you to choose whether to include the logo or the QR code on the printout.

Thank you for your feedback.

Translated with DeepL.com (free version)

<!-- gh-comment-id:4230981836 --> @Daswomo commented on GitHub (Apr 12, 2026): It would be preferable if the logo were not included at the beginning of the printout and if the blank end of the voucher were shortened, as this currently wastes an unnecessary amount of paper. I would really appreciate it if this could be adjusted. Alternatively, options could be added to the print settings that allow you to choose whether to include the logo or the QR code on the printout. Thank you for your feedback. Translated with DeepL.com (free version)
Author
Owner

@Daswomo commented on GitHub (Apr 12, 2026):

Image

<!-- gh-comment-id:4231024545 --> @Daswomo commented on GitHub (Apr 12, 2026): ![Image](https://github.com/user-attachments/assets/589fa5cc-feeb-4bf0-afb7-387224a3c213)
Author
Owner

@Daswomo commented on GitHub (Apr 12, 2026):

This is the printout from the printer

<!-- gh-comment-id:4231029973 --> @Daswomo commented on GitHub (Apr 12, 2026): This is the printout from the printer
Author
Owner

@glenndehaan commented on GitHub (Apr 13, 2026):

Hi @Daswomo,

I have just released version 8.10.0 this introduces the new PRINTERS_LAYOUT environment variable.
In your case this will be exposed within the HA apps configuration.

This allows you to choose from 3 different layouts: https://github.com/glenndehaan/unifi-voucher-site#configuration

In regards to your question about the print margins. This is something that is out of my control. The printers firmware pre-defines this and is not something I can adjust.

When you look at the picture below you can see that my printer is using less margin, but this is just the printer deciding this:

Image

PS: This also gives a look at the 3 layouts now available.

Kind regards,
Glenn de Haan

<!-- gh-comment-id:4237486434 --> @glenndehaan commented on GitHub (Apr 13, 2026): Hi @Daswomo, I have just released version 8.10.0 this introduces the new `PRINTERS_LAYOUT` environment variable. In your case this will be exposed within the HA apps configuration. This allows you to choose from 3 different layouts: https://github.com/glenndehaan/unifi-voucher-site#configuration In regards to your question about the print margins. This is something that is out of my control. The printers firmware pre-defines this and is not something I can adjust. When you look at the picture below you can see that my printer is using less margin, but this is just the printer deciding this: <img width="1355" height="808" alt="Image" src="https://github.com/user-attachments/assets/fe94c711-a347-4119-a2a5-cd78b947d260" /> PS: This also gives a look at the 3 layouts now available. Kind regards, Glenn de Haan
Author
Owner

@Daswomo commented on GitHub (Apr 13, 2026):

First of all, a big thank you. Do you have a PayPal account? I’d like to send you some money for your work.

What’s the best way to do the update without losing your settings?

<!-- gh-comment-id:4238410880 --> @Daswomo commented on GitHub (Apr 13, 2026): First of all, a big thank you. Do you have a PayPal account? I’d like to send you some money for your work. What’s the best way to do the update without losing your settings?
Author
Owner

@Daswomo commented on GitHub (Apr 13, 2026):

Home Assistant showed me the update.
And it’s working great with the printer settings.
Thanks

<!-- gh-comment-id:4238562975 --> @Daswomo commented on GitHub (Apr 13, 2026): Home Assistant showed me the update. And it’s working great with the printer settings. Thanks
Author
Owner

@glenndehaan commented on GitHub (Apr 13, 2026):

First of all, a big thank you. Do you have a PayPal account? I’d like to send you some money for your work.

Thank you for the kind words. It's not needed to donate, I have a Ko-fi link up in my profile bio if you want to (https://ko-fi.com/J3J1F5WD2).

What’s the best way to do the update without losing your settings?

So thats the beauty of the Home Assistant setup, no changes are needed from your side. Just hit update and it should work, and will keep your settings

<!-- gh-comment-id:4239127106 --> @glenndehaan commented on GitHub (Apr 13, 2026): > First of all, a big thank you. Do you have a PayPal account? I’d like to send you some money for your work. Thank you for the kind words. It's not needed to donate, I have a Ko-fi link up in my profile bio if you want to (https://ko-fi.com/J3J1F5WD2). > What’s the best way to do the update without losing your settings? So thats the beauty of the Home Assistant setup, no changes are needed from your side. Just hit update and it should work, and will keep your settings
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#72
No description provided.