How To Make Timed Button Press Program - Universal Devices ISY-994i User Manual

Home automation
Hide thumbs Also See for ISY-994i:
Table of Contents

Advertisement

11.5.2

How to Make Timed Button Press Program

This will give you a starting point. Integer variable PressCount is required. Program
TimedPress counts the number of times KeypadLinc button B is pressed with less than 5
seconds between each button press. KeypadLinc button B is set for non-toggle On mode so
each press generates an On command. When button B pressed 3 times with less than 5
seconds between each press Program TimedPress3 is invoked. Scene TimedPressTooLong
has KeypadLinc button B as a Responder. If more than 5 seconds passes the Integer
variable PressCount is reset to 0 so count starts again and button B is turned Off.
11.5.2.1Program: TimedPress
If
Control 'KeypadLinc 8 Dim V40 / KeypadLinc 8 Dim V40 - B' is switched On
And $PressCount < 2
Then
$PressCount += 1
Wait 5 seconds
$PressCount = 0
Set Scene 'SceneTimedPressTooLong' Off
Else
$PressCount = 0
Run Program 'TimedPress3' (If)
38
(posted by: LeeG)
38
Page | 285

Advertisement

Table of Contents
loading

Related Products for Universal Devices ISY-994i

Table of Contents