virtual P1 meter Gas
Posted: Tuesday 02 December 2025 12:24
Hi,
I created a virtual P1 meter where i want to store the gas usage by using hot water from the central heating system.
I count the numbers of minutes the system delivers hot water and i found out that one minute hot water usage average 50 liters of gas. When the hot water is shutdown a scripts calculates the number of minutes and multiplying by 50 i have the gasusage i want to store i the P1 meter using updateGas.
I found out that the P1 meter stores the total amount of gas asege per 5 minutes and then calculates the usage for that 5 minutes by substraction.
My problem is that i did not succeed to get that value in a local variable in dzVents so i cannot calculated the new value to store in the P1 meter.
Anyone an idea how to get the value out of the P1 meter into a local variable in DZVents.
Tnx,
Hans
I created a virtual P1 meter where i want to store the gas usage by using hot water from the central heating system.
I count the numbers of minutes the system delivers hot water and i found out that one minute hot water usage average 50 liters of gas. When the hot water is shutdown a scripts calculates the number of minutes and multiplying by 50 i have the gasusage i want to store i the P1 meter using updateGas.
I found out that the P1 meter stores the total amount of gas asege per 5 minutes and then calculates the usage for that 5 minutes by substraction.
My problem is that i did not succeed to get that value in a local variable in dzVents so i cannot calculated the new value to store in the P1 meter.
Anyone an idea how to get the value out of the P1 meter into a local variable in DZVents.
Tnx,
Hans