Let me begin this post by saying you should first check out my “Off as Toggle” app here:
If it suits your needs, “Off as Toggle” is superior in every possible way to “Better Double Tap” because it is 100% reliable. That said, there might be people that still want to try this, so here we go.
I found the built-in Double Tap app to be inadequate, it just didn’t work well for me. I did some debugging and found three problems:
The original developer hard-coded a 4 second window during which the taps must occur. That sounds generous, but, given cloud processing, it’s not. It’s almost impossible to get it to work.
Related to #1, fast double taps will flat-out not get sent to the cloud. If you double tap in the way you’d expect (< 1 second), only a single tap event will ever make it to the ST site. As a result, you are forced to wait between taps (for a solid 2 seconds, in my testing) which results in the 4 second window in #1 being totally inadequate
The default Zwave Dimmer device type suppresses redundant switch events, so it flat-out can’t work if you use that device type. You need to customize it by setting the variable “canBeCurrentState” to true in the device type. I will post my custom device type below.
So, how is “Better Double Tap” better? Well, all I did was add the ability for the user to select a “window” (in seconds) during which the presses will be registered to trigger your event. Due to cloud processing, this window should be BIG, I’d recommend 20 seconds or more. Unfortunately, I can’t do anything about the fact that you still need to wait between presses. So, make a big window like 20+ seconds, and then “double tap” by doing the following: Tap, count 2 Mississippi, Tap again – then it should work. It’s unwieldy and annoying IMO, especially if it doesn’t work because you accidentally pressed too fast, hence why I recommend using “Off as Toggle” instead. Nevertheless, I present to you, “Better Double Tap” (all credit to the ST developer, I hardly did anything to the code other than the custom window and a bunch of debugging/documentation)
And here’s the custom dimmer device type that will work with it: