Blackymas / NSPanel_HA_Blueprint

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

Removing not required Button and Entity pages from display #946

Closed tgessendorfer closed 6 months ago

tgessendorfer commented 1 year ago

It would be great if one could en- and disable Entity and Button pages to be shown on the display. Mostly I only use a sub portion of the 4 possible pages but the dots on the screen for any non-used pages is still shown with empty pages. It would be great to have a possibilty to remove or disable non used pages.

deejaybeam commented 1 year ago

https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/868

denes44 commented 1 year ago

Since the contents of the entity and button pages are updated dynamically when loading the page, it makes sense to only leave 1 page in the HMI file, and track which page we are on with a variable. That way, there are no limits on the number of the pages, it can be defined in the blueprint (it can be more than 4, or less).

edwardtfn commented 1 year ago

I've played a bit with this and as I mentioned in #868, the hardest was to find a replacement for those page indicators. I've tried with other circles, but it didn't looked that good, but I'm sure we can find a nice solution for that. I will see if I can find some time for this after the next release (already quite big). But any help will be welcome. 😉

denes44 commented 1 year ago

Sure, doing the circles can be troublesome, because if you do it for 1-8 pages it would be 35 images (although small images). Displaying the current page with a number is certainly easier.

edwardtfn commented 1 year ago

I was thinking more about using circle shaped chars (https://commons.m.wikimedia.org/wiki/Unicode_circle_shaped_symbols). That could be a simple string quite easy to create based on the number of pages and the current page, but I still have to investigate it to find something that looks nice. My first tests some time ago wasn't giving me as good results as the current implementation. I wanna avoid numbers as that could mean additional localization needs.

denes44 commented 1 year ago

Oh, yes, that's a good idea, doing it with font.

edwardtfn commented 6 months ago

It is still pending more tests, but this is implemented in `dev´ and hopefully will be released with v4.3 soon. I've implemented only for button pages and for entities pages for now, as I wanna review the whole weather pages in the near future.

I'm closing this for now to clean-up my backlog, but please feel free to add comments or to reopen-it if the new solution is not solving the issue.

edwardtfn commented 6 months ago

Hi, have you got a chance to try the solution for this currently in beta? If so, please let me know if that was effective.