New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACCESS_FREQUENCY_IS_TOO_HIGH still not fixed #29
Comments
Hm. Weird. Are there other integrations that use the same credentials? |
nope |
I also have one with "Kiosk mode".. so it should not cause OpenAPI issues |
Are you willing to share your OpenAPI credentials? If so: mail them to |
send an email |
Idd, please stop/disable the integration. I will try to debug it next week if I find the time |
It's stopped |
let me know when You have some more information |
I won't have time this week, sorry. |
where would I set that? |
updated |
that did not help with |
are you 100% sure you have version 2.2.0 installed? |
Hi tijsverkoyen, and found new warnings below |
@mkosmida2 As I see it correctly you have a dongle and a string inverter in your setup, correct? Only the string inverter (device type ID: 1) calls the endpoint The 2.2.0 version has code in it to loop over the different device types and only does the call every minute (interval) per type. This to prevent reaching the rate limiting. So in essence something like:
But you only have a string inverter (type 1), so every minute the data is requested. As there are no other types. As you said you have altered the code to use an interval of 5 minutes. I don't see any reason why the rate limit can be reached. I think you should contact the Fusion Solar support team and ask them if there is any other rate limiting applied to your station or what could be the issue. |
@benztanji And the entities are never updated? |
I have 2 strings and 1 meters. First, a meter shows up values while 2 strings show unknown values. A minute later, the values of meter change to unknown but the values of 2 strings show up instead. So for, each of them update every two minutes which contains a minute of unknown and another minute of updated values. Error 407 still occur in system log, which might be the API limits number of fetch only one type of device per minute |
I have created a new release with a fix. See https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/releases/tag/v2.3.0 |
Still getting ACCESS_FREQUENCY_TOO_HIGH error despite being on version 2.3.1 |
@Karakth are the entities unknown or unavailable? |
Showing as Unknown, both for battery and for power sensor. The plant entities though like total daily energy are updating without issues. |
Weird, because there is a system in place that rotates over the different type of devices. |
@Karakth I suspect your name is Chris? You have 4 devices linked to your plant (5 devices in Home Assistant):
The code does a call per device type, in this case 4 calls. But only for the string inverter the data is returned. For the other devices no data is returned. I think it would be best if you contact eu_inverter_support@huawei.com and ask them why the following call does not return any data curl --location --request POST 'https://eu5.fusionsolar.huawei.com/thirdData/getDevRealKpi' \
--header 'XSRF-TOKEN: x-REDACTED \
--header 'Content-Type: application/json' \
--data-raw '{
"devIds": "1000000035146267",
"devTypeId": "39"
}' For the string inverter it returns data, but not for the dongle, power sensor nor the battery. |
Logger: custom_components.fusion_solar.device_real_kpi_coordinator
Source: helpers/update_coordinator.py:168
Integration: FusionSolar (documentation, issues)
First occurred: 21 grudnia 2022 11:52:41 (149 occurrences)
Last logged: 10:59:46
Error fetching FusionSolarOpenAPIDeviceRealKpiType data: Error fetching data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH
while I can see the Skipped call due to rate limiting in action my entities are still becoming unavailable...
Unexpected error fetching FusionSolarOpenAPIStationYearKpi data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH
The text was updated successfully, but these errors were encountered: