Energy Consumption Current Day

Trying to get a card to display the current energy consumption for an appliance to show the current day only like the bar chart under the Monitor individual devices under the energy section.

I’ve read the statistics page but can’t seem to see how to limit a basic text carr, it just shows the consumption since it was added.

I’ve created a new sensor in the configuration.yaml

  - sensor:
    - name: "Fridge Consumption (CONS)"
      unit_of_measurement: "kWh"
      state: "{{ states('sensor.consumption_39') | float / 1 }}"
      state_class: total_increasing
      device_class: energy
      

I’ve seen references to using templates, but I can’t find any clear examples or guides.

Pointers are greatly appreciated.

I think you want to create a daily utility meter see Utility Meter - Home Assistant

Ahhh thanks!