AnotherDaniel / smahub

SMAHub is a flexible and modular solution for collecting data from SMA photovoltaic (PV) products and publishing it to various output channels, such as MQTT.
GNU General Public License v2.0
31 stars 11 forks source link

Reported power usage does not match SunnyPortal values #24

Closed devfaz closed 10 months ago

devfaz commented 10 months ago

Hi,

just upgraded to the latest 1.5.2 (is there no 1.4.x?) and it seems the reported power_usage is no longer matching with the values reported by sunnyPortal.

Last version working as expected is 1.3.2 - maybe related to the INTERVAL-fixes?

to reproduce:

AnotherDaniel commented 10 months ago

Hi @devfaz , thank you for the report! I will have a look at this - with "SMA Source", you're referring to the SHM2 plugin, correct?

devfaz commented 10 months ago

Hi @devfaz , thank you for the report! I will have a look at this - with "SMA Source", you're referring to the SHM2 plugin, correct?

Correct 💯😁

devfaz commented 10 months ago

@AnotherDaniel attached PR fixes the issue. Was caused by old (not read) data in the socket.

AnotherDaniel commented 10 months ago

Looking good, thank you for this!

AnotherDaniel commented 10 months ago

Out of interest: which hardware are you running smahub on? Lots of other workloads?

devfaz commented 10 months ago

Well, it's a k3s system nothing special. Intel i5 (don't ask which :) ) - 16G memory in my basement. The average load is 1 - why?

AnotherDaniel commented 10 months ago

Just wondering whether system resources/load plays a role in getting this issue reproducible. I had a look on my dev machine with no luck, that's why I'm asking :-)

devfaz commented 10 months ago

Hmm ok, I'm getting SHM broadcasts every second and since 1.5.x these are only read every 2s, so filling up over time.

Don't know what triggers these broadcasts? Maybe my usage changes more often?