Coder Social home page Coder Social logo

Comments (7)

tijsverkoyen avatar tijsverkoyen commented on June 16, 2024 1

@jvcsw thanks. This seems to be the same issue as reported in #89. I will close this issue, but you can follow in #89
I have a Pull Request ready that I will try to release later today.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 16, 2024

Can you enable debug mode?
With that you will see the data that Fusion Solar is returning. If the value is empty ('') or not present the sensor will be unavailable.

from homeassistant-fusionsolar.

jvcsw avatar jvcsw commented on June 16, 2024

Enabled.

This information appears in the home assistant registry section?

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 16, 2024

I think they should be available under Settings → System → Logs

from homeassistant-fusionsolar.

jvcsw avatar jvcsw commented on June 16, 2024

This is the only trace I see at the moment...

Unexpected error fetching FusionSolarOpenAPIStationYearKpi data: Access frequency to high. failCode: 407, message: ACCESS_FREQUENCY_IS_TOO_HIGH

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 16, 2024

Ok, wait until the unavailable sensor is available again and then check the logs when it is unavailable again.

from homeassistant-fusionsolar.

jvcsw avatar jvcsw commented on June 16, 2024

Hi again,

this is the only thing I see in the logs, the error is repeated constantly.

Logger: custom_components.fusion_solar.sensor
Source: custom_components/fusion_solar/fusion_solar/openapi/openapi_api.py:194
Integration: FusionSolar ([documentation](https://github.com/tijsverkoyen/HomeAssistant-FusionSolar), [issues](https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/issues))
First occurred: 15:25:19 (17 occurrences)
Last logged: 18:35:19
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 258, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 217, 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

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.