Wrong Calculation - Feed-in Values & Grid Consumption Values don't make sense (with a three phase - H3) inverter) ! #456
Replies: 3 comments 21 replies
-
Which calculation exactly do you think is incorrect? We don't provide a "Grid Consumption", "Feed-in" or "Grid CT" entity for the H3. |
Beta Was this translation helpful? Give feedback.
-
There are lots of side issues here you may not be aware with your specific configuration and this has already been discussed a lot. To be clear, I am not using Nathan's integration currently (so the sensor name do not match), but the following code is offered as an example of something that has been run on H1, KH and H3 with main and solar inverters and the feedback is that it produces the correct load power when CT2 is correctly connected: An untested use case is when multiple inverters are in Master / Slave setups. Here, it is not currently clear if the master reports the net power generated / consumed by the master + slaves or whether you need a second meter to report the power flowing into / out of the slave inverters in order to get the correct load power. All of the power values are signed - no values are clipped, so the grid, ct2 and inverter powers can be both +ve and -ve. On 3 phase, you see times where the inverter is importing on one phase and exporting on other phases due to the way it manages the current across the phases. For most people, 3 phase uses net metering (power values are summed across the phases) but there are issues where each phase is metered separately - which I think is the case in Hungary or Bulgaria (sorry, don't recall exactly). 'ct2_handling' is just a switch to give an option to ignore CT2 for debugging - usually CT2 is enabled in this template. The final 0.3 just attempts to avoid -ve spikes in load power if there is a sampling error in the power values due to fast transients - by definition, load power cannot be negative. Here's an example of what this looks like for single phase: Hope this helps? |
Beta Was this translation helpful? Give feedback.
-
Correctly connected means it is measuring the output power that is being injected into the local grid supply from all secondary inverters and is attached the right way around. |
Beta Was this translation helpful? Give feedback.
-
I think there must be something wrong with the calculation of values you get from a 3-phase setup:
At the moment I am consuming power from the net, but the values show:
Grid CT R - -98W
Grid CT S- -83W
Grid CT T- +54W
-> -127 (seems ok)
Grid Consumption R - +98W
Grid Consumption S - +83W
Grid Consumption T - +0W
-> 181 (Too much! exactly: 54 too much, should be 127)
Feed-In R - +0W
Feed-In S - +0W
Feed-In T - +54W
-> 54W (should be ZERO! or minus 127)
I think the "Grid CT" combined is plausible, the rest is not.
I think the calculation of the entities of "Grid Consumption" and "Feed-In" is calculated wrong in the code
it's NOT possible with 3-phases to just take the "positive" values (Grid Consumption / Feed-In) and ignore negative values. It always has to be a calculation (negative AND positive values).
I think there are only two ways to get correct values for this:
Either:
Allow negative values for feed-IN and Grid Consumption and keep R,S,T for those 6 entities:
Grid CT R - -98W
Grid CT S- -83W
Grid CT T- +54W
-> -127W
Grid Consumption R - +98W
Grid Consumption S - +83W
Grid Consumption T - -54W (!)
-> 127W
Feed-In R - -98W (!)
Feed-In S - -83W (!)
Feed-In T - +54W
-> -127W
OR:
simply using a combined entity in the code:
Grid Consumption (combined) - sum up all "Grid Consumption" no matter if they are positive or negative and then, make this value positive if negative or vice-versa (or make it Zero when it makes sense
Same for feed-in
What do you think, guys?
Beta Was this translation helpful? Give feedback.
All reactions