Comments (11)
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.
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.
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.
i can confirm.
Setting the timeout to "60" and reloading solved the issue foe me too.
from ha-oilfox.
Unfortunately, setting the TimeOut to 60 seconds only helps sometimes. It works and then sometimes it doesn't.
from ha-oilfox.
For me, the integration doesn't initialize, even when I change the timeout.
from ha-oilfox.
Same here, but 120s works for me
from ha-oilfox.
Back to 0.1.16 and it works perfect!
from ha-oilfox.
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.
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.
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)
- New HomeAssistant device class die Volume storage HOT 1
- Timeout data HOT 5
- After update today 0.1.11 it wont work again HOT 16
- fuel_used -> statistics about your oil usage ... template or within the integration? HOT 10
- Always getting Status unavailable HOT 48
- deprication warning with HA 2024.1.0b0 HOT 2
- Fix incorrect sensor values for usageCounterQuantity ? HOT 5
- broken after update HA to 2024.1.6 HOT 4
- After update to HA 2024.1.6 Intgeration does not initialize HOT 1
- No Connection HOT 8
- integration failed, timeout parameter, since update 2024-01-03
- after Update to v1.1.0 integration doesnt work HOT 11
- Error with timeout parameter HOT 6
- Home Assistant 2024.4.3 error HOT 5
- 2024.4.3 broke my connection HOT 3
- Requirements for oilfox not found: ['aiohttp==3.9.3']. HOT 1
- Oilfox broke with Update to HA 2024.7.0 HOT 13
- [Feature] - Add a binary sensor for "Problem" HOT 7
- KeyError: 'No Error' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-oilfox.