rana Posted May 13, 2013 Posted May 13, 2013 i wanted to know if there is anyways to run a program by triple tap the SwitchLinc Dimmer switch
jmed999 Posted May 13, 2013 Posted May 13, 2013 i wanted to know if there is anyways to run a program by triple tap the SwitchLinc Dimmer switch I think this would be possible using variables. Ie. Create a state variable that numerically increases by 1 with every tap. Then have a program run when the variable =3. You could then have the variable = 0 ten seconds after the switch is tapped. This would give you 10 seconds to make the 3 taps.
rana Posted May 13, 2013 Author Posted May 13, 2013 now that does make sense but how to a wright a program for the variable to change after 3 tap
jmed999 Posted May 13, 2013 Posted May 13, 2013 if: s.variable.name = or >3 Then: whatever you want it to do
LeeG Posted May 13, 2013 Posted May 13, 2013 Take a look at this old topic. It has Program examples viewtopic.php?f=26&t=9132&hilit=count+variable
rana Posted May 13, 2013 Author Posted May 13, 2013 thank you and this is what worked for me If Control 'Hallway1' is switched On Or Control 'Hallway1' is switched Off Or Control 'Front Door' is switched On Or Control 'Front Door' is switched Off Then $Away += 1 Wait 5 seconds $Away = 0 Else - No Actions - (To add one, press 'Action')
Recommended Posts