Page 1 of 1

Get P1 meter usage of last hour

Posted: Monday 31 October 2022 11:12
by plofkip
Hi!

Is it possible using the device API in dzVents to retrieve the P1 usage (power and gas) for the last hour?
Only thing I could think of so far is having a script that runs hourly and uses the data storage to store the last known counter.
But this doesn't guarentee that the current counter - data counter = usage of the last hour (what if the script didn't run for some reason).

So is it possible to retrieve the usage of the last hour?

Re: Get P1 meter usage of last hour

Posted: Monday 31 October 2022 11:47
by waltervl
Check the history function of DzVents: https://www.domoticz.com/wiki/DzVents:_ ... les_API.29

For gas it sometimes is not possible because it is only registered 1 time per hour by the smart meter (depends on meter protocol).

Re: Get P1 meter usage of last hour

Posted: Monday 31 October 2022 12:07
by plofkip
That looks nice, thanks!