sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

Total value of the plant instead of daily produced since 07-06-2022 #23

Closed sstolk90 closed 1 year ago

sstolk90 commented 2 years ago

This can be closed.... Nothing to do with script

sstolk90 commented 2 years ago

After further research the Growatt API is not right in Domoticz but OK in PVOutput.

Domoticz device filled by this script: https://i.imgur.com/yxQHolU.png What you are seeing here is the TOTAL amount of produced power for the whole plant since installation. Not the daily produced kWh.

Domoticz as of today where you can see where it went skyhigh: https://i.imgur.com/sQFjDR4.png

The total amount is the only thing Domoticz keeps track off but not PVOutput.

I think something has changed in the Growatt API since 7 june 2022. Can somebody confirm the same issue?

sstolk90 commented 2 years ago

I've changed the line sValue=str(current)+";"+str( float(total)1000 ) in the script to sValue=str(current)+";"+str( float(etoday)1000)

This changed the behaviour to normal. Growatt has changed the "total" in the API so it seems