hassio-ecoflow-cloud icon indicating copy to clipboard operation
hassio-ecoflow-cloud copied to clipboard

API stops to collect for ONE device (DELTA 2 MAX) and OK for all the others

Open Fyr42 opened this issue 1 year ago • 12 comments

Hi,

Since a few weeks, my DELTA 2 MAX is seen offline, and data are no more collected. Data are collected for a few minutes after a restart, between 4 and 5 minutes.

During the phase between online and offline, there is a recurring message in logs, that stops when the delta 2 max is seen offline

2025-01-24 14:43:23.563 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/config/custom_components/ecoflow_cloud/api/public_api.py", line 80, in quota_all raw = await self.call_api("/device/quota/all", {"sn": sn}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/ecoflow_cloud/api/public_api.py", line 100, in call_api return await self._get_json_response(resp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/ecoflow_cloud/api/__init__.py", line 80, in _get_json_response raise EcoflowException(f"{response_message}") custom_components.ecoflow_cloud.api.EcoflowException: (('signature is wrong',), {})

Of course I tested to erase and re add the device with the same failure.

All others devices are OK : powerstream and smartplugs, with the very same API key.

Normal operation of the powerstream

2025-01-24 14:43:24.483 DEBUG (MainThread) [custom_components.ecoflow_cloud.devices] Finished fetching Ecoflow update coordinator data in 0.000 seconds (success: True) 2025-01-24 14:43:24.541 DEBUG (MainThread) [custom_components.ecoflow_cloud.devices] Finished fetching Ecoflow update coordinator data in 0.000 seconds (success: True) 2025-01-24 14:43:25.254 DEBUG (Thread-30 (_thread_main)) [custom_components.ecoflow_cloud.api.ecoflow_mqtt] Message for HW51XXXXXXX2361 and Topic /open/open-34153e3XXXXXXXXXXX4d9110c/HW5XXXXXXX2361/quota

Image Image

Any idea ?

Kind regards

Fyr42 avatar Jan 24 '25 14:01 Fyr42

Hello everyone, is there already a solution to the problem? I've had the same error since yesterday, Delta 2 Max is no longer receiving data, the PowerStream works...

Image

Neewieedo avatar Jan 26 '25 05:01 Neewieedo

Has anyone found a solution for this? For me, the Delta 2 Max still doesn't deliver any data and is offline while the power stream is running. Everything works in the app...

Neewieedo avatar Feb 02 '25 11:02 Neewieedo

My observations show that controls like switch.*_backup_reserve_enabledand number.*_ac_charging_power continue to work. Additionally after each such communication with EcoFlow API, sensor.*_status returns back to online and its attribute data_last_update is updated. However shortly after, quota_requests attribute starts to increment every few seconds until sensor.*_status switches to assume_offline when everything stops changing. Note, that from my experience the only way for data from API to be retrieved, is to restart HA, but even after restart only single reading is read and it subsequent updates never happen.

In my case not only Delta 2 Max but also PowerStream that is integrated via API has its sensor.*_status in assume_offline state.

Note that "older" approach with non-API (email/password) integration method (that is usually unstable, and periodically stops working), currently works, and produce meaningful data. I am not switching to it yet since it'll require a lot of changes both to dashboards and to template sensors and automations.

Still hope that someone more knowledgeable about EcoFlow protocol will be able both to explain and possibly fix the issue.

myroslav avatar Feb 04 '25 12:02 myroslav

Unfortunately, the same situation still exists here. PowerStream works, Delta 2 Max is offline.

I have also tried to reconfigure the integration, but the Delta 2 Max is online for exactly 4 minutes and then goes offline forever...

I hope someone can offer a solution to this problem.

Image

Neewieedo avatar Feb 08 '25 09:02 Neewieedo

Have you tried a new API key?

florismetzner avatar Feb 10 '25 22:02 florismetzner

No, I haven't tested that yet. The PowerStream works too. I don't want to break anything else with it. And there's a 1.30beta3 in the works right now...

Neewieedo avatar Feb 12 '25 10:02 Neewieedo

I also have the same issue (3 devices, data collection stops for one). Re-generating API key on EF Developer Portal worked fine. However, it would be great if integration provides some notification that API keys are old.

k-korn avatar Feb 17 '25 08:02 k-korn

Does the newly generated code now run without problems and did generating the code work well?

Neewieedo avatar Feb 17 '25 12:02 Neewieedo

Does the newly generated code now run without problems and did generating the code work well?

You need to remove the old code before generating a new one. Also you will receive 4 or 5 email code confirmations in the process, which is kinda ridiculous.

As for the integration - yes, works as expected after the key is refreshed.

k-korn avatar Feb 17 '25 15:02 k-korn

@florismetzner @k-korn

Today I finally implemented and tested the new code generation. So far it's working perfectly :-)

Thank you for the tip!

Neewieedo avatar Feb 20 '25 10:02 Neewieedo

However, it would be great if integration provides some notification that API keys are old.

Yes, that would be a desirable feature :-)

Neewieedo avatar Feb 22 '25 08:02 Neewieedo

Have you tried a new API key?

I had the same issue, after setup values have not been updated properly, worked only for some time after reboot or once after pressing reload in the Ecoflow Integration configuration page.

Renewed the key a few minutes ago and since then it seems to work as normal, updating every few seconds automatically! HA OS 15 Home Assistant Core 2025.2.4

s3b0r avatar Mar 28 '25 12:03 s3b0r