FlyingDiver / Indigo-radiora2

Indigo plugin for Lutron control systems. Works with Radio Ra 2, Radio Ra Select, Homeworks QS, and Caséta
MIT License
6 stars 3 forks source link

Trigger on button double-click #18

Closed FlyingDiver closed 6 years ago

FlyingDiver commented 6 years ago

Just that.

FlyingDiver commented 6 years ago

Detecting the double-click is easy, as is having distinct triggers for it.

The hard part is NOT triggering single-click triggers.

rapamatic commented 6 years ago

The way I setup my double clicks, they tend to be an additional action to take sequentially with the single click. So, for example, one click on the off button by our master door turns off the room, a double click also turns off the master bath, and a triple click turns off the whole second floor. I think it’s best practice to have a single click scene programmed in RR2 so that if Indigo fails the button still works.....

So in my examples, and the way I do double and triple clicks, I expect the single click action to occur before the double click. If you try to detect a double click independently, then you are probably going to introduce a noticable lag in responding to single clicks or have to really play around with your timeouts... I guess you could expose a few timeout variables to be configured for each button, but’s that’s adding a lot of complexity to the trigger...

I wonder how Homeworka handles double clicks? Is it a separate action that occurs without the single click action firing?

FlyingDiver commented 6 years ago

Available in Beta 12, per Rapamatic's usage scenario.