Comments (4)
I tried it already, but I failed. I haven't had much time to test, but I couldn't make asyncio.Lock to "wait" to be ready.
But imagine:
- HC1, HC2, DHW1, DHW2 - every 30 secs in single call from HA. It takes about 30 secs to fetch all data. - let's call it
fetch1
- Sensor1: every 60 secs - fetching takes about 5 secs -
fetch2
- Sensor2: every 90 secs - fetching takes about 5 secs -
fetch3
If fetch1
is in progress and fetch2
wants to be in progress then it should wait till fetch1
finishes, but it abort instead.
if user change mode or do something then this call won't be blocked.
If I have one timer then at least I'm sure that there is maximum 2 simultaneous calls to gateway.
If I put more times then I can have multiple simultaneous calls and it might be worse than it is right now.
from home-assistant-bosch-custom-component.
Does something like this help at all?
I am not deep into HASS dev (barely touching the surface) as I just recently started.
from home-assistant-bosch-custom-component.
Maybe it's worth a try. I'll check it out
from home-assistant-bosch-custom-component.
Sorry, I don't know how to implement it in a way working with home assistant helpers. If you are willing to make PR, we can give it another shot.
from home-assistant-bosch-custom-component.
Related Issues (20)
- Cannot create a Bosch Debug Scan anymore HOT 6
- Detected that custom integration 'bosch' uses save_json from homeassistant.util.json module. HOT 1
- Error on TC100 - entities not updating HOT 7
- unknown error occurred HOT 3
- TLS issue on init after upgrade to Homeassistant 2024.2.0 HOT 53
- Add ETRV “start calibration” button to the home assistant integration HOT 9
- Total working time is wrong interpreted by HA HOT 2
- Unknown model HOT 9
- Integration wont load after update to HA 2024.2.2 HOT 1
- Integration not loading on startup: Can't find your fw version. HOT 4
- Device is unknown Null HOT 3
- Statistics for the 23rd hour are always missing HOT 8
- Can't install Bosch-Thermostat HOT 3
- Failed to call service bosch/send_custom_put_string. Service call requires responses but caller did not ask for responses
- CT200 Current Set Temp HOT 1
- Using slower stringprep, consider compiling the faster cython/libidn one HOT 1
- Unknown Model HOT 7
- HCM300 energy values to measurements HOT 4
- Bosch CT200 new Firmware v5.00.01 is incompatible HOT 4
- CT200: Integration stopped working after HA update 2024.9 or after update to firmware 05.00.01 HOT 14
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 home-assistant-bosch-custom-component.