Hi,
Since my heatpump doesn’t have an official Homey app, I’m trying to build my own. Unfortunately, I’m not a great developer, so I’m slowly building up to a functioning app…
One thing that I haven’t figured out is tracking of the energy consumption. I think I’m supposed to use ‘meter_power’ for this. But since the API of the heatpump doesn’t provide any cumulative energy consumption value I guess I have to calculate it myself? I guess I will have to use the real-time energy usage that is provided by the API in combination with the frequency that I’m polling the API with to calculate the kWh, and then just keep adding to the ‘meter_power’ capability value?
Or does anyone have any other idea, if there’s some smart built-in functionality to make Homey calculate this based on data in ‘measure_power’?
Thanks for any pointers in the right direction!