@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.
-
The batteryLastReplaced send event at line 160 doesn't have .toLocaleString() like the other date/time events. This leaves the date/times formatted differently.
-
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