Hi fruit
I think UK gas bills may be different to German bills too (I bet yours are simpler!), not a problem of course.
We are charged per kWh and have text such as
Gas prizeHolly shit!No, you are absolutely correct... We are billed in €/kWh as well!
The calculations and numbers in my modules are correct already, since I just multiply the energy (in kWh) with gasprize (in curreny/kWh).
So I just corrected the commandref description and the name of one attribute:
GasPricePerCubic
is now
GasPricePerKWh
Everybody: Please apply update and as soon you see the attribute GasPricePerKWh in your device, please use
deleteattr myGasCalculator GasPricePerCubic
or the standard web-interface to delete the obsolescent (old) attribute.
Volume conversionAbout your volume correction - I saw this factor before on the gas bill of my father-in-law (Amersham, Bucks) and it is corresponding with our Gas z Value.
In your case, you are sitting lower than the gas main supply station so your gas ends up higher compressed than originally pumped in the consumer network at the gas main supply station.
In my case, my counter provides 1 Impuls / (1/100)m
3 = 1 Impuls / 0.010m
3 = 1Impuls/10l), which means the attribute GasCubicPerCounts must be set to 0.01.
In your case, your counter provides 1 Impuls / (5/1000)m
3 = 1 Impuls / 0.005m
3 = 1Impuls/5l), which means the attribute GasCubicPerCounts must be set to 0.005.
I renamed this attribute as well!
You seems to have already an newer gas meter unit in m
3.
Otherwise the additional conversion from imperial to metric would be 0.028317 m
3/ft
3.
calorific conversionThis is a very British thing!

Please calculate (39.3 calorific value / 3.6 to convert to kWh) = 10,9167 and add the value in the attribute "GasNominalHeatingValue".
Thanks a lot for the bug-finding!
Best regards
Sailor