Converting m3 to kWh
Is there a way in the REST or MQTT APIs to get the conversion factor from m3 to kWh?
For context, I am working on improving my integration into Home Assistant Energy. Home Assistant doesn't like the resetable kWh today inputs, so I want to use the volume reading, but then the cost is unknown.
Comments
To convert the m^3 value for gas consumption to kWh, BTU or joules you need to know the calorific value from your gas supplier.
https://www.nationalgrid.com/uk/gas-transmission/data-and-operations/calorific-value-cv
Hi,
I have a home assistant integration working, giving m3 reading and costs, via a sensor, using the Rest API.
It also supplies the current tariff.
https://github.com/ColinRobbins/ha-hildebrandglow-dcc
Note this is a fork of the HandyHat repo of the same name, pending a pull request.
Also note, that Home Assistant Energy will support kWh in a future release.
It's in the development branch:
https://community.home-assistant.io/t/energy-dashboard-allow-gas-as-kwh/339891/16