Workflow for triple click action

Hi guys,

Is it possible to create a workflow that runs an action or scene when a switch is triple clicked? Just like you can do with PLEG. I would like to move this functionality to OpenLuup.

If that’s possible, can you show me how?

Thanks!

Nobody got an idea?

If the button is clicked 3/4 times within 5 seconds, I want it to run a scene. I’m new to the workflows so I’m not able to figure it out just yet.

This could be very useful or others too, I think.

[quote=“RHCPNG, post:2, topic:198308”]Nobody got an idea?

If the button is clicked 3/4 times within 5 seconds, I want it to run a scene. I’m new to the workflows so I’m not able to figure it out just yet.

This could be very useful or others too, I think.[/quote]

it depends what button device you use and if it natively reports double triple clicks or not in its event reporting or variables.
a default way that comes in mind is to use bag variables to count the number of clicks with a wait state and a clicked state which increase the bag variable by one and , from that second state when the limit is reach transition to 3rd state ( tripple click state ) for instance

[quote=“amg0, post:3, topic:198308”][quote=“RHCPNG, post:2, topic:198308”]Nobody got an idea?

If the button is clicked 3/4 times within 5 seconds, I want it to run a scene. I’m new to the workflows so I’m not able to figure it out just yet.

This could be very useful or others too, I think.[/quote]

it depends what button device you use and if it natively reports double triple clicks or not in its event reporting or variables.
a default way that comes in mind is to use bag variables to count the number of clicks with a wait state and a clicked state which increase the bag variable by one and , from that second state when the limit is reach transition to 3rd state ( tripple click state ) for instance[/quote]

Thanks, Amg0! In this case it’s a fibaro dimmer. And yes it’s reports double click, but not triple click on button 1.

In your example, how can I add that it has to be within 5 seconds? Because else it would be not very usable.

Is it even possible to do this with a workflow, amg0? Within the 5 sec I mean.

Try this guide [url=http://www.vesternet.com/resources/application-notes/apnt-126]http://www.vesternet.com/resources/application-notes/apnt-126[/url].
I tried both approaches and the one without PLEG worked better in my case.

[quote=“Almighty, post:6, topic:198308”]Try this guide [url=http://www.vesternet.com/resources/application-notes/apnt-126]http://www.vesternet.com/resources/application-notes/apnt-126[/url].
I tried both approaches and the one without PLEG worked better in my case.[/quote]

Thanks for the link, looks promising! I’m going to try it out.

workflow would work the same since you could have different transactions testing a change on LastSceneTime and in the second condition line the value for LastSceneID that you want . then it sends you to the a trippleclick state for instance where you trigger the action you want

[quote=“Almighty, post:6, topic:198308”]Try this guide [url=http://www.vesternet.com/resources/application-notes/apnt-126]http://www.vesternet.com/resources/application-notes/apnt-126[/url].
I tried both approaches and the one without PLEG worked better in my case.[/quote]

This worked like a charm! It?s even simpler with AltUI, because you can use a watch on LastSceneID instead of using the lua startup code.

Ok, I’m back. I’m very happy with the triple click of the dimmer module, but I very much would like the same functionality with a relay switch. I know that module does not have the scene functionality, but I think it should be possible nevertheless.

Any expert having any bright ideas, besides PLEG?

I think, that Fibaro Single/Double Switch 2 has the ability to control scenes. I’m replacing one of my older “not 2” double switches to make it work, however I had to send it back under warranty so I was not able to test it yet.

Ok, good to know. Thnx! It seems that I need to buy a new version too then, to make it work.

I had some free time during the weekend so I can confirm, that FGS-223 supports scene control in similar way as the fibaro dimmer 2 (except the variables are named sl_CentralScene and sl_CentralSceneAttr). I was able to configure scenes for double and triple click on each button and it works fine.

Thanks, that’s very good to know!