[Release] Konke ZigBee Button Driver

I've put up a driver for Konke ZigBee 3.0 Button (based on a Xiaomi Button driver by @veeceeoh).

This button supports a push, double tab and hold (5 seconds). It also fires an event when pressing the reset button, which is exposed as button number 2 (can be used as a secret trigger).

I've been using this driver for over a month now with no issues.

The code: hubitat/konke-zigbee-button.groovy at master · muxa/hubitat · GitHub

Hello, and great that these devices are being integrated. Is there any chance you can integrate the temp/humidity sensor?

Thx

Yes, I have a temp/humidity sensor which is waiting to be unpacked, paired and a driver written for. Not sure when I'll have some spare time to do that though. I will post an update here when It's done.

2 Likes

Great, and thanks for your effort. Hope they are more reliable than the Xiaomi ones.

@alejoc I have released the driver for Konke Temp/Humidity sensor: [Release] Konke ZigBee Temperature Pressure Sensor

@muxa Great job with the driver!

I installed your driver and then paired the Konke button. Hubitat Elevation found your driver and set up the device using it with zero issues. Setup took seconds and was ridiculously easy. Everything works well right out of the box.

After using it, I had a couple suggestions. I hope you don't mind.

  1. The batteryLastReplaced send event at line 160 doesn't have .toLocaleString() like the other date/time events. This leaves the date/times formatted differently.

  2. The Hubitat built in driver for the Remotec ZRC-90 controller I have has a feature I find very useful and would like to see in your driver. It has a doubleTap command, a hold command and a push command (from the capability "Momentary"). Those commands fire the corresponding events in Hubitat Elevation just like they were pressed on the controller. This is useful when testing rules and I don't have the controller in hand. I think previous HE versions added those commands automatically as part of the PushableButton capability but that was dropped about the time Momentary was added.

Just suggestions. You can make them if you wish. I can also create a fork on GitHub, make the changes myself and send you a pull request when I'm done, again if you wish.

Thanks again for the work!
Greg

Thanks for suggestions, @captncode, these sound like good improvements.

That would be my preferred way, as I don't know when I'll get around to updating this driver myself (I'm busy with other drivers/apps that I'm building). I will happy accept code contributions :slight_smile:

1 Like

@muxa The changes have been made and committed. I have sent you a pull request to review and merge with the base branch, if you agree with them.

1 Like