MickMake / GoSungrow

GoLang implementation to access the iSolarCloud API updated by SunGrow inverters.
https://mickmake.com/
GNU General Public License v2.0
179 stars 46 forks source link

Cannot connect to european server #116

Open thesnable opened 5 months ago

thesnable commented 5 months ago

https://www.isolarcloud.eu

wont connect ... :(

Paraphraser commented 5 months ago

If you want help, I think you'll have to provide a little more information - such as:

If you are unfamiliar with the term "code fences", it means lines containing triple back-ticks, like this:

```

your lines here

```

Code fences stop MarkDown from trying to run lines together to form paragraphs and allow you (the author) to be able to show recipients precisely what you're seeing.

thesnable commented 4 months ago

Hi!

Well sorry .. yes :) HA!

sungrow_host: https://www.isolarcloud.eu/ sungrow_user: xxx sungrow_password: xxx sungrow_appkey: 93D72E60331ABDCDC7B39ADC2D1F32B3 mqtt_host: core-mosquitto mqtt_port: "1883" mqtt_user: xxx mqtt_password: xxx debug: false sungrow_timeout: 60

The Output i get: [14:54:30] INFO: Login to iSolarCloud using gateway https://www.isolarcloud.eu/ ... Error: API httpResponse is 404 Not Found Usage: GoSungrow api login [flags]

Examples: GoSungrow api login

Flags: Use "GoSungrow help flags" for more info.

Additional help topics:

ERROR: API httpResponse is 404 Not Found s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

When i use the redirect server after login (isolar server [14:56:42] INFO: Login to iSolarCloud using gateway https://web3.isolarcloud.eu/ ... Error: API httpResponse is 405 Not Allowed Usage: GoSungrow api login [flags]

Examples: GoSungrow api login

Flags: Use "GoSungrow help flags" for more info.

Additional help topics:

ERROR: API httpResponse is 405 Not Allowed s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Paraphraser commented 4 months ago

The two most immediate problems are in these lines:

sungrow_host: https://www.isolarcloud.eu/
sungrow_appkey: 93D72E60331ABDCDC7B39ADC2D1F32B3

Assuming the EU server is what you need, then that URL should be:

https://gateway.isolarcloud.eu

and the APPkey will be one of these:

However, before you rush off and try that and find that it still doesn't work, can I please suggest that you at least read through Part 2 of this gist.

If you start to read the gist and think, "well, I've done all this already" then that's cool. It just means you missed the configuration step, which is the information about the URL and APPKey above.

Alternatively, if you start to read the gist and it doesn't sound familiar then you need to follow all the steps in part 2.

Hope this helps.

thesnable commented 4 months ago

hello, thank you very much for your assistance. I made it work. I think the AP codes and the wrong gateway was the main reason. I'm sorry I didn't fidget it out the first way I thought that I need unique or different AP keys, but I did not find them, sorry for that. Sorry for that. Finally, I ended up using Home Assistant mod bus connection. Internet Values are often hallucinations 😂✅

thanks