tijsverkoyen / HomeAssistant-FusionSolar

Integrate FusionSolar into your Home Assistant.
MIT License
133 stars 25 forks source link

No data in OpenAPI mode since January 1st #126

Closed Brandyellow closed 6 months ago

Brandyellow commented 6 months ago

I stopped receiving data on my "Total current day energy" entity 14:00 CET on the 1st of January. Currently when opening the entity I get the following error message: "This entity is no longer being provided by the fusion_solar integration. If the entity is no longer in use, delete it in settings." This is the same for all entities provided by my Fusion Solar OpenAPI integration.

I have my integration configured in core.config_entries:

image

I am hesitant to remove the integration and set it up again since I don't wanna lose the old statistics.

When trying to add new hub I get the error message "Could not authenticate with the provided credentials.":

image

ugfus1630 commented 6 months ago

Same problem here, all entities are unavailable since 2nd of January, 19:18 gmt+1

Screenshot_2024-01-04-22-02-37-582_io homeassistant companion android

tijsverkoyen commented 6 months ago

Are other entities still updating? Are you willing to share your credentials with me? (‘FusionSolar-ha at verkoyen dot eu’)

mrcsrplln commented 6 months ago

I am experiencing the same issue, though in my installation it started randomly on the 4th of January:

Screenshot_20240105-090237

Fusion Solar app is working fine on the other hand:

Screenshot_20240105-090425

tijsverkoyen commented 6 months ago

@Brandyellow

When trying to add new hub I get the error message "Could not authenticate with the provided credentials.":

This means the credentials are not valid. Can you check with your installer if they have disabled the credentials?

tijsverkoyen commented 6 months ago

You can verify your credentials by doing a curl call like below.

curl --location 'https://eu5.fusionsolar.huawei.com/thirdData/login' \
--header 'Content-Type: application/json' \
--data '{
    "userName": "XXX",
    "systemCode": "YYY"
}'

Check if you need to alter the base hostname https://eu5.fusionsolar.huawei.com. And replace XXX with your username and YYY with your password.

The response should look like:

{
  "data": null,
  "success": true,
  "failCode": 0, 
  "params": {},
  "message": null
}
Brandyellow commented 6 months ago

I used Postman to send a login request to Fusionsolar and got the response "northbound system has expired."

image

For me, no entitites are updating at all. All 128 entities are "no longer provided by the fusion_solar integration".

Should I contact my installer to check if my account is still active? Are you helped by my credentials?

Great work on all of this, @tijsverkoyen!

ugfus1630 commented 6 months ago

Are other entities still updating? Are you willing to share your credentials with me? (‘FusionSolar-ha at verkoyen dot eu’)

All entites are in the same state, not available. kép

Of course I can share my credentials with you, but I do not want to write here, can I send a private message somehow?

tijsverkoyen commented 6 months ago

@Brandyellow

I used Postman to send a login request to Fusionsolar and got the response "northbound system has expired." Should I contact my installer to check if my account is still active? Are you helped by my credentials?

Yes. The error means your credentials are not valid anymore.

tijsverkoyen commented 6 months ago

@ugfus1630

Of course I can share my credentials with you, but I do not want to write here, can I send a private message somehow?

Feel free to mail the, as mentioned above, to: ‘fusionSolar-ha [at] verkoyen [dot] eu’ Or you can check yourself if they are still valid: How can I verify my Northbound API / OpenAPI credentials?

Brandyellow commented 6 months ago

@Brandyellow

I used Postman to send a login request to Fusionsolar and got the response "northbound system has expired." Should I contact my installer to check if my account is still active? Are you helped by my credentials?

Yes. The error means your credentials are not valid anymore.

I've added a ticket to my installer (1komma5) and we'll see how they respond.

ugfus1630 commented 6 months ago

I have sent my credentials to you.

tijsverkoyen commented 6 months ago

@ugfus1630 You have the same issue as @Brandyellow. You will need to contact your installer to check your credentials.

Fusion Solar API debug
======================

 * Login: XXX
 * Password: YYY

→ Testing /login: ❌

 [ERROR] API Error (20003): northbound system has expired.                                                              
ugfus1630 commented 6 months ago

oh, I am going to contact with my installer, thank you very much!

Brandyellow commented 6 months ago

I guess this issue can be closed now.

Thank you again, @tijsverkoyen!