Comments (5)
OK - I tracked this one down. It's rate-limiting on the hub. I've got a lot of bulbs (~40 on each hub). After returning the status for the first 16 bulbs, the hub kills the connection - which causes the error above.
IIRC you can return the state for all bulbs in a single call, and then iterate.... will look to changing that, and doing a PR.
from homebridge.
I have a PR in progress for this if you can wait a day. Nevermind my PR is for rate limiting the requests not the status updates. I might not have time today but I can work on that too if someone else doesn't beat me to it.
from homebridge.
IIRC you can return the state for all bulbs in a single call, and then iterate.... will look to changing that, and doing a PR.
I'd love to see how we can implement this in an Async world and one in which HomeKit asks individually. Wink also can fetch everything at once. In fact, the lib being used doesn't even use an individual endpoint, it just grabs everything and cherry picks the device, lol.
While API limits aren't an issue, it just feels gross.
I just wasn't sure about how to really mange this outside of just cacheing and ACCIDENTALLY returning from the cache because of latent requests, lol.
from homebridge.
I have a plan for grouping requests for changing scenes but it will take a while to do it right. For getting the state of all bulbs node-hue-api has a fullState()
call that is expensive but less expensive than getting the state of all 40 bulbs individually.
from homebridge.
Also for the rate limiting I am using the excellent bottleneck module if someone else is working an a PR for this.
from homebridge.
Related Issues (20)
- SmartHQ Plug-in Request (GE Profile Smart Appliances) HOT 1
- DYMO Labelwriter Homebridge Plugin HOT 2
- Can't update to Node.js from v20.9.0 to v20.11.1 HOT 6
- Automatically create iptables rules for UI and main/child bridges HOT 1
- Device falls out of sync with HomeKit - multiple plugins HOT 3
- PETLIBRO Support HOT 1
- Homebridge v1.8.0 fails to install because of unknown git error HOT 4
- Cannot install the hb-service on OSX with M2 chipset HOT 6
- Update to Homebridge 1.8.0 from 1.7.0 fails HOT 6
- Upgrade to 1.8.0 fails HOT 3
- v1.8.0 leads to error when starting homebridge in development environment HOT 7
- Can't get the latest homebridge on vm hyper-v according to guide with node.js update necessary and not working as instructed and more HOT 2
- Homebridge rebooting every 15 minutes approximately - SIGTERM HOT 2
- GLIBC_2.29' not found HOT 2
- Getting target temperatures (setpoints) in Fahrenheit? HOT 3
- Installing Homebridge Mac OS
- Homebridge hangs and stops responding to HomeKit inputs HOT 3
- How to schedule a child bridge restart - raspberry pi - config UI
- Homebridge Process Ended. Code: 1, Signal: null HOT 1
- Multiple HomeBridge instance (in multiple location) issue HOT 2
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 homebridge.