Is there a way to set precision of temp display? #340
-
|
The temperature display for my thermostat on the Stream Deck shows the temperature to two decimal points (e.g., 71.42 F). I would like to not display the decimals (e.g., 71 F). Is there a way to do this? I have the precision set correctly in HA, and it displays with the desired precision on my HA dashboard. But that setting doesn't seem to affect the Stream Deck display. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Actually looking for this too. Fun to find this as the only thing mentioning "precision", and just a day old. |
Beta Was this translation helpful? Give feedback.
-
|
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: |
Beta Was this translation helpful? Give feedback.

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}}