I’ve upgraded from 3.79 to 3.90 beta 6 to test it out.
What I’ve noticed is that between 7 and 8 o’clock, the system supposedly consumed 69 kW and also supplied 69 kW. That’s technically impossible with this system!
I also can’t really work out where the value shown under Advanced comes from…
I’ve seen a similar effect before with a Shelly device on an earlier version of Venus OS.
With things like this, you always need to check the meter readings on your devices:
You have Solar and Consumption Spike at the same time. That almost certainly means a solar meter has gone up by 69 kWh, and the GX — which hasn’t seen where those 69 kWh have gone — concludes that they must have been consumed directly.
If you’re using external meters (Em3 as pvinverter?), you need to make sure they never send a “0” into the system. If a meter reports 0, that triggers a “reset” of its reference values in the GX. If the meter then jumps back to a correct reading (68 kWh?) two seconds later, the GX naturally immediately infers the corresponding solar production and, as a result, the consumption.
(This happens in Node-Red when you initialise an AcLoad with default values and redeploy the nodes — it briefly sends the default 0.)
I have 2 Shelly PM Minis set up as virtual PV inverters. The 3rd EM is on the same network, but disabled in Venus.os. The sun doesn’t rise here until after 7:30.
The consumption / generation figures under Advanced don’t make sense.
The only “mistake” I made was that data was still being integrated via MQTT through Opendtu for the 4 PV inverters — in other words, the PV yield was counted twice: once via the two PV Minis and once via Opendtu.
I’m using the native Shelly integration in Venus OS.
Also, on the day I took the screenshots, I accidentally still had a Node-RED script running that imports exactly the same Hoymiles inverters again as virtual PV inverters via MQTT from OpenDTU. The script ran without any problems for many months on 3.7X.
The Shelly devices, which have been around for a long time, only became usable with 3.80, and were accidentally still enabled when I was switching back and forth between 3.79 and 3.80.
But doubling the PV output can’t cause this kind of discrepancy.
Does Venus OS have problems if virtual PV inverters have the same names?
Today, I restored the same configuration.
This morning, the same problem occurred again, but the peak was smaller.
@DirkW Check that you are not accidentally sending 0 anywhere. I have seen exactly the same problem with virtual meter where “initialize with defaults” in node red made it send 0 anytime node red flow was restarted - or node re-reployed… and that’s precisely that makes the bar jump to impossible values once real number is obtained…
Then the problem could only occur in 2 situations:
1.) The DTU temporarily sends meter readings that are “too low”, but not necessarily exactly 0. (That would be a bug in the DTU and difficult to handle here — unless you monitor the meter reading yourself and disallow any “new” value that is lower than what you’ve already seen.)
2.) You use MQTT and have an (outdated) “retained” value on the topic, which is sent to Node-Red every time it connects to MQTT. (In that case, simply publish an “empty payload, retain true” to the topic once, and the broker will delete old retained values — ideally after you’ve added the 0 filter above )
Based on your meter, we can now rule out a zero: otherwise, the GX would suddenly record 1300 kWh of solar production and consider it directly consumed (with a sequence of 1300;0;1300).
In your case, though, it seems the meter is only jumping by about 20 kWh. (Or, in the first post, it was around 68.)
That obviously doesn’t make troubleshooting any easier, and it doesn’t completely rule out an issue in Node-RED.
So what would basically be the right thing to do now is log the MQTT path continuously. (Home Assistant or something?) That way, you can see whether the jump is actually coming through in the value, or whether the values are logically increasing on their own.
If you don’t have an external tool to record this, you could use a debug node in Node-RED:
In the following flow, replace the value “0.000001” in the function with something that’s still a plausible delta. It obviously depends on how often the DTU reports. For example, try 1, and then it will “record” any jump greater than 1 kWh:
Function:
In the “On Start” tab: last_value = 0
In the “On Message” tab, enter the following and adjust the 0.0001 as desired:
if (last_value == 0){
last_value = msg.payload;
}else{
delta = msg.payload - last_value;
last_value = msg.payload;
if (delta > 0.00001){
msg.payload="Wertänderung von "+delta+" erkannt.";
return msg;
}
}