Page | 304
Notice also that when the flag is made True (the Then is executed), the flag program sets
itself to run at startup, and when the flag is made False (the Else is executed), the program
sets itself to not run at startup. This is the other time (mentioned in the previous
paragraph) when a program may run even though the Enabled box is not checked.
When ISY reboots, each program which is not set to run at startup has its status set to
False. Programs set to run at startup will evaluate the If conditions and run either the Then
path or the Else path (thus making the program's status either True for False respectively)
depending on whether the conditions evaluate to True or False. When a program which has
no conditions is run at startup, the Then path is executed.
As a result, when the Main Bath Motion Timer Enable program is set to True, it configures
itself to run at startup so that after an ISY reboot (for example after a power failure) it will
once again have a True status. Likewise, when the program is set to False it configures itself
to not run at startup and therefore will again have a False status after reboot. The effect is
that ISY remembers the state of this program even across reboots.
With this code in place, the motion sensor control may be enabled and disabled by any
desired action or schedule. For example, turning the Main Bath Lights switch Fast On to
disable sensor control, and Fast Off to reactivate control:
11.8.1.8Program #8 - Main Bath Motion Timer Enable/Disable
–
Enabled
If
Control 'Main Bath Lights' is switched Fast On
And Control 'Main Bath Lights' is not switched Fast Off
Then
Run Program 'Main Bath Motion Timer Enable' (Else Path)
Else
Run Program 'Main Bath Motion Timer Enable' (Then Path)
Notice that if the timer is currently counting down to shutoff (program 6) when the Main
Bath Motion Timer Enable flag is set to False, the countdown will be halted.
Now we approach the question of how long the timer should be set for. In light of the
concern mentioned at the beginning of this article, the timeout must not be made too short.
On the other hand, making the timeout longer than necessary results in wasted electricity
and reduced effectiveness and convenience.
Summary of Contents for ISY-994i Series
Page 1: ...The ISY 994i Home Automation Cookbook ...
Page 35: ...Page 12 Figure 6 UDAjax Main Screen ...
Page 36: ...Page 13 Figure 7 UDAjax Devices Scenes Screen ...
Page 68: ...Page 45 Figure 44 NodeServer Configuration popup 5 2 5 Tools Menu Figure 45 Tools Menu ...
Page 102: ...Page 79 6 6 3 2Activate My OpenADR Portlet Figure 77 OpenADR My OpenADR Menu Option ...
Page 103: ...Page 80 6 6 3 3Configure OpenADR Settings Figure 78 OpenADR Settings Menu Option ...
Page 104: ...Page 81 Figure 79 OpenADR Settings Display ...
Page 108: ...Page 85 6 6 3 7Issue an Event Figure 84 OpenADR Issue and Event ...
Page 110: ...Page 87 Figure 86 OpenADR Event Viewer ...
Page 116: ...Page 93 Figure 92 ElkRP2 Account Details M1XEP Setup Button In the M1XEP Setup Window ...
Page 267: ...Page 244 Figure 189 State Variables ...
Page 268: ...Page 245 Figure 190 Programs and Folders ...
Page 292: ...Page 269 Figure 192 Irrigation Folders Figure 193 Irrigation Devices ...
Page 376: ...Page 353 Figure 209 Save Topology File ...
Page 433: ...Page 410 Figure 242 X 10 recognized as Living Room East Device ...
Page 540: ...Page 517 Figure 357 In Car Detection 12 Figure 358 In Car Detection 13 ...
Page 602: ...Page 579 Figure 382 SecureCRT SSH Raspberry PI Session ...
Page 685: ......