tijsverkoyen / HomeAssistant-FusionSolar

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

ACCESS_FREQUENCY_IS_TOO_HIGH #89

Closed kzajac83 closed 1 year ago

kzajac83 commented 1 year ago

Hello.

I have more than 200 error with below error in my HA and FusionSolar add-on regadring too high frequency (assume reading from Huawei servers). Of course I'd prefer data in real time but understood that from API Huawei max is problaby is every 5 min update but how often check plug-in do not know?

` This error originated from a custom integration.

Logger: custom_components.fusion_solar.sensor Source: custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py:194 Integration: Fusion Solar (documentation, issues) First occurred: April 14, 2023 at 13:48:40 (285 occurrences) Last logged: 23:50:55

Unexpected error fetching FusionSolarOpenAPIStationYearKpi data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 206, in _async_update_data return await self.update_method() File "/config/custom_components/fusion_solar/sensor.py", line 655, in async_update_station_year_kpi_data response = await hass.async_add_executor_job(api.get_kpi_station_year, station_codes) File "/usr/local/lib/python3.10/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 125, in get_kpi_station_year response = self._do_call(url, json) File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 194, in _do_call raise FusionSolarOpenApiAccessFrequencyTooHighError( custom_components.fusion_solar.fusion_solar.openapi.openapi_api.FusionSolarOpenApiAccessFrequencyTooHighError: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH `

PS. Not sure connected but also have:

` This error originated from a custom integration.

Logger: custom_components.fusion_solar.device_real_kpi_coordinator Source: helpers/update_coordinator.py:193 Integration: Fusion Solar (documentation, issues) First occurred: April 15, 2023 at 19:02:19 (2 occurrences) Last logged: April 15, 2023 at 20:34:49

Timeout fetching FusionSolarOpenAPIDeviceRealKpiType data `

tijsverkoyen commented 1 year ago

Are you 100% sure that this is the only integration that is using your OpenAPI credentials?

As the interval is https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/blob/fd3014fc98a6af58e4981ee1cfbfd76e4029fe11/custom_components/fusion_solar/sensor.py#L678. You could try to increase that to 900

kzajac83 commented 1 year ago

Yes, I'm sure. I create one account and connect to your add-on: image

In Fusion Solar add-on have 3 items:

image General as I see, update from inverter is every 5 min then 600s=10min seems is good value for refresh

But cannot locate sensor.py file, have only:

image

BTW - should I allow steering update of entities to HA??

image

danielhunt commented 1 year ago

fwiw I am also seeing this flooding my logfiles since installing the integration

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 206, in _async_update_data
return await self.update_method()
File "/config/custom_components/fusion_solar/sensor.py", line 655, in async_update_station_year_kpi_data
response = await hass.async_add_executor_job(api.get_kpi_station_year, station_codes)
File "/usr/local/lib/python3.10/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 125, in get_kpi_station_year
response = self._do_call(url, json)
File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 194, in _do_call
raise FusionSolarOpenApiAccessFrequencyTooHighError(
custom_components.fusion_solar.fusion_solar.openapi.openapi_api.FusionSolarOpenApiAccessFrequencyTooHighError: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH
2023-04-21 15:12:14.391 ERROR (MainThread) [custom_components.fusion_solar.sensor] Unexpected error fetching FusionSolarOpenAPIStationYearKpi data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH

(this is the only thing that is using that API)

tijsverkoyen commented 1 year ago

I will need to look into this. Probably I will need to port the delay method. But I won't have time this week.

danielhunt commented 1 year ago

Thank you - I appreciate your time on this. Let me know if there's anything I can do to help, or other information I can gather that might help 👍

tijsverkoyen commented 1 year ago

@danielhunt can you confirm it is get_kpi_station_year every time in the logs? And can you check if there are 600second (5minutes) in between these log entries?

kzajac83 commented 1 year ago

Let's wait for @danielhunt, my frequency of below error msg is

2023-04-22 13:05:10.485 ERROR (MainThread) [custom_components.fusion_solar.sensor] Unexpected error fetching FusionSolarOpenAPIStationYearKpi data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH

04.22.2023 13:05:10 Dif time= 00:20:02 04.22.2023 13:25:12 Dif time= 00:10:00 04.22.2023 13:35:12 Dif time= 00:10:00 04.22.2023 13:45:12 Dif time= 00:10:00 04.22.2023 13:55:12 Dif time= 00:20:00 04.22.2023 14:15:12 Dif time= 00:10:00 04.22.2023 14:25:12 Dif time= 00:10:00 04.22.2023 14:35:12 Dif time= 00:10:00 04.22.2023 14:45:12 Dif time= 00:10:00 04.22.2023 14:55:12 Dif time= 00:20:00 04.22.2023 15:15:12 Dif time= 00:10:00 04.22.2023 15:25:12 Dif time= 00:10:00 04.22.2023 15:35:12 Dif time= 00:10:00 04.22.2023 15:45:12 Dif time= 00:20:00 04.22.2023 16:05:12 Dif time= 00:10:00 04.22.2023 16:15:12 Dif time= 00:10:00 04.22.2023 16:25:12 Dif time= 00:10:00 04.22.2023 16:35:12 Dif time= 00:10:00 04.22.2023 16:45:12 Dif time= 00:20:00 04.22.2023 17:05:12 Dif time= 00:10:00 04.22.2023 17:15:12 Dif time= 00:10:00 04.22.2023 17:25:12 Dif time= 00:10:00 04.22.2023 17:35:12 Dif time= 00:20:00 04.22.2023 17:55:12 Dif time= 00:10:00 04.22.2023 18:05:12 Dif time= 00:10:00 04.22.2023 18:15:12 Dif time= 00:10:00 04.22.2023 18:25:12 Dif time= 00:10:00 04.22.2023 18:35:12 Dif time= 00:20:00 04.22.2023 18:55:12 Dif time= 00:10:00 04.22.2023 19:05:12 Dif time= 00:10:00 04.22.2023 19:15:12 Dif time= 00:10:00 04.22.2023 19:25:12 Dif time= 00:20:00 04.22.2023 19:45:12 Dif time= 00:10:00 04.22.2023 19:55:12 Dif time= 00:10:00 04.22.2023 20:05:12 Dif time= 00:10:00 04.22.2023 20:15:12 Dif time= 00:10:00 04.22.2023 20:25:12 Dif time= 00:20:00 04.22.2023 20:45:12 Dif time= 00:10:00 04.22.2023 20:55:12 Dif time= 00:10:00 04.22.2023 21:05:12 Dif time= 00:10:00 04.22.2023 21:15:12 Dif time= 00:20:00 04.22.2023 21:35:12 Dif time= 00:10:00 04.22.2023 21:45:12 Dif time= 00:10:00 04.22.2023 21:55:12 Dif time= 00:10:00 04.22.2023 22:05:12 Dif time= 00:10:00 04.22.2023 22:15:12 Dif time= 00:20:00 04.22.2023 22:35:12 Dif time= 00:10:00 04.22.2023 22:45:12 Dif time= 00:10:00 04.22.2023 22:55:12 Dif time= 00:10:00 04.22.2023 23:05:12 Dif time= 00:10:00 04.22.2023 23:15:12 Dif time= 00:20:00 04.22.2023 23:35:12 Dif time= 00:10:00 04.22.2023 23:45:12 Dif time= 00:10:00 04.22.2023 23:55:12 Dif time= ############################################################################################################################################################################################################################################################### 04.23.2023 00:05:12 Dif time= 00:20:00 04.23.2023 00:25:12 Dif time= 00:10:00 04.23.2023 00:35:12 Dif time= 00:10:00 04.23.2023 00:45:12 Dif time= 00:10:00 04.23.2023 00:55:12 Dif time= 00:10:00 04.23.2023 01:05:12 Dif time= 00:20:00 04.23.2023 01:25:12 Dif time= 00:10:00 04.23.2023 01:35:12 Dif time= 00:10:00 04.23.2023 01:45:12 Dif time= 00:10:00 04.23.2023 01:55:12 Dif time= 00:20:00 04.23.2023 02:15:12 Dif time= 00:10:00 04.23.2023 02:25:12 Dif time= 00:10:00 04.23.2023 02:35:12 Dif time= 00:10:00 04.23.2023 02:45:12 Dif time= 00:10:00 04.23.2023 02:55:12 Dif time= 00:20:00 04.23.2023 03:15:12 Dif time= 00:10:00 04.23.2023 03:25:12 Dif time= 00:10:00 04.23.2023 03:35:12 Dif time= 00:10:00 04.23.2023 03:45:12 Dif time= 00:20:00 04.23.2023 04:05:12 Dif time= 00:10:00 04.23.2023 04:15:12 Dif time= 00:10:00 04.23.2023 04:25:12 Dif time= 00:10:00 04.23.2023 04:35:12 Dif time= 00:10:00 04.23.2023 04:45:12 Dif time= 00:20:00 04.23.2023 05:05:12 Dif time= 00:10:00 04.23.2023 05:15:12 Dif time= 00:10:00 04.23.2023 05:25:12 Dif time= 00:10:00 04.23.2023 05:35:12 Dif time= 00:20:00 04.23.2023 05:55:12 Dif time= 00:10:00 04.23.2023 06:05:12 Dif time= 00:10:00 04.23.2023 06:15:12 Dif time= 00:10:00 04.23.2023 06:25:12 Dif time= 00:10:00 04.23.2023 06:35:12 Dif time= 00:20:00 04.23.2023 06:55:12 Dif time= 00:10:00 04.23.2023 07:05:12 Dif time= 00:10:00 04.23.2023 07:15:12 Dif time= 00:10:00 04.23.2023 07:25:12 Dif time= 00:20:00 04.23.2023 07:45:12 Dif time= 00:10:00 04.23.2023 07:55:12 Dif time= 00:10:00 04.23.2023 08:05:12 Dif time= 00:10:00 04.23.2023 08:15:12 Dif time= 00:10:00 04.23.2023 08:25:12 Dif time= 00:20:00 04.23.2023 08:45:12 Dif time= 00:10:00 04.23.2023 08:55:12 Dif time= 00:10:00 04.23.2023 09:05:12 Dif time= 00:10:00 04.23.2023 09:15:12 Dif time= 00:20:00 04.23.2023 09:35:12 Dif time= 00:10:00 04.23.2023 09:45:12 Dif time= 00:10:00 04.23.2023 09:55:12 Dif time= 00:10:00 04.23.2023 10:05:12 Dif time= 00:10:00 04.23.2023 10:15:12 Dif time= 00:20:00 04.23.2023 10:35:12 Dif time= 00:10:00 04.23.2023 10:45:12 Dif time= 00:10:00 04.23.2023 10:55:12 Dif time= 00:10:00 04.23.2023 11:05:12 Dif time= 00:10:00 04.23.2023 11:15:12 Dif time= 00:20:00 04.23.2023 11:35:12 Dif time= 00:10:00 04.23.2023 11:45:12 Dif time= 00:10:00 04.23.2023 11:55:12 Dif time= 00:10:00 04.23.2023 12:05:12 Dif time= 00:20:00 04.23.2023 12:25:12 Dif time= 00:10:00 04.23.2023 12:35:12 Dif time= 00:10:00 04.23.2023 12:45:12 Dif time= 00:10:00 04.23.2023 12:55:12 Dif time= 00:10:00 04.23.2023 13:05:12 Dif time= 00:20:00 04.23.2023 13:25:12 Dif time= 00:10:00 04.23.2023 13:35:12 Dif time= 00:10:00 04.23.2023 13:45:12 Dif time= 00:10:00 04.23.2023 13:55:12 Dif time= 00:20:00 04.23.2023 14:15:12 Dif time= 00:10:00 04.23.2023 14:25:12 Dif time= 00:10:00 04.23.2023 14:35:12 Dif time= 00:10:00 04.23.2023 14:45:12 Dif time= 00:10:00 04.23.2023 14:55:12 Dif time= 00:20:00 04.23.2023 15:15:12 Dif time= 00:10:00 04.23.2023 15:25:12 Dif time= 00:10:00 04.23.2023 15:35:12 Dif time= 00:10:00 04.23.2023 15:45:12 Dif time= 00:20:00 04.23.2023 16:05:12 Dif time= 00:10:00 04.23.2023 16:15:12 Dif time= 00:10:00 04.23.2023 16:25:12 Dif time= 00:10:00 04.23.2023 16:35:12 Dif time= 00:10:00 04.23.2023 16:45:12 Dif time= 00:20:00 04.23.2023 17:05:12 Dif time= 00:10:00 04.23.2023 17:15:12 Dif time= 00:10:00 04.23.2023 17:25:12 Dif time= 00:10:00 04.23.2023 17:35:12 Dif time= 00:20:00 04.23.2023 17:55:12 Dif time= 00:10:00 04.23.2023 18:05:12 Dif time= 00:10:00 04.23.2023 18:15:12 Dif time= 00:10:00 04.23.2023 18:25:12 Dif time= 00:10:00 04.23.2023 18:35:12 Dif time= 00:20:00 04.23.2023 18:55:12 Dif time= 00:10:00 04.23.2023 19:05:12 Dif time= 00:10:00 04.23.2023 19:15:12 Dif time= 00:10:00 04.23.2023 19:25:12 Dif time= 00:20:00 04.23.2023 19:45:12 Dif time= 00:10:00 04.23.2023 19:55:12 Dif time= 00:10:00 04.23.2023 20:05:12 Dif time= 00:10:00 04.23.2023 20:15:12 Dif time= 00:10:00 04.23.2023 20:25:12 Dif time= 00:20:00 04.23.2023 20:45:12 Dif time= 00:10:00 04.23.2023 20:55:12 Dif time= 00:10:00 04.23.2023 21:05:12 Dif time= 00:10:00 04.23.2023 21:15:12 Dif time= 00:20:00 04.23.2023 21:35:12 Dif time= 00:10:00 04.23.2023 21:45:12 Dif time= 00:10:00 04.23.2023 21:55:12 Dif time= 00:10:00 04.23.2023 22:05:12 Dif time= 00:10:00 04.23.2023 22:15:12 Dif time= 00:20:00 04.23.2023 22:35:12 Dif time= 00:10:00 04.23.2023 22:45:12 Dif time= 00:10:00 04.23.2023 22:55:12 Dif time= 00:10:00 04.23.2023 23:05:12 Dif time= 00:10:00 04.23.2023 23:15:12 Dif time= 00:20:00 04.23.2023 23:35:12 Dif time= 00:10:00 04.23.2023 23:45:12 Dif time= 00:10:00 04.23.2023 23:55:12 Dif time= ############################################################################################################################################################################################################################################################### 04.24.2023 00:05:12 Dif time= 00:20:00 04.24.2023 00:25:12 Dif time= 00:10:00 04.24.2023 00:35:12 Dif time= 00:10:00 04.24.2023 00:45:12 Dif time= 00:10:00 04.24.2023 00:55:12 Dif time= 00:10:00 04.24.2023 01:05:12 Dif time= 00:20:00 04.24.2023 01:25:12 Dif time= 00:10:00 04.24.2023 01:35:12 Dif time= 00:10:00 04.24.2023 01:45:12 Dif time= 00:10:00 04.24.2023 01:55:12 Dif time= 00:20:00 04.24.2023 02:15:12 Dif time= 00:10:00 04.24.2023 02:25:12 Dif time= 00:10:00 04.24.2023 02:35:12 Dif time= 00:10:00 04.24.2023 02:45:12 Dif time= 00:10:00 04.24.2023 02:55:12 Dif time= 00:20:00 04.24.2023 03:15:12 Dif time= 00:10:00 04.24.2023 03:25:12 Dif time= 00:10:00 04.24.2023 03:35:12 Dif time= 00:10:00 04.24.2023 03:45:12 Dif time= 00:20:00 04.24.2023 04:05:12 Dif time= 00:10:00 04.24.2023 04:15:12 Dif time= 00:10:00 04.24.2023 04:25:12 Dif time= 00:10:00 04.24.2023 04:35:12 Dif time= 00:10:00 04.24.2023 04:45:12 Dif time= 00:20:00 04.24.2023 05:05:12 Dif time= 00:10:00 04.24.2023 05:15:12 Dif time= 00:10:00 04.24.2023 05:25:12 Dif time= 00:10:00 04.24.2023 05:35:12 Dif time= 00:20:00 04.24.2023 05:55:12 Dif time= 00:10:00 04.24.2023 06:05:12 Dif time= 00:10:00 04.24.2023 06:15:12 Dif time= 00:10:00 04.24.2023 06:25:12 Dif time= 00:10:00 04.24.2023 06:35:12 Dif time= 00:20:00 04.24.2023 06:55:12 Dif time= 00:10:00 04.24.2023 07:05:12 Dif time= 00:10:00 04.24.2023 07:15:12 Dif time= 00:10:00 04.24.2023 07:25:12 Dif time= 00:20:00 04.24.2023 07:45:12 Dif time= 00:10:00 04.24.2023 07:55:12 Dif time= 00:10:00 04.24.2023 08:05:12 Dif time= 00:10:00 04.24.2023 08:15:12 Dif time= 00:10:00 04.24.2023 08:25:12 Dif time= 00:20:00 04.24.2023 08:45:12 Dif time= 00:10:00 04.24.2023 08:55:12 Dif time= 00:10:00 04.24.2023 09:05:12 Dif time= 00:10:00 04.24.2023 09:15:12 Dif time= 00:20:00 04.24.2023 09:35:12 Dif time= 00:10:00 04.24.2023 09:45:12 Dif time= 00:10:00 04.24.2023 09:55:12 Dif time= 00:10:00 04.24.2023 10:05:12 Dif time= 00:10:00 04.24.2023 10:15:12 Dif time= 00:20:00 04.24.2023 10:35:12 Dif time= 00:10:00 04.24.2023 10:45:12 Dif time= 00:10:00 04.24.2023 10:55:12 Dif time= 00:10:00 04.24.2023 11:05:12 Dif time= 00:10:00 04.24.2023 11:15:12 Dif time= 00:20:00 04.24.2023 11:35:12 Dif time= 00:10:00 04.24.2023 11:45:12 Dif time= 00:10:00 04.24.2023 11:55:12 Dif time= 00:10:00 04.24.2023 12:05:12 Dif time= 00:20:00 04.24.2023 12:25:12 Dif time= 00:10:00 04.24.2023 12:35:12 Dif time= 00:10:00 04.24.2023 12:45:12 Dif time= 00:10:00 04.24.2023 12:55:12 Dif time= 00:10:00 04.24.2023 13:05:12 Dif time= 00:20:00 04.24.2023 13:25:12 Dif time= 00:10:00 04.24.2023 13:35:12 Dif time= 00:10:00 04.24.2023 13:45:12 Dif time= 00:10:00 04.24.2023 13:55:12 Dif time= 00:20:00 04.24.2023 14:15:12 Dif time= 00:10:00 04.24.2023 14:25:12 Dif time= 00:10:00 04.24.2023 14:35:12 Dif time= 00:10:00 04.24.2023 14:45:12 Dif time= 00:10:00 04.24.2023 14:55:12 Dif time= 00:20:00 04.24.2023 15:15:12 Dif time= 00:10:00 04.24.2023 15:25:12 Dif time= 00:10:00 04.24.2023 15:35:12 Dif time= 00:10:00 04.24.2023 15:45:12 Dif time= 00:20:00 04.24.2023 16:05:12 Dif time= 00:10:00 04.24.2023 16:15:12 Dif time= 00:10:00 04.24.2023 16:25:12 Dif time= 00:10:00 04.24.2023 16:35:12 Dif time= 00:10:00 04.24.2023 16:45:12 Dif time= 00:20:00 04.24.2023 17:05:12 Dif time= 00:10:00 04.24.2023 17:15:12 Dif time= 00:10:00 04.24.2023 17:25:12 Dif time= 00:10:00 04.24.2023 17:35:12 Dif time= 00:20:00 04.24.2023 17:55:12 Dif time= 00:10:00 04.24.2023 18:05:12 Dif time= 00:10:00 04.24.2023 18:15:12 Dif time= 00:10:00 04.24.2023 18:25:12 Dif time= 00:10:00 04.24.2023 18:35:12 Dif time= 00:20:00 04.24.2023 18:55:12 Dif time= 00:10:00 04.24.2023 19:05:12 Dif time= 00:10:00 04.24.2023 19:15:12 Dif time= 00:10:00 04.24.2023 19:25:12 Dif time= 00:20:00 04.24.2023 19:45:12 Dif time= 00:10:00 04.24.2023 19:55:12 Dif time= 00:10:00 04.24.2023 20:05:12 Dif time= 00:10:00 04.24.2023 20:15:12 Dif time= 00:10:00 04.24.2023 20:25:12 Dif time= 00:20:00 04.24.2023 20:45:12 Dif time= 00:10:00 04.24.2023 20:55:12 Dif time= 00:10:00 04.24.2023 21:05:12 Dif time= 00:10:00 04.24.2023 21:15:12 Dif time= 00:20:00 04.24.2023 21:35:12 Dif time= 00:10:00 04.24.2023 21:45:12 Dif time= 00:10:00 04.24.2023 21:55:12 Dif time= 00:10:00 04.24.2023 22:05:12 Dif time= 00:10:00 04.24.2023 22:15:12 Dif time= 00:20:00 04.24.2023 22:35:12 Dif time= 00:10:00 04.24.2023 22:45:12 Dif time= 00:10:00 04.24.2023 22:55:12 Dif time= 00:10:00 04.24.2023 23:05:12 Dif time= 00:10:00 04.24.2023 23:15:12 Dif time= 00:20:00 04.24.2023 23:35:12 Dif time= 00:10:00 04.24.2023 23:45:12 Dif time= 00:10:00 04.24.2023 23:55:12 Dif time= ############################################################################################################################################################################################################################################################### 04.25.2023 00:05:12 Dif time= 00:20:00 04.25.2023 00:25:12 Dif time= 00:10:00 04.25.2023 00:35:12 Dif time= 00:10:00 04.25.2023 00:45:12 Dif time= 00:10:00 04.25.2023 00:55:12 Dif time= 00:10:00 04.25.2023 01:05:12 Dif time= 00:20:00 04.25.2023 01:25:12 Dif time= 00:10:00 04.25.2023 01:35:12 Dif time= 00:10:00 04.25.2023 01:45:12 Dif time= 00:10:00 04.25.2023 01:55:12 Dif time= 00:20:00 04.25.2023 02:15:12 Dif time= 00:10:00 04.25.2023 02:25:12 Dif time= 00:10:00 04.25.2023 02:35:12 Dif time= 00:10:00 04.25.2023 02:45:12 Dif time= 00:10:00 04.25.2023 02:55:12 Dif time= 00:20:00 04.25.2023 03:15:12 Dif time= 00:10:00 04.25.2023 03:25:12 Dif time= 00:10:00 04.25.2023 03:35:12 Dif time= 00:10:00 04.25.2023 03:45:12 Dif time= 00:20:00 04.25.2023 04:05:12 Dif time= 00:10:00 04.25.2023 04:15:12 Dif time= 00:10:00 04.25.2023 04:25:12 Dif time= 00:10:00 04.25.2023 04:35:12 Dif time= 00:10:00 04.25.2023 04:45:12 Dif time= 00:20:00 04.25.2023 05:05:12 Dif time= 00:10:00 04.25.2023 05:15:12 Dif time= 00:10:00 04.25.2023 05:25:12 Dif time= 00:10:00 04.25.2023 05:35:12 Dif time= 00:20:00 04.25.2023 05:55:12 Dif time= 00:10:00 04.25.2023 06:05:12 Dif time= 00:10:00 04.25.2023 06:15:12 Dif time= 00:10:00 04.25.2023 06:25:12 Dif time= 00:10:00 04.25.2023 06:35:12 Dif time= 00:20:00 04.25.2023 06:55:12 Dif time= 00:10:00 04.25.2023 07:05:12 Dif time= 00:10:00 04.25.2023 07:15:12 Dif time= 00:10:00 04.25.2023 07:25:12 Dif time= 00:20:00 04.25.2023 07:45:12 Dif time= 00:10:00 04.25.2023 07:55:12 Dif time= 00:10:00 04.25.2023 08:05:12 Dif time= 00:10:00 04.25.2023 08:15:12 Dif time= 00:10:00 04.25.2023 08:25:12 Dif time= 00:20:00 04.25.2023 08:45:12 Dif time= 00:10:00 04.25.2023 08:55:12 Dif time= 00:10:00 04.25.2023 09:05:12 Dif time= 00:10:00 04.25.2023 09:15:12 Dif time= 00:20:00 04.25.2023 09:35:12 Dif time= 00:10:00 04.25.2023 09:45:12 Dif time= 00:10:00 04.25.2023 09:55:12 Dif time= 00:10:00 04.25.2023 10:05:12 Dif time= 00:10:00 04.25.2023 10:15:12 Dif time= 00:20:00 04.25.2023 10:35:12 Dif time= 00:10:00 04.25.2023 10:45:12 Dif time= 00:10:00 04.25.2023 10:55:12 Dif time= 00:10:00 04.25.2023 11:05:12 Dif time= 00:10:00 04.25.2023 11:15:12 Dif time= 00:20:00 04.25.2023 11:35:12 Dif time= 00:10:00 04.25.2023 11:45:12 Dif time= 00:10:00 04.25.2023 11:55:12 Dif time= 00:10:00 04.25.2023 12:05:12 Dif time= 00:20:00 04.25.2023 12:25:12 Dif time= 00:10:00 04.25.2023 12:35:12 Dif time= 00:10:00 04.25.2023 12:45:12 Dif time= 00:10:00 04.25.2023 12:55:12 Dif time= 00:10:00 04.25.2023 13:05:12 Dif time= 00:20:00 04.25.2023 13:25:12 Dif time= 00:10:00 04.25.2023 13:35:12 Dif time= 00:10:00 04.25.2023 13:45:12 Dif time= 00:10:00 04.25.2023 13:55:12 Dif time= 00:20:00 04.25.2023 14:15:12 Dif time= 00:10:00 04.25.2023 14:25:12 Dif time= 00:10:00 04.25.2023 14:35:12 Dif time= 00:10:00 04.25.2023 14:45:12 Dif time= 00:10:00 04.25.2023 14:55:12 Dif time= 00:20:00 04.25.2023 15:15:12 Dif time= 00:10:00 04.25.2023 15:25:12 Dif time= 00:10:00 04.25.2023 15:35:12 Dif time= 00:10:00 04.25.2023 15:45:12 Dif time= 00:20:00 04.25.2023 16:05:12 Dif time= 00:10:00 04.25.2023 16:15:12 Dif time= 00:10:00 04.25.2023 16:25:12 Dif time= 00:10:00 04.25.2023 16:35:12 Dif time= 00:10:00 04.25.2023 16:45:12 Dif time= 00:20:00 04.25.2023 17:05:12 Dif time= 00:10:00 04.25.2023 17:15:12 Dif time= 00:10:00 04.25.2023 17:25:12 Dif time= 00:10:00 04.25.2023 17:35:12 Dif time= 00:20:00 04.25.2023 17:55:12 Dif time= 00:10:00 04.25.2023 18:05:12 Dif time= 00:10:00 04.25.2023 18:15:12 Dif time= 00:10:00 04.25.2023 18:25:12 Dif time= 00:10:00 04.25.2023 18:35:12 Dif time= 00:20:00 04.25.2023 18:55:12 Dif time= 00:10:00 04.25.2023 19:05:12 Dif time= 00:10:00 04.25.2023 19:15:12 Dif time= 00:10:00 04.25.2023 19:25:12 Dif time= 00:20:00 04.25.2023 19:45:12 Dif time= 00:10:00 04.25.2023 19:55:12 Dif time= 00:10:00 04.25.2023 20:05:12 Dif time= 00:10:00 04.25.2023 20:15:12 Dif time= 00:10:00 04.25.2023 20:25:12 Dif time= 00:20:00 04.25.2023 20:45:12 Dif time= 00:10:00 04.25.2023 20:55:12 Dif time= 00:10:00 04.25.2023 21:05:12 Dif time= 00:10:00 04.25.2023 21:15:12 Dif time= 00:20:00 04.25.2023 21:35:12 Dif time= 00:10:00 04.25.2023 21:45:12 Dif time= 00:10:00 04.25.2023 21:55:12 Dif time= 00:10:00 04.25.2023 22:05:12 Dif time= 00:10:00 04.25.2023 22:15:12 Dif time= 00:20:00 04.25.2023 22:35:12 Dif time= 00:10:00 04.25.2023 22:45:12 Dif time= 00:10:00 04.25.2023 22:55:12 Dif time= 00:10:00 04.25.2023 23:05:12 Dif time= 00:10:00 04.25.2023 23:15:12 Dif time= 00:20:00 04.25.2023 23:35:12 Dif time= 00:10:00 04.25.2023 23:45:12 Dif time= 00:10:00 04.25.2023 23:55:12 Dif time= ############################################################################################################################################################################################################################################################### 04.26.2023 00:05:12 Dif time= 00:20:00 04.26.2023 00:25:12 Dif time= 00:10:00 04.26.2023 00:35:12 Dif time= 00:10:00 04.26.2023 00:45:12 Dif time= 00:10:00 04.26.2023 00:55:12 Dif time= 00:10:00 04.26.2023 01:05:12 Dif time= 00:20:00 04.26.2023 01:25:12 Dif time= 00:10:00 04.26.2023 01:35:12 Dif time= 00:10:00 04.26.2023 01:45:12 Dif time= 00:10:00 04.26.2023 01:55:12 Dif time= 00:20:00 04.26.2023 02:15:12 Dif time= 00:10:00 04.26.2023 02:25:12 Dif time= 00:10:00 04.26.2023 02:35:12 Dif time= 00:10:00 04.26.2023 02:45:12 Dif time= 00:10:00 04.26.2023 02:55:12 Dif time= 00:20:00 04.26.2023 03:15:12 Dif time= 00:10:00 04.26.2023 03:25:12 Dif time= 00:10:00 04.26.2023 03:35:12 Dif time= 00:10:00 04.26.2023 03:45:12 Dif time= 00:20:00 04.26.2023 04:05:12 Dif time= 00:10:00 04.26.2023 04:15:12 Dif time= 00:10:00 04.26.2023 04:25:12 Dif time= 00:10:00 04.26.2023 04:35:12 Dif time= 00:10:00 04.26.2023 04:45:12 Dif time= 00:20:00 04.26.2023 05:05:12 Dif time= 00:10:00 04.26.2023 05:15:12 Dif time= 00:10:00 04.26.2023 05:25:12 Dif time= 00:10:00 04.26.2023 05:35:12 Dif time= 00:20:00 04.26.2023 05:55:12 Dif time= 00:10:00 04.26.2023 06:05:12 Dif time= 00:10:00 04.26.2023 06:15:12 Dif time= 00:10:00 04.26.2023 06:25:12 Dif time= 00:10:00 04.26.2023 06:35:12 Dif time= 00:20:00 04.26.2023 06:55:12 Dif time= 00:10:00 04.26.2023 07:05:12 Dif time= 00:10:00 04.26.2023 07:15:12 Dif time= 00:10:00 04.26.2023 07:25:12 Dif time= 00:20:00 04.26.2023 07:45:12 Dif time= 00:10:00 04.26.2023 07:55:12 Dif time= 00:10:00 04.26.2023 08:05:12 Dif time= 00:10:00 04.26.2023 08:15:12 Dif time= 00:10:00 04.26.2023 08:25:12 Dif time= 00:20:00 04.26.2023 08:45:12 Dif time= 00:10:00 04.26.2023 08:55:12 Dif time= 00:10:00 04.26.2023 09:05:12 Dif time= 00:10:00 04.26.2023 09:15:12 Dif time= 00:20:00 04.26.2023 09:35:12 Dif time= 00:10:00 04.26.2023 09:45:12 Dif time= 00:10:00 04.26.2023 09:55:12 Dif time= 00:10:00 04.26.2023 10:05:12 Dif time= 00:10:00 04.26.2023 10:15:12 Dif time= 00:20:00 04.26.2023 10:35:12 Dif time= 00:10:00 04.26.2023 10:45:12 Dif time= 00:10:00 04.26.2023 10:55:12 Dif time= 00:10:00 04.26.2023 11:05:12 Dif time= 00:10:00 04.26.2023 11:15:12 Dif time= 00:20:00 04.26.2023 11:35:12 Dif time= 00:10:00 04.26.2023 11:45:12 Dif time= 00:10:00 04.26.2023 11:55:12 Dif time= 00:10:00 04.26.2023 12:05:12 Dif time= 00:20:00 04.26.2023 12:25:12 Dif time= 00:10:00 04.26.2023 12:35:12 Dif time= 00:10:00 04.26.2023 12:45:12 Dif time= 00:10:00 04.26.2023 12:55:12 Dif time= 00:10:00 04.26.2023 13:05:12 Dif time= 00:20:00 04.26.2023 13:25:12 Dif time= 00:10:00 04.26.2023 13:35:12 Dif time= 00:10:00 04.26.2023 13:45:12 Dif time= 00:10:00 04.26.2023 13:55:12 Dif time= 00:20:00 04.26.2023 14:15:12 Dif time= 00:10:00 04.26.2023 14:25:12 Dif time= 00:10:00 04.26.2023 14:35:12 Dif time= 00:10:00 04.26.2023 14:45:12 Dif time= 00:10:00 04.26.2023 14:55:12 Dif time= 00:20:00 04.26.2023 15:15:12 Dif time= 00:10:00 04.26.2023 15:25:12 Dif time= 00:10:00 04.26.2023 15:35:12 Dif time= 00:10:00 04.26.2023 15:45:12 Dif time= 00:20:00 04.26.2023 16:05:12 Dif time= 00:10:00 04.26.2023 16:15:12 Dif time= 00:10:00 04.26.2023 16:25:12 Dif time= 00:10:00 04.26.2023 16:35:12 Dif time= 00:10:00 04.26.2023 16:45:12 Dif time= 00:20:00 04.26.2023 17:05:12 Dif time= 00:10:00 04.26.2023 17:15:12 Dif time= 00:10:00 04.26.2023 17:25:12 Dif time= 00:10:00 04.26.2023 17:35:12 Dif time= ###############################################################################################################################################################################################################################################################

tijsverkoyen commented 1 year ago

So there is exactly 10 minutes in between, which is expected Could you try to change the following code on custom_components/fusion_solar/sensor.py line 76 from

update_interval=timedelta(seconds=600),

to

update_interval=timedelta(seconds=630),
kzajac83 commented 1 year ago

Done, should I restart HA ?

danielhunt commented 1 year ago

get_kpi_station_year

Yup, every instance of the log entry refers to get_kpi_station_year

And on the topic of frequency:

...
2023-04-28 17:57:41.305
2023-04-28 18:17:41.313
2023-04-28 18:27:41.309
2023-04-28 18:37:41.343
2023-04-28 18:47:41.309
2023-04-28 18:57:41.297
2023-04-28 19:17:41.289
2023-04-28 19:27:41.307
...

... so it looks pretty identical to the samples given by @kzajac83

kzajac83 commented 1 year ago

Do not get answer should or not restart add-on or HA after change refers form 600 to 630 but I restart due to upgrade OS and after more then one day:

image

And for today (half of day) is

2023-05-01 00:38:22.576 2023-05-01 00:48:22.585 2023-05-01 00:58:22.625 2023-05-01 01:18:22.596 2023-05-01 01:28:22.597 2023-05-01 01:38:22.636 2023-05-01 01:48:22.607 2023-05-01 01:58:22.596 2023-05-01 02:18:22.586 2023-05-01 02:28:22.620 2023-05-01 02:38:22.619 2023-05-01 02:48:22.611 2023-05-01 03:08:22.609 2023-05-01 03:18:22.594 2023-05-01 03:28:22.628 2023-05-01 03:38:22.619 2023-05-01 03:48:22.634 2023-05-01 04:08:22.605 2023-05-01 04:18:22.627 2023-05-01 04:28:22.612 2023-05-01 04:38:22.630 2023-05-01 04:58:22.613 2023-05-01 05:08:22.689 2023-05-01 05:18:22.624 2023-05-01 05:28:22.611 2023-05-01 05:38:22.609 2023-05-01 05:58:22.601 2023-05-01 06:08:22.602 2023-05-01 06:18:22.620 2023-05-01 06:28:22.594 2023-05-01 06:38:22.609 2023-05-01 06:58:22.604 2023-05-01 07:08:22.612 2023-05-01 07:18:22.591 2023-05-01 07:28:22.590 2023-05-01 07:48:22.596 2023-05-01 07:58:22.601 2023-05-01 08:08:22.595 2023-05-01 08:18:22.602 2023-05-01 08:28:22.605 2023-05-01 08:48:22.595 2023-05-01 08:58:22.599 2023-05-01 09:08:22.599 2023-05-01 09:18:22.592 2023-05-01 09:38:22.632 2023-05-01 09:48:22.599 2023-05-01 09:58:22.611 2023-05-01 10:08:22.597 2023-05-01 10:18:22.584 2023-05-01 10:38:22.589 2023-05-01 10:48:22.597 2023-05-01 10:58:22.598 2023-05-01 11:08:22.608 2023-05-01 11:28:22.607 2023-05-01 11:38:22.599 2023-05-01 11:48:22.633 2023-05-01 11:58:22.611 2023-05-01 12:08:22.594 2023-05-01 12:28:22.609 2023-05-01 12:38:22.591 2023-05-01 12:48:22.610 2023-05-01 12:58:22.599 2023-05-01 13:18:22.593 2023-05-01 13:28:22.568 2023-05-01 13:38:22.773 2023-05-01 13:48:22.591

image

tijsverkoyen commented 1 year ago

Could you contact eu_inverter_support@huawei.com and ask them what the actual rate limit is for you. As it seems that it is less then 10minutes.

mrkscn commented 1 year ago

Hi,

Just to note that I am receiving the same ACCESS_FREQUENCY_IS_TOO_HIGH on the FusionSolarOpenAPIStationYearKpi call. I just got a new Northbound API account setup and have a fresh installation of HA and the plugin. Some of the information is populating - total current day energy (and month) and total lifetime from the plant, but the year is unknown. None of the values from the inverter, battery or meter are populating and all show "unknown".

tijsverkoyen commented 1 year ago

The warning "ACCESS_FREQUENCY_IS_TOO_HIGH" is not related to data not being shown. Check, or let your installer check, that you have the correct access, see https://github.com/tijsverkoyen/HomeAssistant-FusionSolar#northbound-api--openapi

danielhunt commented 1 year ago

@mrkscn I also had a fresh Northbound API account and plug-in install and experienced the same missing-entity and missing-data problem. I restarted HA and everything was working correctly more or less immediately after that.

Give a turn-it-off-and-on-again and see if that helps

kzajac83 commented 1 year ago

iMaster NetEco V600R023C00 Northbound Interface Reference-V6(SmartPVMS)_19.01.2023.pdf iMaster NetEco V600R023C00 Northbound Interface Reference-V7(SmartPVMS)_19.01.2023.pdf Dear All.

As suggest @tijsverkoyen I creat service request on Huawei portal and today got two PDF describling API , most important part is section "Traffic Limiting Policy"

tijsverkoyen commented 1 year ago

For "Yearly Plant Data Interface" (/thirdData/getKpiStationYear):

Traffic limiting is performed based on the number of plants managed by northbound API users. Number of northbound API calls per user per day = Roundup (Number of plants/100) + 24 Only one concurrent request is supported per minute. If the access frequency exceeds the limit, the interface returns error code 407.

Example:

  • If a user manages 20 plants, the maximum number of API calls per day = Roundup (20/100) + 24 = 1 + 24 = 25.
  • If a user manages 120 plants, the maximum number of API calls per day = Roundup (120/100) + 24 = 2 + 24 = 26.

In essence this means that most people will have 1 plant = Roundup (1/100) + 24 = 1 + 24 = 25. So to be on the safe side the delta will need to change to 3600 instead of 600.

I will look into it. As there is also /thirdData/getStationRealKpi. But give me some time.

kzajac83 commented 1 year ago

Takie your time. In meantime ask if Huawei can increase updated rate and got answer:

For the moment is like this, but the RD team in the future work to make better this

tijsverkoyen commented 1 year ago

The total for the current year is only available in getKpiStationYear not in any other calls. The only solution is to retrieve the data less, and according to the traffic limiting, so roughly once per hour.

See #93 for more details. I will do a release later today.

tijsverkoyen commented 1 year ago

Release https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/releases/tag/v2.5.2 has been made.

kzajac83 commented 1 year ago

Seems is working, more than 1 day and no errors, thank you