Different kWh values
Posted: Saturday 20 March 2021 22:22
Hi,
I have got a question. I am running a DZvents script for quite some time now to see how much kwh I used in my house, this on a P1 meter and my Solaredge solarpanels. Bascally the script is working OK for quite some time now.
In this script I look at the kwh's on 2 different ways. The first device is using a General custom device for kWh. In the script I look how much kwh is being generated from the solarpanels then I take this value minus the kWh that is delivered back into the P1 sensor and I add the value what I have bought/used from the P1 sensor. This is all in kWh, I place the value in a General custom device which gives me the kwh's used in house

Now, the second method is that I do the same but now in Watts. So I look how much Watt is being generated minus the watts that are delivered back in the P1 sensor and then I add the usage value from the P1. The result I put in an electric kWh device where the I let the device calculate the kWh on the device. The advantage of using an electric kwh device in Domoticz is that I have better logging and I can look at the costs, which I why I prefer this device. on a later stage I will delete the first option in the script..

Now, I would suspect that using both methods would give me the same kWh value.. but they are not, they are off 0,2 kwh. Could there be that when a Electric / kwh device calulates is always a little bit off then to read out the devices, because of timing?
I have got a question. I am running a DZvents script for quite some time now to see how much kwh I used in my house, this on a P1 meter and my Solaredge solarpanels. Bascally the script is working OK for quite some time now.
In this script I look at the kwh's on 2 different ways. The first device is using a General custom device for kWh. In the script I look how much kwh is being generated from the solarpanels then I take this value minus the kWh that is delivered back into the P1 sensor and I add the value what I have bought/used from the P1 sensor. This is all in kWh, I place the value in a General custom device which gives me the kwh's used in house
Now, the second method is that I do the same but now in Watts. So I look how much Watt is being generated minus the watts that are delivered back in the P1 sensor and then I add the usage value from the P1. The result I put in an electric kWh device where the I let the device calculate the kWh on the device. The advantage of using an electric kwh device in Domoticz is that I have better logging and I can look at the costs, which I why I prefer this device. on a later stage I will delete the first option in the script..
Now, I would suspect that using both methods would give me the same kWh value.. but they are not, they are off 0,2 kwh. Could there be that when a Electric / kwh device calulates is always a little bit off then to read out the devices, because of timing?