Page 2 of 2

Re: Growatt shows minus value since update of domoticz

Posted: Monday 20 June 2022 21:47
by mvanrijnbach
Hi everybody,
since last Tuesday my growatt inverter only displays zero values in Domoticz. Nothing has changed, so this puzzled me. I found this thread and I updated the script according to sincze's suggestions. However, now my growatt device is colored 'red' in Domoticz, so it is not updating values at all anymore. Anybody experienced this before or do you have suggestions how to fix it?
Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Monday 20 June 2022 22:06
by sincze
That is weird indeed script and plugin are working here.
Is the URL https instead of http ??.

Re: Growatt shows minus value since update of domoticz

Posted: Monday 20 June 2022 23:05
by mvanrijnbach
Hi sincze,

the URL is: http://server-api.growatt.com/newLoginAPI.do
I didn't change the script until the zero values started to show up. I made the changes you suggested.

Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Tuesday 21 June 2022 10:55
by sincze
Ok, if the pass2php is now modified it should work without the negative values.

Re: Growatt shows minus value since update of domoticz

Posted: Tuesday 21 June 2022 21:48
by mvanrijnbach
I didn't have negative values, but zero values from one day to another. Now I updated the script according to your suggestions in this thread, but now the inverter does not update in Domoticz at all. I'll attach the updated script in this post, maybe you'll the problem right away. BTW, what is the purpose of the growatt cookie?
growatt-invertertest.txt
(7.92 KiB) Downloaded 74 times
Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Tuesday 21 June 2022 21:54
by sincze
Cookies are used to prove a successful login.
You present the cookie... if valid we can request the data.

Re: Growatt shows minus value since update of domoticz

Posted: Tuesday 21 June 2022 22:04
by mvanrijnbach
With the old script the login was successful (I could also see this in the log). With the adjusted script I do not receive any values.
growatt.txt
(332 Bytes) Downloaded 44 times
Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Wednesday 22 June 2022 21:46
by mvanrijnbach
If I return to the old script (the one from github) the growatt domoticz device is updated again, but with zero values again.
Domoticz.jpg
Domoticz.jpg (178.07 KiB) Viewed 1396 times
Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Sunday 26 June 2022 11:37
by mvanrijnbach
Has anyone experienced this recently as well?

Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Sunday 26 June 2022 15:51
by petervandersman
Yeap, same here... zeros since mid June. $Result seems to be empty...

Re: Growatt shows minus value since update of domoticz

Posted: Sunday 26 June 2022 17:09
by PieterS
Just a tip for an alternative and no dependency from external servers:

I use Grot to read the data from the inverter and emulates the servers of Growatt in China. It runs (if you like) in Docker and sends for example to PVoutput.org and/or via MQTT and Node-RED to Domoticz or Influxdb and so on. This is the result in Domoticz:

Image

Have a look at https://github.com/johanmeijer/grott. Just very satisfied!

Re: Growatt shows minus value since update of domoticz

Posted: Monday 27 June 2022 22:31
by mvanrijnbach
@petervandersman, did you ever find out why this happened? The script hasn't changed. I'm not a php expert, but there must be a way to debug the script.

@PieterS, I'll take a look at this. I have no idea what you meant by all of that, I guess I can find some info about it on the internet.

Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Monday 11 July 2022 8:03
by mvanrijnbach
Problem solved.
I took the latest script from incze's github and now it works again. Apparently, there have been some changes in the script with respect to the version I had. As far I can see the login form has changed on the 16th of June, so that's probably why I started seeing zeros since mid June:

define('LOGIN_FORM_URL', 'http://server-api.growatt.com/newLoginAPI.do'); // URL of the login form.
define('LOGIN_ACTION_URL', 'http://server-api.growatt.com/newLoginAPI.do'); // Login action URL. Sometimes, this is the same URL as the login form.

became
define('LOGIN_FORM_URL', 'https://server-api.growatt.com/newTwoLoginAPI.do'); // 16-06-2022: URL of the login form.
define('LOGIN_ACTION_URL', 'https://server-api.growatt.com/newTwoLoginAPI.do'); // 16-06-2022: Login action URL. Sometimes, this is the same URL as the login form.
There are some other changes in the script, but this must have been the culprit.

Best regards, Michiel.

Re: Growatt shows minus value since update of domoticz

Posted: Saturday 16 July 2022 13:59
by rick8245
Hi Michiel,

I just modified the script and indeed you found the solution. It now works great again.
Thanks for sharing your solution.

Regards, Rick