Growatt shows minus value since update of domoticz
Moderator: leecollings
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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.
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.
- sincze
- Posts: 1300
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Growatt shows minus value since update of domoticz
That is weird indeed script and plugin are working here.
Is the URL https instead of http ??.
Is the URL https instead of http ??.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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.
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.
- sincze
- Posts: 1300
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Growatt shows minus value since update of domoticz
Ok, if the pass2php is now modified it should work without the negative values.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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?
Best regards, Michiel.
Best regards, Michiel.
- sincze
- Posts: 1300
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Growatt shows minus value since update of domoticz
Cookies are used to prove a successful login.
You present the cookie... if valid we can request the data.
You present the cookie... if valid we can request the data.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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.
Best regards, Michiel.
Best regards, Michiel.
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
If I return to the old script (the one from github) the growatt domoticz device is updated again, but with zero values again.
Best regards, Michiel.-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
Has anyone experienced this recently as well?
Best regards, Michiel.
Best regards, Michiel.
-
- Posts: 1
- Joined: Sunday 25 September 2016 12:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
Yeap, same here... zeros since mid June. $Result seems to be empty...
-
- Posts: 197
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt shows minus value since update of domoticz
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:

Have a look at https://github.com/johanmeijer/grott. Just very satisfied!
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:

Have a look at https://github.com/johanmeijer/grott. Just very satisfied!
Synology with Domoticz build (V2024.7) in Docker
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
@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.
@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.
-
- Posts: 20
- Joined: Monday 20 June 2022 21:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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.
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.
-
- Posts: 74
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt shows minus value since update of domoticz
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
I just modified the script and indeed you found the solution. It now works great again.
Thanks for sharing your solution.
Regards, Rick
Who is online
Users browsing this forum: No registered users and 1 guest