sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

Plugin not working - error 501 #44

Open bmjvannunen opened 11 months ago

bmjvannunen commented 11 months ago

Yesterday I was having problems with the growatt plugin, those seemed to be caused by server problems / downtime at Growatt. Since 9:00 this morning the plugin is not working anymore with the following error (I restarted a couple of times, this is the information from the most recent restart): 2023-09-28 15:04:23.196 Growatt: Received 5 bytes of data 2023-09-28 15:04:23.196 Growatt: HTTP Details (3): 2023-09-28 15:04:23.196 Growatt: >'Status':'200' 2023-09-28 15:04:23.196 Growatt: >'Headers': 2023-09-28 15:04:23.196 Growatt: ---->'Date':'Thu, 28 Sep 2023 13:04:23 GMT' 2023-09-28 15:04:23.196 Growatt: ---->'Content-Type':'application/json;charset=UTF-8' 2023-09-28 15:04:23.196 Growatt: ---->'Transfer-Encoding':'chunked' 2023-09-28 15:04:23.196 Growatt: ---->'Connection':'keep-alive' 2023-09-28 15:04:23.196 Growatt: ---->'Set-Cookie': 2023-09-28 15:04:23.196 Growatt: --------['JSESSIONID=****; Path=/; Secure; HttpOnly'] 2023-09-28 15:04:23.196 Growatt: --------['SERVERID=****|*|***;Path=/'] 2023-09-28 15:04:23.196 Growatt: >'Data':'b'{"back":{"msg":"501","success":false}}'' 2023-09-28 15:04:23.197 Growatt: Retrieved following json: {"back": {"msg": "501", "success": false}} 2023-09-28 15:04:23.197 Growatt: Not received anything useful! 2023-09-28 15:04:33.069 Growatt: onHeartbeat called, Connection is alive.

Any ideas? Both the Shinephone app and the website are working.

Achterhoeker commented 11 months ago

Same here

PvdGulik commented 11 months ago

Same issue here also:

2023-09-29 13:05:49.561 Status: Growatt: Initialized version 2.0.0, author 'sincze' 2023-09-29 13:35:55.242 Error: Growatt hardware (52) nothing received for more than 30 Minutes!.... 2023-09-29 13:35:56.243 Status: Growatt: Stop directive received. 2023-09-29 13:35:56.309 Status: Growatt: Exiting work loop. 2023-09-29 13:35:56.343 Status: Growatt: Stopping threads. 2023-09-29 13:35:56.343 Status: Growatt: Stopped. 2023-09-29 13:35:56.344 Status: Growatt: Entering work loop. 2023-09-29 13:35:56.344 Status: Growatt: Started. 2023-09-29 13:35:56.243 Error: Restarting: Growatt 2023-09-29 13:35:57.210 Status: Growatt: Initialized version 2.0.0, author 'sincze' 2023-09-29 14:06:06.320 Error: Growatt hardware (52) nothing received for more than 30 Minutes!.... 2023-09-29 14:06:07.322 Status: Growatt: Stop directive received. 2023-09-29 14:06:07.413 Status: Growatt: Exiting work loop. 2023-09-29 14:06:07.422 Status: Growatt: Stopping threads. 2023-09-29 14:06:07.422 Status: Growatt: Stopped. 2023-09-29 14:06:07.422 Status: Growatt: Entering work loop. 2023-09-29 14:06:07.422 Status: Growatt: Started. 2023-09-29 14:06:07.321 Error: Restarting: Growatt 2023-09-29 14:06:08.305 Status: Growatt: Initialized version 2.0.0, author 'sincze' 2023-09-29 14:21:07.263 Growatt: HTTP Details (3): 2023-09-29 14:21:07.263 Growatt: >'Status':'200' 2023-09-29 14:21:07.263 Growatt: >'Headers': 2023-09-29 14:21:07.263 Growatt: ---->'Date':'Fri, 29 Sep 2023 12:21:07 GMT' 2023-09-29 14:21:07.263 Growatt: ---->'Content-Type':'application/json;charset=UTF-8' 2023-09-29 14:21:07.263 Growatt: ---->'Transfer-Encoding':'chunked' 2023-09-29 14:21:07.263 Growatt: ---->'Connection':'keep-alive' 2023-09-29 14:21:07.263 Growatt: ---->'Set-Cookie': 2023-09-29 14:21:07.264 Growatt: --------['JSESSIONID=****; Path=/; Secure; HttpOnly'] 2023-09-29 14:21:07.264 Growatt: --------['SERVERID=***|*|*****;Path=/'] 2023-09-29 14:21:07.264 Growatt: >'Data':'b'{"back":{"msg":"501","success":false}}'' 2023-09-29 14:21:07.264 Growatt: Retrieved following json: {"back": {"msg": "501", "success": false}} 2023-09-29 14:21:07.264 Growatt: Login Succesfull 2023-09-29 14:21:07.264 Growatt: No defined keys found! 2023-09-29 14:21:17.080 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:21:27.098 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:21:37.064 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:21:47.083 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:21:57.101 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:22:07.068 Growatt: onHeartbeat called, Connection is alive. 2023-09-29 14:22:07.228 Growatt: Queued asynchronous secure read aborted. 2023-09-29 14:22:07.268 Growatt: Disconnect event received for 'server.growatt.com:443'. 2023-09-29 14:22:07.269 Growatt: onDisconnect called for connection to: server.growatt.com:443 2023-09-29 14:22:17.084 Growatt: onHeartbeat called, run again in 23 heartbeats. 2023-09-29 14:22:27.102 Growatt: onHeartbeat called, run again in 22 heartbeats. 2023-09-29 14:22:37.070 Growatt: onHeartbeat called, run again in 21 heartbeats. 2023-09-29 14:22:47.089 Growatt: onHeartbeat called, run again in 20 heartbeats. 2023-09-29 14:22:57.108 Growatt: onHeartbeat called, run again in 19 heartbeats. 2023-09-29 14:23:07.076 Growatt: onHeartbeat called, run again in 18 heartbeats. 2023-09-29 14:23:17.093 Growatt: onHeartbeat called, run again in 17 heartbeats. 2023-09-29 14:23:27.063 Growatt: onHeartbeat called, run again in 16 heartbeats. 2023-09-29 14:23:37.079 Growatt: onHeartbeat called, run again in 15 heartbeats. 2023-09-29 14:23:47.094 Growatt: onHeartbeat called, run again in 14 heartbeats. 2023-09-29 14:23:57.060 Growatt: onHeartbeat called, run again in 13 heartbeats. 2023-09-29 14:24:07.076 Growatt: onHeartbeat called, run again in 12 heartbeats. 2023-09-29 14:24:17.099 Growatt: onHeartbeat called, run again in 11 heartbeats. 2023-09-29 14:24:27.065 Growatt: onHeartbeat called, run again in 10 heartbeats. 2023-09-29 14:24:37.081 Growatt: onHeartbeat called, run again in 9 heartbeats. 2023-09-29 14:24:47.100 Growatt: onHeartbeat called, run again in 8 heartbeats. 2023-09-29 14:24:57.073 Growatt: onHeartbeat called, run again in 7 heartbeats. 2023-09-29 14:25:07.092 Growatt: onHeartbeat called, run again in 6 heartbeats. 2023-09-29 14:25:17.108 Growatt: onHeartbeat called, run again in 5 heartbeats. 2023-09-29 14:25:27.077 Growatt: onHeartbeat called, run again in 4 heartbeats. 2023-09-29 14:25:37.095 Growatt: onHeartbeat called, run again in 3 heartbeats.

Probally this is the problem?

2023-09-29 14:21:07.264 Growatt: No defined keys found!

Op 29 sep 2023 om 08:57 heeft Achterhoeker @.***> het volgende geschreven:



Same here

— Reply to this email directly, view it on GitHubhttps://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1740397188, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACH4FITF3RXNGHQBWOHAD23X4ZWMLANCNFSM6AAAAAA5K6DHXM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rick8245 commented 11 months ago

Same here let's hope for a quick solution soon

differentieel commented 11 months ago

have a simple one - some moments ago: 2023-09-29 15:00:03.235 Error: Growatt: Google returned a status: 504

PvdGulik commented 11 months ago

Also the ShinePhone app doesn't work. Only the next day you can see what your production was the day before...

phkpr commented 11 months ago

I have the same problem. Website and the ShinePhone app are working okay.

I have no idea how to ask Growatt about any API changes!! Please help

differentieel commented 11 months ago

you can try this one - service at ginverter dot com - i had some discussions with them company name is : ShenZhen Growatt New Energy Co.,Ltd. department: Oversea service email admin my last contact was at 04 09 2023 hope this helps

phkpr commented 11 months ago

I have the same problem. Website and the ShinePhone app are working okay.

I have no idea how to ask Growatt about any API changes!! Please help

This morning I have reached a web-error 403 and a ShinePhone app not working anymore Now, after changing the server from server.growatt.com into server-api.growatt.com I have a web-error 410.

Misterious !!

tonbor commented 11 months ago

Error 403, any fix?

phkpr commented 11 months ago

I published a script in the Domoticz board. You can use it to manually enter the cumulative kWh value as shown from your ShinePhone app. (at least 1 time a day, preferable in the evening) Use link below and goto the post from phkpr dated October 2.

https://www.domoticz.com/forum/viewtopic.php?p=307447#p307447

Achterhoeker commented 10 months ago

The chinese growatt server isn't reliable enough for me anymore, i've made the switch to the grott implementation (catch all data send from the inverter to the growatt server) https://github.com/johanmeijer/grott

But I don't want to use the mqtt implementation, and only need a "simple" energy counter for every inverter i have (2). For this i wrote a simple extension on the grott. https://github.com/johanmeijer/grott/pull/433/commits

With this extension you can update a energy counter in domoticz (domoticz idx and serial id from inverter needed) If you don't know the serial id, start grott with -v option and the data received will be printed included the serial id.

Works perfect now: image

oepi-loepi commented 10 months ago

They have installed a waf in between to protect the server. I am working on it and i think i have found a reliable solution

sincze commented 10 months ago

They have installed a waf in between to protect the server. I am working on it and i think i have found a reliable solution

That would be perfect / excellent / wonderful indeed.

PvdGulik commented 10 months ago

They have installed a waf in between to protect the server. I am working on it and i think i have found a reliable solution

What's an waf? Wife Acceptance factor?

Thanks!

tonbor commented 10 months ago

What is a WAF? | Web Application Firewall

differentieel commented 10 months ago

this is a WAF https://www.wordfence.com/

tonbor commented 10 months ago

They have installed a waf in between to protect the server. I am working on it and i think i have found a reliable solution

Any progression?

sincze commented 10 months ago

I am awaiting the idea on how to solve it. For the moment I use Node-Red to get the Data.

tonbor commented 10 months ago

Tonbor heeft het ontvangen, I do not know if Sandor it will receive......

Op ma 9 okt. 2023 17:34 schreef oepi-loepi @.***>:

Hi Sandor,

Werkt het om op deze manier een mail te versturen? Kun je anders jouw directe mailadres sturen. Dan hoef ik geen code in het openbaar te delen.

Groet, Rob (oepi-loepi)

Van: Sandor @.> Verzonden: maandag 9 oktober 2023 17:22 Aan: sincze/Domoticz-Growatt-Webserver-Plugin @.> CC: oepi-loepi @.>; Comment @.> Onderwerp: Re: [sincze/Domoticz-Growatt-Webserver-Plugin] Plugin not working - error 501 (Issue #44)

I am awaiting the idea on how to solve it. For the moment I use Node-Red to get the Data.

— Reply to this email directly, view it on GitHub < https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1753215249> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AO7G5YYH3TBCVJFZWM3EXKDX6QJA5AVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIYTKMRUHE> . You are receiving this because you commented. < https://github.com/notifications/beacon/AO7G5Y7XBLITVOUGTLQKKHDX6QJA5A5CNFSM6AAAAAA5K6DHXOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIP7YRC.gif> Message ID: @. @.> >

-- Dit e-mailbericht is met AVG-antivirussoftware gecontroleerd op virussen. www.avg.com

— Reply to this email directly, view it on GitHub https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1753236952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKD7IIUAQPUPEXYWATNEH7TX6QKQJAVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIZTMOJVGI . You are receiving this because you commented.Message ID: @.***>

sincze commented 10 months ago

Ik krijg hem binnen:)

On Mon, 9 Oct 2023, 17:34 oepi-loepi, @.***> wrote:

Hi Sandor,

Werkt het om op deze manier een mail te versturen? Kun je anders jouw directe mailadres sturen. Dan hoef ik geen code in het openbaar te delen.

Groet, Rob (oepi-loepi)

Van: Sandor @.> Verzonden: maandag 9 oktober 2023 17:22 Aan: sincze/Domoticz-Growatt-Webserver-Plugin @.> CC: oepi-loepi @.>; Comment @.> Onderwerp: Re: [sincze/Domoticz-Growatt-Webserver-Plugin] Plugin not working - error 501 (Issue #44)

I am awaiting the idea on how to solve it. For the moment I use Node-Red to get the Data.

— Reply to this email directly, view it on GitHub < https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1753215249> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AO7G5YYH3TBCVJFZWM3EXKDX6QJA5AVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIYTKMRUHE> . You are receiving this because you commented. < https://github.com/notifications/beacon/AO7G5Y7XBLITVOUGTLQKKHDX6QJA5A5CNFSM6AAAAAA5K6DHXOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIP7YRC.gif> Message ID: @. @.> >

-- Dit e-mailbericht is met AVG-antivirussoftware gecontroleerd op virussen. www.avg.com

— Reply to this email directly, view it on GitHub https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1753236952, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMCHTO6S6RLQWSHQ2EXQ6LX6QKQHAVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIZTMOJVGI . You are receiving this because you commented.Message ID: @.***>

oepi-loepi commented 10 months ago

Heb je ook de mail gekregen op je gewone mail met uitleg? Was even zoeken daarnaar

rick8245 commented 10 months ago

I now have this script : https://github.com/johanmeijer/grott/pull/433/commits

but I still do not get this working. Is there an explanation somewhere for what to modify and where exactly ??

Achterhoeker commented 10 months ago

@rick8245

I now have this script : https://github.com/johanmeijer/grott/pull/433/commits

but I still do not get this working. Is there an explanation somewhere for what to modify and where exactly ??

This is a plugin on the grott service to "simple" add the data from the invertor to a energy counter in domoticz. For this, the grott service must be installed and run. Also the invertor needs to send its data to this grott service (and not the growatt server) If this is working, the mentioned plugin is an easy way to get the data in domoticz (only energy counter)

tonbor commented 10 months ago

Ik krijg hem binnen:) On Mon, 9 Oct 2023, 17:34 oepi-loepi, @.> wrote: Hi Sandor, Werkt het om op deze manier een mail te versturen? Kun je anders jouw directe mailadres sturen. Dan hoef ik geen code in het openbaar te delen. Groet, Rob (oepi-loepi) Van: Sandor @.> Verzonden: maandag 9 oktober 2023 17:22 Aan: sincze/Domoticz-Growatt-Webserver-Plugin @.> CC: oepi-loepi @.>; Comment @.> Onderwerp: Re: [sincze/Domoticz-Growatt-Webserver-Plugin] Plugin not working - error 501 (Issue #44) I am awaiting the idea on how to solve it. For the moment I use Node-Red to get the Data. — Reply to this email directly, view it on GitHub < #44 (comment)> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AO7G5YYH3TBCVJFZWM3EXKDX6QJA5AVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIYTKMRUHE> . You are receiving this because you commented. < https://github.com/notifications/beacon/AO7G5Y7XBLITVOUGTLQKKHDX6QJA5A5CNFSM6AAAAAA5K6DHXOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIP7YRC.gif> Message ID: @. @.> > -- Dit e-mailbericht is met AVG-antivirussoftware gecontroleerd op virussen. www.avg.com — Reply to this email directly, view it on GitHub <#44 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMCHTO6S6RLQWSHQ2EXQ6LX6QKQHAVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIZTMOJVGI . You are receiving this because you commented.Message ID: @.>

is there a fix?

tonbor commented 10 months ago

2 weeks ago oepi-loepi had a solution, will anybody implement thisnfix please, much obliged

oepi-loepi commented 10 months ago

No i did not succeed in a most stable way yet. Use the node red option or grott for the moment

sincze commented 10 months ago

I just noticed: https://github.com/sincze/Domoticz/issues/18#issuecomment-1781017778 Hope it will be the same for the plugin.

tonbor commented 10 months ago

yes, but for how long?

sincze commented 10 months ago

Good Point indeed. That is a valid question for SAAS services in general.

If you want total control read the inverter locally / install additional kWh meter (HomeWizard) https://www.homewizard.com/nl/kwh-meter/

rensbr commented 10 months ago

I just noticed: sincze/Domoticz#18 (comment) Hope it will be the same for the plugin.

It works here again. Hopefully it stays like that.

phkpr commented 10 months ago

Same for me! Regarding the plugin!

PvdGulik commented 10 months ago

Yep, working for me to vriendelijke groet,

Op 26 okt 2023 om 23:59 heeft phkpr @.***> het volgende geschreven:



Same for me!

— Reply to this email directly, view it on GitHubhttps://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/issues/44#issuecomment-1781949037, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACH4FIX2346PMRWGK5KYYJTYBLMLHAVCNFSM6AAAAAA5K6DHXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBRHE2DSMBTG4. You are receiving this because you commented.Message ID: @.***>

rensbr commented 9 months ago

Plugin stopped working since friday now. No that the output of the PV panels is great these days.

Edit: Enabled and disabled the plugin a few times and it works again.

tonbor commented 9 months ago

Plugin stopped working since friday now. No that the output of the PV panels is great these days.

not with me

phkpr commented 9 months ago

No problems here !

jan-vandenberg commented 9 months ago

It's been down since Nov 6 for me.

tonbor commented 9 months ago

It's been down since Nov 6 for me.

Is shinephone working?

rensbr commented 9 months ago

It's been down since Nov 6 for me.

Is shinephone working?

Yes, here it is. I have restarted the plugin a few times now and it seems to work again.