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?
Get P1 meter usage of last hour
Moderator: leecollings
- waltervl
- Posts: 5908
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Get P1 meter usage of last hour
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).
For gas it sometimes is not possible because it is only registered 1 time per hour by the smart meter (depends on meter protocol).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 2
- Joined: Monday 31 October 2022 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Docker
- Contact:
Re: Get P1 meter usage of last hour
That looks nice, thanks!
Who is online
Users browsing this forum: No registered users and 1 guest