Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.4k stars 253 forks source link

`Bug` qrcode_value to smal #2282

Open tbretz65 opened 2 weeks ago

tbretz65 commented 2 weeks ago

TFT Version

4.3.11

Firmware Version

4.3.11

Blueprint Version

4.3.11

Panel Model

EU

What is the bug?

when I enter my wlan ssid and my passwd, the password is truncated.

Steps to Reproduce

e.g qrcode_value is like : WIFI:T:WPA;S:FritzBox Guest Wlan;P:123456789012345678901234567890;; you get: WIFI:T:WPA;S:FritzBox Guest Wlan;P:123456789012345 as qrcode

if the qr code value is smaller: (like without "Wlan" in ssid) WIFI:T:WPA;S:FritzBox Guest;P:123456789012345678901234567890;; you get: WIFI:T:WPA;S:FritzBox Guest;P:12345678901234567890

Your Panel's YAML

No response

ESPHome Logs

No response

Home Assistant Logs

No response

edwardtfn commented 2 weeks ago

This is due to a memory limitation on that Nextion display used on NSPanel. I can take a look later on how to prove this. How many chars you need in total?

tbretz65 commented 2 weeks ago

the entire entry is approximately 80 characters long. It's about the QR code for a WiFi like this: WIFI:T:WPA;S:FritzBox-6591 Gastzugang;P:yBVcuyb3K6Gb4jxyzkXSAxDPayudzh9n;; that changes daily

Thanks for your help

tbretz65 commented 1 week ago

Hello, I tested it myself in the nextion editor. Unfortunately I can't set 80 characters for the QR code. Text_maxl = 78. It can't do more than that. but 78 is enough for me too So if 80 characters isn't possible, then 78 is enough

Thank you

edwardtfn commented 1 week ago

I think we can do more with a dynamically plotted QR code. The downside is not having the memory verification upfront, but I will play with this and see how much we can go with this new approach.