Gas sensor historical readings

Hi there,

I have a Bosch Condens gas boiler integrated into HA and I have created a new sensor to combine heating and hot water kWh readings and also convert these into m3. However, Bosch does not provide “real-time” readings, but rather a total for yesterday. Is there a way to tell HA (energy dashboard in particular) to treat sensor value as today - 1?

My template sensor configuration looks as follows:

sensor:
  - platform: template
    sensors:
        total_gas_consumption:
            friendly_name: "Total Gas Consumption"
            unit_of_measurement: 'm³'
            device_class: 'gas'
            attribute_templates:
                state_class: 'total_increasing'
            value_template: '{{ states("sensor.energy_central_heating") |float / 8.12 + states("sensor.energy_hot_water") |float / 8.12 }}'