-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Double Trigger when using Hue Wall Switch #1148
Comments
If you run Homebridge in DEBUG mode, you should see a debug message for each notification that Homebridge Hue receives from deCONZ. If the issued button actions match the notifications, Homebridge Hue is working fine. Otherwise, please capture and attach the debug log file. If deCONZ sends too many notifications, I would check:
|
DEBUG Mode is enabled now and below are the logs after the test:
The Rocker 2 gets invoked the second time after 1 second (09:56:05 / 09:56:06) Just let me know if you need more data on the logs or if I can do anything else. About your questions:
I tested two different physical switches, also the wiring.
Battery status by 60% according to app.
If I configure "use in 3rd Pary Apps" I can change anything like that. Only if I use HUE app. I am not using HUE-App for the Wall Switched. I evaluate the events with Home Bridge and do then HomeKit automation. So, there is no possibility to change. If you change from HUE-App control to HomeKit / or 3rd Party, it resets all those settings. Not sure how it deals with it internally. Anything here to check more in detail? |
Homebridge Hue is polling the Hue bridge while you're pressing the button. It seems that the Hue bridge has updated the Note that the "sensor buttonevent" message incorrectly lists the Using the v2 API event stream with polling over the v1 API is kind of a hack; I plan to be using the v2 API in full for Homebridge Hue2. Even then, the event stream kinda sucks, in that it sandbags events and only issues messages once a second. It looks like the v1 API actually reports Could you try beta v0.13.57-0 and capture another debug log? Would love to see another button press while Homebridge Hue is polling. The beta should log the correct |
@ebaauw, where to find the Beta? Can you point me to the location, please? |
https://www.npmjs.com/package/homebridge-hue/v/0.13.57-1 Install through Install Alternate Version in Homebridge UI or by |
Please find below the logs with 0.13.57-1 (Beta) PlugIn Release:
Please let me know if something else is needed. |
That's not the log from the beta version. Did you restart the child bridge after installing the beta? What version does Homebridge Hue report? You should see something like:
|
OK, sorry. My fault. Forgot to kick the Child-Bridge. But now please find below the correct log:
|
Hm, that still looks like two single-press button actions for the same button event. Note that the v1 API reports I'm afraid the only thing I can do in Homebridge Hue is to ignore the state as reported by the v1 API while Homebridge Hue is connected to the event stream. Could you try beta v0.13.57-2? |
Can't we make it configurable, just for specific devices (ex. Wall Switch)? |
First results were without any Problem. No double trigger. Looks good. TEST 1:
TEST 2:
TEST 3:
Great stuff. So wonderful. What is next @ebaauw ? How do we want to tackle this issue? |
Not sure you’ve yet recreated the conditions where a double press would occur. There should be a debug message that the button press was suppressed because the event stream is active. If this workaround works, I’ll include it in the next published release, |
Something weird, my lights are again flapping:
|
My bad, could you try beta v0.13.57-3? I'm sorry, I don't have a Hue bridge ready to test myself. |
Now it seems to work for the part where we have the double trigger. But if that not happens (rarely happening) the lights stay off. Really strange. I will try to find some Logic what happens. Really weird. I keep you posted. |
@ebaauw Did another restart of the whole HomeBridge. Seems that all is OK now. Let me have another few test cases over the course of the day to validate. |
Have done several validation test. Seems that all works fine. So except the hickup I had even after the patch, which was somehow related to homebridge who got in a strange state. After a restart all is fine since yesterday night. So please go ahead an merge the change in the new release. Thanks a lot for the patch and your support. Issue can be closed! PS: Anything we should give to signify on this regards? I have a contact there to adress things? |
Good luck with that. I've been on their developer forum since Oct 2014, but they've been ignoring developers for years. I suppose they no longer need them, now they're big enough. |
In v0.13.57. |
Have seen a strange behaviour, that in case I press one of the Buttons which are connected to a hue Wall Switch, i see twice the status change in the logs which toggle also every automation configured in homekit.
Homebridge.log
As you can see in the logs, the switch looks like it has been pushed twice, even though I did it just one time.
This is causing a flapping in my automations with Special conditions.
The question is now, why does the clock gets reported two times?
I tested all of this independent in the view app without any homebridge or third party integration, and all works fine.
There is probably a race condition happening, as there are also times when it works.
Any hints or anything I can help with in the sense of lots of debugging?
Thanks a lot.
Kind regards
Maik Brauer
The text was updated successfully, but these errors were encountered: