-
Notifications
You must be signed in to change notification settings - Fork 6
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
Button press with ~6 sec delay #13
Comments
Thanks for the bug report. This one might be tricky to debug, but let's see what we can do to find out what happens. I've had lags even when an IP (v4) was set so it might also be the dingz that needs just a bit more time or is busy replying to poll requests (:octocat: 😄 🙈 ). First, can you provide the output from When it starts, the plugin also informs you about the callback URL it is setting. It should be the same as the one you will see in the [6/2/2020, 1:43:30 PM] [Dingz SmartHome Device] Callback server listening for POST requests on 18081... use post://10.x.y.42:18081/button as URL for your dingz or MyStrom callbacks |
In order to test your setup, you could also try the following in your terminal (Mac/Linux): time curl -X POST -d "index=4&action=3&Mac=<MACOFYOURDINGZ>" http://192.168.227.10:18081/button This should trigger button number 4 with a long press and the output from the command will give you an idea how long that request took. On my setup (Vanilla Docker on Linux, Dual-Stack Docker, but only IPv4 network otherwise) I get a response time of below 1s (typically a few ms) and I see the action appear immediately (<1 s) in the log and in the Home.app. Let me know what you get in your setup: If there are any significant delays when using |
Thank you for the pointers. I have identified some problems on my setup which need to be resolved first before I debug this further (maybe even related or source of the problem):
As soon as I have solved these issues I'll retest and report if the issue persists |
Thank you, this will further help to pin down the issue |
Depending on how Docker is set-up, this scenario might be one reason to manually set the hostname in the plugin config (of your Synology in that case) or alternatively, to set the Synology's IPv4 address directly in the plugin config. There's no really easy way for the plugin to figure out the correct external IP in a local network so it's better to manually set this if you run into trouble. Happy debugging, wish you good luck! |
Success! After deactivating mDNS-reflector on the router and resetting dingz to factory (to clear everything from http://[dingz-IP]/api/v1/action), the HomeKit-Buttons work correctly and without delay. Do you know of a way to 'clear' manually http://[dingz-IP]/api/v1/action if something is messed up? Resetting the whole device is quite time consuming (Controlling the native dimmers, Hue, myStrom, Sonos and HomeKit on one device 🤪) Furhermore I've noticed your plugin sets following under PIR even when the dingz has no PIR installed. Doesn't impact any functionality but I wanted to report it.
|
😄 great to hear you got it working and good catch w/ the PIR. I have to see how I handle this -- the code is quite "simple" right now and sets the necessary endpoints. You can reset the actions quite easily in fact, see the wiki for details. In essence, you $ curl -X POST http://your-dingz/api/v1/action
$ curl -X POST http://your-dingz/api/v1/action/pir/single |
Describe the bug
Configuring a dingz button in Home.app works as expected but with a big delay (~6 sec).
Looking at the log I suspect a IPv6 vs. IPv4 problem. Could it be that it first tries to use IPv6, time out (fail) and then try IPv4?
This seems to be unrelated to the callback URL, as button presses are also triggered correctly (with 6sec lag) to Home.app even without working callback URL.
To Reproduce
Steps to reproduce the behavior:
Configure Docker host as IPv6/IPv4-Dual-Stack, check how long it takes for button presses to register in Home.app
Expected behavior
Very low latency for button actions
Plugin environment (please complete the following information):
Screenshots
Additional context
My IPv6 understanding isn't very deep, could be a wrong config as well on my network
The text was updated successfully, but these errors were encountered: