Git Product home page Git Product logo

Comments (11)

zaphood1967 avatar zaphood1967 commented on August 24, 2024

Sorry for the extra issue, seems this is exactly the same as the other issue in the list. Only difference is, that I haven't experienced this before today

from ha-oilfox.

chises avatar chises commented on August 24, 2024

No Problem.
I will check the code on the weekend. Are you able to fix it by increasing the timeout value in the options flow?

from ha-oilfox.

derolli1976 avatar derolli1976 commented on August 24, 2024

Same problem here. Setting the timeout to "60" and reloading the integration seems to have solved the issue at least for me.

from ha-oilfox.

matheimann avatar matheimann commented on August 24, 2024

i can confirm.
Setting the timeout to "60" and reloading solved the issue foe me too.

from ha-oilfox.

martale76 avatar martale76 commented on August 24, 2024

Unfortunately, setting the TimeOut to 60 seconds only helps sometimes. It works and then sometimes it doesn't.

from ha-oilfox.

Sebartoo avatar Sebartoo commented on August 24, 2024

For me, the integration doesn't initialize, even when I change the timeout.

from ha-oilfox.

zaphood1967 avatar zaphood1967 commented on August 24, 2024

Same here, but 120s works for me

from ha-oilfox.

martale76 avatar martale76 commented on August 24, 2024

Back to 0.1.16 and it works perfect!

from ha-oilfox.

zaphood1967 avatar zaphood1967 commented on August 24, 2024

Seems the 120s timeout does work sometimes, but only for so long. Today I figured, that rebooting HA several times restores connectivity at some point. Reloading the integration on the other hand does not fix the issue.

from ha-oilfox.

ChristophCaina avatar ChristophCaina commented on August 24, 2024

I can confirm the behave.
While having a timeout of 30 seconds, the integration could initialize, but run into a timeouts with fetching the sensor data...

Updating the timneout to 120 seconds, the integration failed to initialize two times in a row... the third time, it could initialize - and the sensors came back with reporting values.

But after refreshing the dashboard, they just became unavailable again.

This error originated from a custom integration.

Logger: custom_components.oilfox.UpdateCoordinator
Source: helpers/update_coordinator.py:313
Integration: OilFox (documentation, issues)
First occurred: 10:15:13 AM (4 occurrences)
Last logged: 10:18:26 AM

Unexpected error fetching oilfox data: ConfigEntryNotReady('Update values failed because of http timeout (waited for 30 s)!')
Traceback (most recent call last):
  File "/config/custom_components/oilfox/OilFox.py", line 77, in update_stats
    async with session.get(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1194, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 605, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 961, in start
    with self._timer:
  File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/oilfox/UpdateCoordinator.py", line 39, in _async_update_data
    await self.oilfox_api.update_stats()
  File "/config/custom_components/oilfox/OilFox.py", line 83, in update_stats
    raise ConfigEntryNotReady(  # noqa: TRY200
homeassistant.exceptions.ConfigEntryNotReady: Update values failed because of http timeout (waited for 30 s)!

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/oilfox/UpdateCoordinator.py", line 41, in _async_update_data
    raise ConfigEntryNotReady(repr(err)) from err
homeassistant.exceptions.ConfigEntryNotReady: ConfigEntryNotReady('Update values failed because of http timeout (waited for 30 s)!')

In addition to that:
After reloading the integration, and increasing the timeout to 240 the values came back, but only some of them.
all calculated entities where still unavailable - and just after a short period of time, the other sensors failed again.

from ha-oilfox.

chises avatar chises commented on August 24, 2024

Update here: #42 (comment)

I hope that everbody can fix the timeout values with these indiviual settings and we can find a good value to start with.

from ha-oilfox.

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.