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

Feature Request - format template #85

Closed
mjhcdk opened this issue Jun 22, 2020 · 2 comments
Closed

Feature Request - format template #85

mjhcdk opened this issue Jun 22, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@mjhcdk
Copy link

mjhcdk commented Jun 22, 2020

Hi,

Thank you for a sharing this awesome card - But wonder if it would be possible to use format templating when displaying entities. i.e. I have sensors showing temperature with 2 decimals (23.34 c ). I would like to display then as (23c or 23.4 c). I know I can create a "shadow" sensor with value_template, but it seems a bit cumbersome.

Regards
Michael

@ktownsend-personal
Copy link

In my case I have an attribute value of seconds (time_remaining attribute on a sprinkler zone), but I want to show it formatted as hours & minutes: 00:00, or possibly also with seconds: 00:00:00. I'd be happy with a new format type of "elapsed" for my specific case, but templating would be far more flexible.

@benct benct added the duplicate This issue or pull request already exists label Sep 10, 2020
@benct
Copy link
Owner

benct commented Sep 10, 2020

This would be added/supported with general templating support (see #35).

@benct benct closed this as completed Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants