The same functionality can be achieved with the two programs reconfigured this way:
14.2.3
Program: Motion Turn On
If
X10 'M1/On (3)' is Received
And Status 'Hall Light' is Off
Then
Set 'Hall Light' On
Else
- No Actions - (To add one, press 'Action')
14.2.4
Program: Motion Timer
If
X10 'M1/On (3)' is Received
Then
Wait 3 minutes
Set 'Hall Light' Off
Else
- No Actions - (To add one, press 'Action')
Each time motion is detected, both programs run. The first turns the light on, but only if it is
off. The second starts or restarts the timer. This example executes slightly faster than the
previous one, because in the previous example an additional program call is made, which
adds a slight latency, before the light is turned on. This delay is small (subjectively,
somewhere in the neighborhood of one-half to one second) but is nevertheless observable.
For motion sensing applications, obviously quicker is better.
Page | 401