tijsverkoyen / HomeAssistant-FusionSolar

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

No more entities provided #150

Closed Cedric29 closed 3 months ago

Cedric29 commented 4 months ago

It has now been 2 days the integration does not provide entities anymore

Here is some logs from Home Assistant docker container :

2024-02-14 10:48:57.945 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up fusion_solar platform for sensor
Traceback (most recent call last):
  File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 55, in get_station_list
    response = self._do_call(url, json)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 183, in _do_call
    raise FusionSolarOpenApiErrorInvalidAccessToCurrentInterfaceError(json_data[ATTR_MESSAGE])
custom_components.fusion_solar.fusion_solar.openapi.openapi_api.FusionSolarOpenApiErrorInvalidAccessToCurrentInterfaceError: Invalid access to current interface!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/fusion_solar/sensor.py", line 802, in async_setup_entry
    stations = await hass.async_add_executor_job(api.get_station_list)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 58, in get_station_list
    return self.stations()
           ^^^^^^^^^^^^^^^
  File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 83, in stations
    response = self._do_call(url, json)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 194, in _do_call
    raise FusionSolarOpenApiError(
custom_components.fusion_solar.fusion_solar.openapi.openapi_api.FusionSolarOpenApiError: Retrieving the data for https://eu5.fusionsolar.huawei.com/thirdData/stations failed with failCode: 20056, message: None
2024-02-14 10:49:29.888 ERROR (MainThread) [custom_components.hacs] Could not update template - Timeout of 60s reached
2024-02-14 10:49:29.888 ERROR (MainThread) [custom_components.hacs] Could not update integration - Timeout of 60s reached

image

tobyknobi commented 4 months ago

I have replied to them, that I am missing the API option.

I am waiting for a response.

Op vr 1 mrt 2024 17:03 schreef Cédric Vandenberge @.***

:

@Cedric29 https://github.com/Cedric29 try to contact your installer?

As already mentionned, they're are giving the ball to Huawei, which is giving the ball to installer ... So noone can solve that issue ...

— Reply to this email directly, view it on GitHub https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/issues/150#issuecomment-1973450863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXV5BXQ6FJ77K52SQFU4JQLYWCREZAVCNFSM6AAAAABDH7OMK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGQ2TAOBWGM . You are receiving this because you commented.Message ID: @.***>

JohnMcLear commented 4 months ago

Huawei I just received this from Huawei.

I don't get the option to "Set permissions" on the plant management page.. I'm the installer... Anyone else not seeing this option?

JohnMcLear commented 4 months ago

Looks like "installers" can't change permissions, only "owners" can..

Ref: https://uni003eu5.fusionsolar.huawei.com/hedex/hedex.do?lib=monitoring&pidid=pid_neteco&topicid=CONCEPT_0000001605656680&locale=en-us vs https://uni003eu5.fusionsolar.huawei.com/hedex/hedex.do?lib=monitoring&pidid=pid_neteco&topicid=CONCEPT_0000001605785438&locale=en-us

alessandrozannini commented 4 months ago

image

tobyknobi commented 4 months ago

Latest respons from Huawei " Hi,

Based on RD analysis this issue is caused by a FusionSolar bug, we will fix it in the next upgrade this month."

Regards Toby

JohnMcLear commented 4 months ago

Turns out I was not the "plant owner" but the "company administator"

I created a new user who was a "plant owner" and I got the access to enable API.

On Web: Plant -> Plant Management -> Select the plant – click on the symbol indicated in the print screen below: image

JohnMcLear commented 4 months ago

And after a remove and re-add I see all the entities :) Nice!

Edvliet commented 3 months ago

Dear tijsverkoyen,What is now the solution?Wait for the new update of Huawei?I am still not having the energy overview of my fusion solar panels.Regards, Edwin van VlietVerstuurd vanaf mijn iPhoneOp 18 mrt 2024 om 20:25 heeft Tijs Verkoyen @.***> het volgende geschreven: Closed #150 as completed.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

tijsverkoyen commented 3 months ago

@Edvliet I don't know what the real solution is. But everyone has tried several things. So I suggest: check the comments above and try the different things they did.

If you feel like I have closed the issues to soon, feel free to reopen the issue. Please mention all things you tried. But to be honest: I suspect it is a Huawei issue.

Edvliet commented 3 months ago

Hi Tijs,My installer is owning the plants, so I can’t be the plant owner.I do agree that the issue is at Huawei , according previous posting. So let’s wait for the upcoming new release.Thx for your support Tijs.Op 19 mrt 2024 om 10:15 heeft Tijs Verkoyen @.***> het volgende geschreven: @Edvliet I don't know what the real solution is. But everyone has tried several things. So I suggest: check the comments above and try the different things they did. If you feel like I have closed the issues to soon, feel free to reopen the issue. Please mention all things you tried. But to be honest: I suspect it is a Huawei issue.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

gregyone commented 2 months ago

Hello,

this thread helped me to solve fusionSolar API access, so I will share my experience.

Mid-Feb, my Python API automation stopped working returning"API Error 20056" (it worked successfully for years). It was still possible to authenticate, but seems some authorizations were missing to access some API parts. Huawei support forwarded me to my installer. My installer having the same issue was already in contact with Huawei support.

After two months, based on this thread info, I request my installer to create a new API access credentials. This morning, I tested those new credentials, but I get failCode":401,"message":"Invalid access to current interface!"

But then, my previous API credentials are working back ! Very strange... but I am now un-blocked.

Regards, Greg.

Cedric29 commented 2 months ago

@tijsverkoyen Good news ! Resolved by itself with Huawei update Working fine again at my side ! Apologize for creating a bug at your side while it wasn't ... But helped to find the root cause !

Thanks for you integration by the way ! amazing one !

Edvliet commented 2 months ago

Tijs,Thank you very much for your support.I am glad it solved by itself, but you helped us  during the issue. Please continue with these great add-ons for @. in this mail: thx for being the community to share and solve the issue and knowledge.EdwinOp 11 apr 2024 om 09:30 heeft Cédric Vandenberge @.> het volgende geschreven: @tijsverkoyen Good news ! Resolved by itself with Huawei update Working fine again at my side ! Apologize for creating a bug at your side while it wasn't ... But helped to find the root cause ! Thanks for you integration by the way ! amazing one !

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>