Jump to content

Help With program


dbuss

Recommended Posts

Posted
I have a program to turn on some indoor lights if motion is sensed by my outdoor motion sensors. The program seems to run all the time rather than just 11:00 PM to Sunrise. What have I done incorrectly?

 

Thanks!!

 

 

Indoor Security Lights - [iD 0051][Parent 0001]

 

If

        From    11:00:00PM

        To      Sunrise (next day)

    And Status  '1 car Garage MS-Sensor' is On

     Or Status  '2 Car Garage MS-Sensor' is On

     Or Status  'Lower Deck MS-Sensor' is On

 

Then

        Run Program 'Indoor Security Lights 2' (Then Path)

 

Else

   - No Actions - (To add one, press 'Action')

 

 

Here's the Indoor Security Lights 2 program.

 


Indoor Security Lights 2 - [iD 004E][Parent 0001]

 

If

   - No Conditions - (To add one, press 'Schedule' or 'Condition')

 

Then

        Set 'Living Room Floor Lamp ZW' On

        In Scene 'Kitchen Lights' Set 'Kichen Light Switch 1' 100% (On Level)

        Set 'Living Room Table Lamp' On

        Wait  10 minutes 

        Set 'Living Room Table Lamp' Off

        Set 'Living Room Floor Lamp ZW' Off

        In Scene 'Kitchen Lights' Set 'Kichen Light Switch 1' 0% (On Level)

 

Else

   - No Actions - (To add one, press 'Action')

 

 


 

 

Posted

Are you using parentheses in the IF statement? Seems like you would want parentheses around the motion statements. Find them on the Right hand side of admin console when editing program if memory serves

 

 

Sent from my iPhone using Tapatalk

Posted
Without the parentheses, as TrojanHorse suggested, the program will run during the indicated time if "1 car Garage MS-Sensor" is triggered OR anytime any one of the other sensors is triggered.

 

If

        From    11:00:00PM

        To      Sunrise (next day)

    And (

                  Status  '1 car Garage MS-Sensor' is On

             Or Status  '2 Car Garage MS-Sensor' is On

            Or Status  'Lower Deck MS-Sensor' is On

           )

Guest
This topic is now closed to further replies.

×
×
  • Create New...