Blackymas / NSPanel_HA_Blueprint

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

Allow for longer Text for Entities on homepage #2020

Closed fbbln closed 2 months ago

fbbln commented 2 months ago

Enhancement Summary

Homeage entities should allow more than 10 chars text

Detailed Description

Currently entities can only show 10chars on the homepage. This limits usability quite a lot. This should be either configurable or simply not cut text and require the user to take care that nothing is overlapping.

Additional Context

No response

edwardtfn commented 2 months ago

This is not as simple as itlooks like. The Nextion display used on those panels imposes a lot of those limitations, requiring to define fix space for each component, so we don't have all the freedom to adjust based on what an user decides to put on the screen... It must be a one solution to fit all. Also, there's a limit on Nextion memory which is defined by the number or chars on each component and it is not uncommon that we extrapolate this limit and have to find places to restrict to be able to compile the screen file. But anyhow, we do have some space to increase number of chars on the Home page for some components. Which one is more critical for you?

fbbln commented 2 months ago

Entity 2 and 3 on the Homepage would be a great to show more text. It may also be a solution to remove the icon in favor of more text as it's quite small and non-dynamic anyway.

edwardtfn commented 2 months ago

I've added a bit more space. It still on dev only, but will be included in the next release. Please let me know after your update if we have to work more at this.

fbbln commented 2 months ago

Looks better at first glance. How many chars are possible now?

edwardtfn commented 2 months ago

It's hard to answer that, but before there was a hard cut on 10 chars, and this was changed to 30 chars, however, there is a limit of pixels also. I have also increased that a bit, but it's hard to increase more as Nextion display cannot handle nicely when two components are overlapping in the screen. The bumper of pixels used by a single char will be variable. An "i" needs way less than a "W", so it will depend on your used chars, but never more than 30 chars.