I got an Onvis HS2 (5-Key Switch), and integrated it into HA through the HomeKit Device integration. So far, so good, and it does work, producing events upon button press.
However, the event_type is always"long_press", no matter how I press the button; I cannot get a short or double press whatsoever out of the thing. Though I found a few threads of people talking about the HS2, I didn’t find anyone talking about this, so I’m wondering if anyone knows whether this is some limitation of HA / Thread-based devices, or whether I am just doing something wrong?
The firmware on the device is 1.9.1, which appears to be the latest one.
I can’t comment on the device at all, but does the short press logic work in Apple Home? If it works there but not in the Homekit integration in Home Assistant, then it would be interesting to analyse it more in detail in HA, maybe by setting the logging level for the homekit integration to debug in configuration.yaml:
It at least appears that the device in general works in HomeKit, plenty of people reporting so. I haven’t tried it in HomeKit first, but it took me a few tries to get it to pair with HA, so I’m not crazy about repairing it to HomeKit if I can help it. I can definitely give the debug logs a shot though, thanks for the pointer!
I reset the device today and paired it with HomeKit again. There everything is working correctly.
Since then, as feared, I’ve been unable to pair it to HA again, and I tried a few dozen times now. I’ll give it another shot tomorrow but failing that I might go a workaround route of creating button helpers for each button/action combination and triggering them from the Onvis button through HomeKit.
@Airblader How did you get the switch connected back to HA? Can’t seem to get them together. Had the integration but then it said the switch was already connected to a home. Which it wasn’t. Any help is appreciated.