Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OTHER] Secondary_info entities only display whole numbers #76

Closed
shammond-uk opened this issue Apr 13, 2023 · 5 comments
Closed

[OTHER] Secondary_info entities only display whole numbers #76

shammond-uk opened this issue Apr 13, 2023 · 5 comments

Comments

@shammond-uk
Copy link

Thanks so much for adding the secondary_info option on all bubbles in the latest beta. This is very useful, but I note that irrespective of the data type of the entity being displayed, it rounds values to the nearest whole number. This behaviour is not in line with the other existing primary entities which round to one decimal place. Would be really useful if you could bring the secondary_info entities in line with the primaries and support decimals. Thanks

@TrilIiard
Copy link

Yeah, thanks for your work. Would be nice if it could be possible to show all kind of numbers like time left for batterys

@flixlix
Copy link
Owner

flixlix commented Apr 14, 2023

Thank you very much for your support and suggestion.
I like this idea, but I think this would get out of hand really quickly, because there are unlimited scenarios in which the secondary_info can be used. I would still like for people to have the option to go crazy advanced, so I had an idea:
How about an option in which users can enter any Template they want and whatever the output of that template is, will be displayed in the secondary_info field?

Edit: Added this to my to-do list in the readme 🙂

@TrilIiard
Copy link

That would open up a whole new Level

@tomas-dorda
Copy link

That would be great! I would like to use the secondary_info for grid current tarif. Which is string NT or VT which is currently not possible. Thanks for the great project!

@flixlix
Copy link
Owner

flixlix commented Apr 19, 2023

Please check the new Beta I just introduced. Spoiler: TEMPLATES!
New Release - v0.1beta

@flixlix flixlix closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants