Coder Social home page Coder Social logo

Comments (6)

tijsverkoyen avatar tijsverkoyen commented on May 27, 2024 1

@catalinbordan thx for the insight.
@zeputt the ACCESS_FREQUENCY_IS_TOO_HIGH is not related to the entities. The call updates multiple entities if it receives data. The call is per device type, so the call also handles multiple devices at once.

I have created a Pull Request that takes the disabled devices into account. This will not request the information for the disabled devices.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 27, 2024

I don't get it. In Home Assistant you can decide which entities to show in a dashboard.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 27, 2024

@zeputt I assume you have added the full widget to your dashboard? If so: you can edit the dashboard and remove the items you don't want to see.

Feel free to reopen the issue if you think this is a problem within the integration. But at this point the integration just exposes the data that is coming from the Huawei Fusion Solar API.

from homeassistant-fusionsolar.

zeputt avatar zeputt commented on May 27, 2024

@tijsverkoyen Sorry for not coming back sooner ;)
I know that you can select what to show and I only use the datapoints that makes sense in Node-Red and don't really use them in the UI.

My thought was if it's useful to be able to supress the datapoints that's not useful to you in order to mitigate this:

This error originated from a custom integration.

Logger: custom_components.fusion_solar.sensor
Source: custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py:158
Integration: Fusion Solar (documentation, issues)
First occurred: February 7, 2023 at 14:29:36 (89 occurrences)
Last logged: 08:41:50

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 239, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 195, 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 92, in get_kpi_station_year
response = self._do_call(url, json)
File "/config/custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py", line 158, 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

I'm aware that it's depending on the way that the call is written but this was the reason way I raised the issue :)

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 27, 2024

Hmm, would be a good idea.
But I don't see a good way to implement this in the interface. Maybe something in the config flow that grabs all devices and let you select which ones to include. Will need to think about this. For probably not something that will be included very soon.

from homeassistant-fusionsolar.

catalinbordan avatar catalinbordan commented on May 27, 2024

Hi,
Could be a solution to disable the sensors from HA? Maybe would not be pulled by integration?
image

from homeassistant-fusionsolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.