Dear,
using AI on the edge, I am reading my gasmeter. Since this is done based on cubic metres, I am using a template to calculate kWh from it.
The (very simple) template looks like this
So I simply multiply the gasmeter value with the gas condition and the calorific value.
This template is placed in my energy dashboard, which generally works quite well. However, at certain times, the gasmeter value becomes unavailable. As soon as it comes back to life, it „increases“ to the old value - which means that it counts the complete meter value.
So the sensor looks like this:
Great, thank you for your support. I really need to get used to Jinja…
In terms of your remarks: I have prepared caloric value and condition number as input number, as they are changing from year to year. Therefore, I am always updating the input numbers to the latest information on the gas invoice.