scene/trigger button multiple push

Posted on
Thu Aug 24, 2017 3:38 am
koburg offline
Posts: 167
Joined: Jul 27, 2017

scene/trigger button multiple push

Im not sure where to put this question so here I do it since im new :D

IF I have a scene/trigger button I use to fire a trigger if I push it.

is there a way to setup so that I can count the push like.

1 x push trigger 1
2 x push trigger 2
3 x push trigger 3
etc.

I guess I need some variables ?
And need to "reset" the state every time ?

Posted on
Thu Aug 24, 2017 6:02 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: scene/trigger button multiple push

I've never tried it to see if Indigo can respond fast enough to get away with it, but the mechanisms are all in place to do it.

Create a variable called something like ButtonCounter initialized to 0

Create a trigger which increments that variable every time you push the button.

Create a Trigger for your first action when the variable becomes equal to 1, delaying the action you want by 1 second and a second action which sets the ariable to 0 delayed by 2 seconds,

Create a Trigger for your second action when the variable becomes equal to 2 which immediately deletes the delayed actions of the trigger for the first action, then does your second action delayed by 1 second and resets the variable to 0 delayed by 2 seconds... and duplicate this trigger for variable equals 3, 4, etc for as many pushes as you think you can remember.

Posted on
Thu Aug 24, 2017 8:37 am
koburg offline
Posts: 167
Joined: Jul 27, 2017

Re: scene/trigger button multiple push

Thanks It is working pretty well and Fast :lol:

Posted on
Thu Aug 24, 2017 1:23 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: scene/trigger button multiple push

What button is it you're using?

The scene trigger types mostly support multiple pushes natively without fiddling about.


Sent from my iPhone using Tapatalk Pro

Posted on
Thu Aug 24, 2017 2:03 pm
koburg offline
Posts: 167
Joined: Jul 27, 2017

Re: scene/trigger button multiple push

it is a extra input on a qubino module

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

cron