Program #11 - Main Bath Door Status Closed – Not Enabled - Universal Devices ISY-994i User Manual

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

Advertisement

There is a third possibility, and that is to remember the door status just as we remember
the enable flag:
11.8.1.11Program #11 - Main Bath Door Status Closed – NOT Enabled
If
- No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
Set Program 'Main Bath Door Status Closed' To Run At Startup
Else
Set Program 'Main Bath Door Status Closed' To Not Run At Startup
Next, we need a program to set or clear the flag when the door closes or opens:
11.8.1.12Program #12 - Main Bath Door Status Change – Enabled
If
Control 'Main Bath Contact.1' is switched Off
And Control 'Main Bath Contact.1' is not switched On
Then
Run Program 'Main Bath Door Status Closed' (Then Path)
Else
Run Program 'Main Bath Door Status Closed' (Else Path)
The reason for two separate programs is because the flag program which we wish to
remember across reboots, should not have any conditions in the If clause to ensure that it
assumes the proper state after power up. Were we to place the above conditions in the flag
program, the flag would always be False (door open) after a reboot.
Page | 308

Advertisement

Table of Contents
loading

Table of Contents