Currently trying to figure out, with no hope so far, how to round in a statistic card. Below is my use case and card code, I’m trying to get my humidity and battery levels to round to whole numbers. I’ve tried several different things such as including “precision” and even some templates (very inexperienced), but haven’t gotten anything to work. Any ideas on this? Seems simple enough
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: statistic
entity: sensor.keg_temperature
period:
rolling_window:
duration:
hours: 48
stat_type: mean
name: Temp
- type: statistic
entity: sensor.keg_humidity
period:
rolling_window:
duration:
hours: 48
stat_type: mean
name: Humidity
- type: statistic
entity: sensor.keg_battery
period:
rolling_window:
duration:
hours: 168
stat_type: mean
name: Battery
- type: entities
entities:
- entity: sensor.keg_temperature
secondary_info: last-updated
name: Current Temperature