-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin slows down homebridge if destination is unreachable #84
Comments
I'm not sure that other plugins gracefully handle this situation. PRs are welcome to specifically handle network connection issues. For the moment, you can disable retries by setting maxAttempts to 1 or just disable this blind until you have your network issues fixed. |
You can also try setting the timeout parameter to something shorter, or tuning other settings for the "up_url": {
"url": "http://1.2.3.4/window/up?pos=%%POS%%",
"body": "{}",
"headers": {
"API-Token": "aaabbbcccddd"
},
"method": "PUT",
"maxAttempts": 5,
"timeout": 1000,
"retryDelay": 2000,
"time": true
}, |
It isn't a major problem for me, I just removed the accessory for the time being. Just wanted to notify you. Feel free to close it if fixing it would take too much time. |
What you describe is a general problem with HTTP connections where the network request times out, and I'm not sure other plugins handle this situation gracefully either. For example, the popular homebridge-http-switch which relies on homebridge-http-base appears like it would have the same problem, but I haven't tested it personally. One option of course would be to internally disable the plugin for some amount of time if this error occurred, but I can see cases where people may not find that desirable. Can you try the |
I tried the |
Issue Summary:
A blinds control unit in my setup is temporarily malfunctioning and has become unreachable. This issue is causing a significant slowdown in the entire Homebridge system, rather than just triggering periodic warnings.
Detailed Description:
- Current Behavior: When one of the blinds control units fails, instead of generating a warning at regular intervals, it is noticeably slowing down the entire Homebridge system.
- Expected Behavior: The system should handle the unreachable unit by issuing warnings without impacting overall performance.
- Workaround Mentioned: While using child bridges is a suggested workaround, it should not be a necessary step for handling such issues.
Attached Logs:
Below are the logs from the malfunctioning blinds control unit for further diagnosis.
The text was updated successfully, but these errors were encountered: