H4nsie / EnphaseEnvoy

Enphase Envoy with LAN interface - with individual inverters (Domoticz plugin)
7 stars 1 forks source link

Sometimes zero/wrong readings on the Total Production counter #6

Closed 0crap closed 1 year ago

0crap commented 1 year ago

With the current script version I do notice some spikes that go to zero on the "Usage Last 3 Days - total counter". Zero readings This must be a false recording, because it's not suddenly dark mid day and the output is 0 Watt. Also these spikes that go to zero are not seen on any of the Inverters - Generated Last 3 Days graphs themselves.

The total counter - Usage Last Week bar graphs seem to match with the daily recorded kWh as seen in the Enlighten App. So it seems the spikes that go to zero are only a graphical mismatch and not effecting the daily recorded kWh's.

Anyone else seeing this behavior?

0crap commented 1 year ago

It's not only zero readings, but also simply wrong readings on the Total Production counter. Yesterday is a good example, all day a blue sky and little activity at home that day.

First a screenshot of the Total Production counter: Envoy-total A lot of irregularities shown (not a smooth curve) and a peak production value which is definitely not possible. The Enhase App shows the correct peak value: App

Lastly the P1 measurement by Domoticz, which shows the return values. (Electricity "Smart meter" values.) Much more smooth curve is shown here: P1 results

So IMHO there seems something wrong with the script logic that creates the Envoy-S - total graph. Anything that can be done to improve this? Anyone that uses the script from H4nsie that is willing to add there Envoy-S total graph? I would love to have some comparison to see if I'm not the only one seeing this. Thx!

H4nsie commented 1 year ago

Could be a temporarly lost connection to the Envoy? It is known when one poll does not read, it is added to the next poll. That could explain the high readings.

The total production counter (kWh / day) is kept by the Envoy and read every time. So that value should always be correct.

0crap commented 1 year ago

Could be a temporarly lost connection to the Envoy? It is known when one poll does not read, it is added to the next poll. That could explain the high readings.

The total production counter (kWh / day) is kept by the Envoy and read every time. So that value should always be correct.

Sporadically, two times a week or so at a random day, I've noticed a temporary connection lost to the Envoy. Edit: 2023-03-16 23:01:07.884 Error: Envoy-S hardware (6) thread seems to have ended unexpectedly So that is not the case.

It seems very true that a missing value is added to the next one. That gives crazy spikes, especially mid day when the values are simply higher numbers. I'm not sure what the root cause is. For sure not nice this happens, next to being a messy graph, also peak power delivery (and possible clipping) can not be checked.

When it happens it seems a better idea to just ignore it and not add it to the next sample. Especially, like you say, the total production counter will always be correct. Best is to get it fixed and the graph looks like the individual panels. (Which do not suffer from this issue.)

Panel

H4nsie commented 1 year ago

To increase the polling frequency, you could change the value 2 to a value of 1 on line 50:

self.freq = 2 #multiplier for Domoticz.Heartbeat (no need to update frequent as Envoy itself is updated only every 5 minutes.)

0crap commented 1 year ago

To increase the polling frequency, you could change the value 2 to a value of 1 on line 50:

self.freq = 2 #multiplier for Domoticz.Heartbeat (no need to update frequent as Envoy itself is updated only every 5 minutes.)

Done, let's see if that improves things a bit... I'll report back.

0crap commented 1 year ago

Finally some sun to see how it goes. Unfortunately setting self.freq = 1 does not help.

As you can see, the total counter is not a nice flat line as it should be, including a mistake which gives crazy offset. The panels give a graph that reflects the reality perfectly. (I had some clipping, so flat line from the panel is correct.) I hope the total counter can be fixed.

2-4_total 2-4_panel

0crap commented 1 year ago

Any update on this one? Issue is still there. If I change to self.freq = 4 the problem gets even worse.

For testing purposes, can we change the Total counter from a Type: P1 Smart Meter to a Type: General, kWh?? Happy to test if that gives better results. Thx.

0crap commented 1 year ago

Switched to Domoticz native implementation.

H4nsie commented 1 year ago

Switched to Domoticz native implementation.

I would like too, but my Envoy is still on V5 and Domoticz native does not support V5 anymore...

H4nsie commented 1 year ago

See same kind of problems at HA implementation. https://gathering.tweakers.net/forum/list_message/75503342#75503342

H4nsie commented 1 year ago

My Envoy is updated to v7 and is supported by Domoticz's native implementation. Not maintaining this source anymore.