Skip to content
Discussion options

You must be logged in to vote

Hi,

the plugin supports nunjucks templating in labels.

To reduce or completely remove the decimals, you can use the following template string. "state" is a fixed variable that contains the value of a sensor.

To keep the unit of measurement, you can add it like this:
{{ state | round(0) }}{{unit_of_measurement}}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MrMastodonFarm
Comment options

Answer selected by MrMastodonFarm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants