growatt_api_client icon indicating copy to clipboard operation
growatt_api_client copied to clipboard

SPF 5000 ES errors api.get_all_device_list

Open AdiB1110 opened this issue 4 years ago • 3 comments

Hi! I have a SPF 5000 ES Growatt and I was able to connect to server.growatt.com and use the plant_list, plant_detail, get_user_center_energy methods, but when I call get_all_device_list it throws the following error:
raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Expecting value

Also, I've try to call the methods from Storage, Mix or SPA classes (for example get_storage_energy_data or get_energy_prod_and_cons_data), but I get the Response 400 or 500: GrowattApiError: Request failed: <Response [500]>

I've look on the Growatt dashboard and under devices there is only one device, type Storage with the associated data logger. I've copy and paste the device sn from the web page and try to call some of the methods, but still have errors. Do I need to configure additional settings? How can it be solved? I appreciate your advice!

AdiB1110 avatar Sep 23 '21 10:09 AdiB1110

Thanks, @AdiB1110. Which version of the client are you using? Did you install 0.0.4 with pip? Or are you on a git branch?

Sjord avatar Sep 23 '21 11:09 Sjord

I use the code from the branch (issue Expose storage API #13).

AdiB1110 avatar Sep 23 '21 11:09 AdiB1110

Now I've noticed your recent post with newLoginApi and it works perfect! Thank you very much!

AdiB1110 avatar Sep 23 '21 11:09 AdiB1110