joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
870 stars 190 forks source link

[Feature Request] override names of navigate items #120

Closed qnpns closed 2 years ago

qnpns commented 2 years ago

Hello,

Firstable, thank you for your amazing work on this project, every update adds judicious functionalities, it is really a pleasure to see what you are accomplishing.

After I updated to 2.5.3 and adapted my apps.yaml, I noticed that the overrided names I used for the navigate.xxx entities are no more working, the name of the buttons are the title of the pages they point to.

Everything else seams to work flowlessly.


And I have another question : would it be possible to add more icons by ourselves ? I tried to understand how you do that but it seems to be magic :p

Best regards,

Chris

joBr99 commented 2 years ago

try to update in hacs to main, current development version should allow you to override the name of the navigation item, in the current release you can only set the title on the card itself

https://github.com/joBr99/nspanel-lovelace-ui/commit/2f072a4e6885762028ac7f806d430d85338a44ed

which icons do you need? they need to be from this list https://htmlpreview.github.io/?https://github.com/aderusha/Generate-HASP-Fonts/blob/master/cheatsheet.html

the firmware has an global text field which is shared over all pages where it substrings the icons from (because it's not possible to tranfer unicode over nextion serial, note that this is limited by the memory of the stm32 on the display, so that's the reason why not all icons in the font have an id)

qnpns commented 2 years ago

try to update in hacs to main, current development version should allow you to override the name of the navigation item, in the current release you can only set the title on the card itself

2f072a4

Great ! It's OK with this version, thank you :)

which icons do you need? they need to be from this list https://htmlpreview.github.io/?https://github.com/aderusha/Generate-HASP-Fonts/blob/master/cheatsheet.html

Don't bother, I can live with the current icons, I'm sure there will be something in the futur updates that will fit my needs ;)

(Actually I made a sub menu cardGrid with the rooms I want to controle (livingroom, bedroom, my son's bedroom, garage, ...), each button points to another cardGrid or cardEntities corresponding to the principal actions and/or sensors of the room and it would have been nice to be able to have a visual corresponding to each room.)

Have a nice day !

joBr99 commented 2 years ago

We can do that, just pick icons you need from the cheetsheet and add the material design icon names to this issue

qnpns commented 2 years ago

It's very nice of you.

I think those icons could summerize my house (the football ball is for my son's room ^^ ) : e4b8 sofa f2d2 garage-variant e2e2 bed e4b7 soccer e4a5 silverware-variant

Thank you again for everything.

joBr99 commented 2 years ago

icons added in v2.5.5