Jump to content

Help with the program.


marcin

Recommended Posts

I trying to write a program to control my lights, and after unsuccessful attempts I decided to seek help from forum members.

 

            This is what I’m trying to accomplish if the light is “on” in the office, and motion sensor (located in the office) is normal then wait three minutes and run another program to double check that motion sensor is still  normal if its normal then wait three minutes and turn the light off, but if the motion sensor is “trouble” then leave the lights on. This is what I have so far any help would be greatly appreciated.

OFFICE - Check - [ID 0019][Parent 0018][Not Enabled]

If
        Status  'Office / 01 Office Main Light' is 100%
    And Elk Zone 'OFFICE MOTION SE' is Normal
 
Then
        Wait  3 minutes 
        Enable Program 'OFFICE - Light Off'
 
Else
   - No Actions - (To add one, press 'Action')
 

and here is the check program:

OFFICE - Light Off - [ID 001B][Parent 0018][Not Enabled]

If
        Elk Zone 'OFFICE MOTION SE' is Normal
 
Then
        Wait  1 minute 
        Set 'Office / 01 Office Main Light' 1 (Beep Duration)
        Wait  1 minute 
        Set 'Office / 01 Office Main Light' Off
        Set 'Office / 02 Office Desk Light' Off
 
Else
        Run Program 'OFFICE - Check' (If)
 

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...