Rounding in statistic card

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

image

Have a look at the thread here:
Round a sensor number on a card - Configuration / Frontend - Home Assistant Community (home-assistant.io)

Created a template sensor and use the template

{{ sensor.keg_temperature | round() }}

By changing the value in the brackets for the round function, you can determine how many decimal places you want. The example above rounds to the nearest whole number.

Unfortunately without custom cards or one of the options by eggman in the linked thread, you will have to create a wrapper template sensor for every sensor you have.

If you are happy to use custom cards, try the mini-graph-card, disable the graph to show only the value and set decimals: 0 per the documentation.