Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geen verbinding met Growatt server #303

Closed
Dennis25101968 opened this issue Sep 28, 2023 · 31 comments
Closed

Geen verbinding met Growatt server #303

Dennis25101968 opened this issue Sep 28, 2023 · 31 comments
Labels

Comments

@Dennis25101968
Copy link

Sinds gisteren krijg ik op de Homey Pro geen verbinding meer met de Growatt server.
In de Growatt shine app en/of op server.growatt krijg ik wel verbinding.
Ik weet niet hoe dit op te lossen is.

@martijngeerts
Copy link

Hier hetzelfde probleem weer. Het ging na de laatste update verrassend goed, tot gister.

@pro-sumer
Copy link

pro-sumer commented Sep 28, 2023

Login seems to fail again (with 405 or 501 errors).

The Homey App broke this morning (Thursday), my iOS Shortcut on Tuesday.

No workaround this time?

@pro-sumer
Copy link

More API users are noticing this::

indykoning/PyPi_GrowattServer#74 (comment)

Let’s keep an eye on that issue.

@DiedB
Copy link
Owner

DiedB commented Sep 30, 2023

Thanks for tracking this. Happy to help once a solution is found.

@pro-sumer
Copy link

Is anyone still able to use the ShinePhone App?

I can’t even log in using that official Growatt App...

(so maybe a server is down?)

@DiedB
Copy link
Owner

DiedB commented Sep 30, 2023

ShinePhone doesn't work for me either.

@Finnsen
Copy link

Finnsen commented Sep 30, 2023

I am not able to log into the server via the Homey App, but my ShinePhone is working fine.

@pro-sumer
Copy link

ShinePhone is working again for me, but everything else trying to log in still fails.

@dyandh
Copy link

dyandh commented Oct 2, 2023

Any update/progress on this issue? Since a week of so I have the same problem: my 2 Growatt converters will not connect. I have removed one from Homey, but I am not able to redefine/add this back in Homey. The error is "could not login to Growatt server". The ShinePhone application is working normal.

@Bennie1954
Copy link

Ik heb het zelfde probleem sinds een kleine week werkt de app voor Homey niet meer. Ik heb twee Growatt omvormers de op Shinephone werkt normaal

@dhavyd
Copy link

dhavyd commented Oct 6, 2023

Same issue here... I believe this is related to #293 since "Accept agreement" needs to be selected in the ShinePhone App in order to login.

@pro-sumer
Copy link

We might benefit from a discovery by @vtraveller!

Using the web API (instead of the mobile App API) I was able to log in and obtain the two values we need.

Need to find time to write a small proof-of-concept with demo code...

@pro-sumer
Copy link

@DiedB Can you please try the Growatt web API instead of the mobile API?

Example code:

import axios from 'axios'

const client = axios.create({ 
  baseURL: 'https://server.growatt.com', 
  headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'},
})

async function testWebAPI () {
  // Log in
  const loginResponse = await client.post('login', 
    { account: 'USERNAME', password: 'PASSWORD' }
  )
  const setCookie = loginResponse.headers['set-cookie']
  const plantId = setCookie.filter(cookie => cookie.includes('onePlantId'))[0].split(';')[0].split('=')[1]
  const cookie = setCookie.map(cookie => cookie.split(';')[0]).join(';')

  // Get production data
  const devicesResponse = await client.post('panel/getDevicesByPlantList',
    { currPage: 1, plantId },
    { headers: { Cookie: cookie} }
  )
  const data = devicesResponse.data.obj.datas[0]
  console.log(`Energy today: ${data.eToday}`)
  console.log(`Current power: ${data.pac}`)
}

testWebAPI()

Notes:

  • Only works for 1 plant (OK for most home users?)
  • Hardcoded for 1 inverter (but you can iterate over datas instead of only using element 0?)
  • Requires (unmodified) website credentials (no "hashing" of password as used by the mobile API)
  • Results are strings in a certain locale (using a dot as decimals separator?)

@Kammiz
Copy link

Kammiz commented Oct 16, 2023

i am experiencing same issue, cannot log in with solarpanels and then growatt. However if i install the "growatt" app it lets me log in and select my inverter, but then it says "inverter not supported yet". But it lets me log in, solarpanels does not let me log in, with growatt account. So it seems it is possible to let homey apps log in to growatt server still. Hopefully solarpanels app can be fixed soon.

@bkruyver
Copy link

Same issue here. Would be nice to have this working again. Is there no way to read data directly from inverters?

@pro-sumer
Copy link

Is there no way to read data directly from inverters?

Can be done: https://github.com/johanmeijer/grott

Haven’t tried it myself though.

The workaround I posted above is probably more in line with the current Solar Panels architecture and does not require you to use (set up) Grott, so I hope @DiedB can make that (web API) work.

@Limbeckx
Copy link

Is anyone working on this or is it just a know issue?

@pro-sumer
Copy link

Is anyone working on this?

I was hoping that I could test using the web API by changing a few lines in api.ts (and hardcoding some parameters for the experiment), but the source code has changed quite a bit since I wrote the first implementation of the Growatt driver. This means that I need more time to do such an experiment, which I don't have right now.

Therefore, I hope that Diederik (or someone else capable) has the time to work on this. If not, I might pick this up again at a later point.

(First results from some experiments with migrating from the mobile API to the web API in other personal JavaScript projects that use the Growatt API are promising)

@mijdrecht
Copy link

After creating a new (Sub) account on the growatt website (under settings) , I was able to use the app with the new account.

@dhavyd
Copy link

dhavyd commented Oct 26, 2023

I did the same now and can confirm that the app works if you create a sub account, thanks @mijdrecht !

@pimviergever
Copy link

After creating a new (Sub) account on the growatt website (under settings) , I was able to use the app with the new account.

This worked for me, also. Thank you!

@martijngeerts
Copy link

After creating a new (Sub) account on the growatt website (under settings) , I was able to use the app with the new account.

This worked for me as well :) thx!

@Limbeckx
Copy link

Very strange... When I do the same, I get the new Devices Found screen with the undertext: Select devices you would like to add. The list is empty for a while and afterwards I get the error saying 'Timed out after 30000ms'

@Kammiz
Copy link

Kammiz commented Oct 26, 2023

After creating a new (Sub) account on the growatt website (under settings) , I was able to use the app with the new account.

Awesome, this works!

@pro-sumer
Copy link

the app works if you create a sub account

Nice find!

PS: SolarPanels did not accept the credentials of the new sub account until I restarted it

@bkruyver
Copy link

Could someone please give a howto for making a new account? I can not find a way to do it.....
Thx

@mijdrecht
Copy link

Logon to the growatt website with your current account.
Goto settings
Create a new account.

@bkruyver
Copy link

Thx, i found out that i can only see the installer account. I will create my own private user account this way and see what happens

@pro-sumer
Copy link

PS: SolarPanels did not accept the credentials of the new sub account until I restarted it

In fact, my new credentials were not stored before the restart...

SolarPanels apparently is working again with my regular (main) account!

@dyandh
Copy link

dyandh commented Nov 4, 2023

Hi, same experience: since a couple of days ago SolarPanel is able to connect again with my original settings/account. Not sure if changes were made, if so thanks for the support.
Dyan

@MP-ICT-Diensten
Copy link

November 2, 2023 at 13:00 I have the first connectivity again, all is working fine again.
Connectivity was down from September 28, 2023 I can see in Insights.
Growatt has changed/updated/fixed something probably.

@DiedB DiedB closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests