Historic value in value template

That’s because you can’t use a power (W) sensor with a utility meter. You need to use an energy sensor (Wh).

The utility meter will work with any accumulating quantity. Like gas consumption, water consumption, energy use etc… but not gas flow rate, water flow rate or power.

As PPee’s question was about “gas delivered” (gas consumption) the utility meter will work.