Sensor that only shows total use to daily use

My sensor for gas use (“slimmemeter”) shows only the total gas consumption over time. I would like to create from this a sensor that shows gas consumption per hour. For this I would have to subtract the total consumption from one hour ago from the current consumption. But I have no clue how to create such a sensor. Can anyone help?

1 Like

Try using the utility_meter function.
Something like this

    source: sensor.consumption_gas_delivered
    cycle: hourly
1 Like

Brilliant! It works.

Where could I have found this function?

thanks, it is amazing how much functionality there is in home assistant !