Skip to content
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 #16

Closed
christiantschoerner opened this issue Aug 16, 2021 · 6 comments
Closed

Plugin slows down homebridge #16

christiantschoerner opened this issue Aug 16, 2021 · 6 comments

Comments

@christiantschoerner
Copy link

Homebridge gives me this error every few mintutes. My webserver responds really fast, I checked that already.

[16/08/2021, 15:24:37] [homebridge-http-curtain] This plugin slows down Homebridge. The read handler for the characteristic 'Current Position' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [16/08/2021, 15:24:37] [homebridge-http-curtain] This plugin slows down Homebridge. The read handler for the characteristic 'Target Position' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.

@QuickSander
Copy link
Owner

Hi,
This is mostly the server the plugin attempts to call is not responding. What is the target pos url you use? Do you mean you tried already to call that using wget?

@christiantschoerner
Copy link
Author

But the server is responding really fast, thats what i meant. https://puu.sh/I4wx3/3a5595437d.png ~92ms

@QuickSander
Copy link
Owner

QuickSander commented Aug 17, 2021

The url you test is a png. Try the real URL using wget. Maybe something is wrong in the URL. Please understand there is almost no special code in between making the request from HomeKit and making the HTTP request towards the server.

What is exactly your URL specified in the config for all requests?

Why is the URL you show not a local server? Also the https I have my doubts about.

@christiantschoerner
Copy link
Author

The url you test is a png. Try the real URL using wget. Maybe something is wrong in the URL. Please understand there is almost no special code in between making the request from HomeKit and making the HTTP request towards the server.

What is exactly your URL specified in the config for all requests?

Why is the URL you show not a local server? Also the https I have my doubts about.

It is not about the png. It is about the response time. Even if I give the plugin a localhost server to fetch just a file that outputs "100" I get the error that the plugin slows down homebridge even if the response time is < 1ms. It is not my server that is slow - I think it is your plugin. Thats my issue

@QuickSander
Copy link
Owner

I understand your frustrations, but please allow me to help you by specifying the config including the URL's. I do not have the experience namely the plugin is slow. If it is slow, almost the only possible reason is because the call from your homebridge instance towards the remote server is slow.

Please understand there is no magic on that code. It is just receiving the HomeKit request and making the http request.
Do you use https? Does it eventually respond? What is your config?

Again, it is working fine on my side. Significantly less than 1ms response times from a local ESP8266 WiFi curtain device.

@QuickSander
Copy link
Owner

No response for a while, closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants