-
Notifications
You must be signed in to change notification settings - Fork 49
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
strconv.Atoi error #107
Comments
Well, on the face of it, the string "1559776_1559777" has been passed to the "convert string to integer" function. That function has (correctly) returned an error because a string containing an underscore doesn't represent a valid integer. I think the real question is where is "1559776_1559777" coming from? From your question it's not clear exactly how you are running GoSungrow. When you say "patched gosungrow build" do you mean you have just recompiled the binary as per part 1 of this gist. Or do you mean you're running the pre-built Docker image (as per part 2 of the gist). The log messages don't look the same as I see in Home Assistant so I'm guessing you're not doing this in HA. To put that last para another way, if you don't explain exactly what you are doing, you make it difficult for anyone else to try to replicate to see if they do hit the same problem (meaning it's something that would likely be able to be fixed by the community), or they don't hit the same problem (meaning it's more likely to be something peculiar to your system). When I look at the container log in Home Assistant, I see:
You'll note that after the "Cached" message, I get two "Syncing" messages followed by what I think of as the usual gibberish pattern with the CU stuff. Conversely, your log mentions What do you see when you run:
What's in the "Ps Id" column? Is it the integer "1259467" or is it that problem string? If you only just followed Part 1 of the gist then perhaps also confirm the version of Go you are using. My standalone binary was compiled on Jan 22 with Go version 1.21.6. Does that match the compiler version you are using? |
Sorry to be unclear. Was running the homeassistant addon with only Part 2 of that patch applied. I'll try installing this stand alone then running those commands directly. |
And sorry to be unclear myself. The point I was trying to make (and obviously failing) was that I wasn't seeing the problem with my HA instance. Therefore assuming your setup didn't differ materially from mine in some way that wasn't immediately obvious from your post, the underlying cause was unlikely to be found in HA or the (replacement) add-on, and more likely to be found in either your configuration (ie the bits in the HA UI where to tell GoSungrow your credentials etc) or something peculiar to your inverter (ie the bits you configure using the iSolarCloud app) or your inverter's relationship with the Sungrow cloud. I think the latter will become evident with those GoSungrow commands. What's most puzzling to me is the All very weird. |
Does it have to do with me having 2 sites connected to my account work and home? |
If you mean that you have inverters at home and work, and they are both connected to the same Sungrow account, then I have no idea. I only have the one Sungrow inverter. If you mean that you have HA running at both home and work, connected to the same Sungrow account and pulling data associated with your inverter(s) then I can't see why that would make any difference. As far as I can tell, the iSolarCloud app, HA, and non-HA invocations of GoSungrow are all doing the same thing in API terms. I'm using the iSolarCloud app (mainly to view "now" data), the HA version (for nothing other than to prove it's working) plus a cron job firing once a day to call GoSungrow standalone to download data for "yesterday" which I load into a database. I also run standalone GoSungrow when trying to answer questions here on GitHub. So, by my count, I have four totally independent usages of the API and I don't see anything like you're seeing. |
@Paraphraser i second the issue raised here. I don't think 2 accounts is an issue because i had 2 inverters in isolar account but it anyways used to show 1 account as the other account was a shared account from another email ID . I am facing the same issue at about the same timeline when this issue has been raised. I tried deleting the whole add on reinstall which gave me the api error for which you had released the patch but the problem continued Token File: /data/.GoSungrow/AppService_login.json 2024/02/09 05:10:41 ERROR: SetResponse: strconv.Atoi: parsing "3071048_3071049": invalid syntax Aliases: Examples: |
Not sure if its's safe to show the outputs of: ./GoSungrow api login
./GoSungrow show ps list But both commands complete sucessfully and show the following general output (santitised):
Running Now to the meat of what I've discovered. Running Running That explains the behaviour I was experiencing previously with different errors. For whatever reason the first site it decided to pull was different between my installs. Interestingly, I have the "EyeM4" which seems to be relatively new and may not be supported and on the other site I have a Smart Meter (which may also not be supported). |
Hello to everybody, info here: https://gist.github.com/Paraphraser/cad3b0aa6428c58ee87bc835ac12ed37?permalink_comment_id=5072228#gistcomment-5072228 Thank you very much Michal |
I am getting the same error. [01:54:15] INFO: Login to iSolarCloud using gateway https://augateway.isolarcloud.com ... 2024/08/20 01:54:18 ERROR: strconv.Atoi: parsing "1423777_1423778": invalid syntax Aliases: Examples: Flags: Use "GoSungrow help flags" for more info. Additional help topics: ERROR: strconv.Atoi: parsing "1423777_1423778": invalid syntax |
i guess no progress on this issue. :(. i somehow think having 2 accounts one of them being shared with the main account may be the reason |
I had several accounts shared but I unshared them to test the theory. I still get the same error unfortunately. |
Using the patched gosungrow build with the new API and APP key.
I get the following error:
I have no clue about Golang but it appears this gets called in only a few places:
Debug logging doesn't reveal anymore information. Not sure how to provide further information to diagnose this issue.
The text was updated successfully, but these errors were encountered: