Jump to content

Program does not work like I want it to


easytim

Recommended Posts

Posted

I'm new at this, I can't get my yard lights to turn off when I want them to,they stay on all night.

Until dusk to dawn shuts them off. It turns on OK, but not off.

 

Here's a picture of the program I'm using, I just need a little help until I become better.

 

Thanks Tim

 

Darn , I see the problem, I have it being turned on instead of off :oops:

post-3118-14047416522_thumb.jpg

Posted

You need an "On" and an "Off" command to do both. The "Responding" condition shouldn't be in there.

 

Multiple times need to have "OR" logic. Both can never be true at the same time and therefore your "Then" will never get executed, only the empty "Else"

 

If

. On Sat, Mon, Wed

. Time is 2:00 AM

OR

. On Fri, Tues, Thu

. Time is 1:00 AM

 

Then

. Set 'YardLights' On

. Wait 2 Hours

. Set 'YardLights' Off

 

Else

-

Posted

Your post mentions wanting your yard lights to turn off, but then your program has them turning on.

Perhaps you can better clarify what you want?

 

I'm guessing you want them to turn off at 11 PM Sun-Thurs, and 2 AM Fri/Sat (really Sat/Sun)?

 

If so, I would use this:

If
       On Sun, Mon, Tue, Wed, Thu
       Time is 11:00:00PM
    Or On Sat, Sun
       Time is  2:00:00AM

Then
       Set Scene 'Outside' Off

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

You don't need to check if they are on, just turn them off. If they are already off, they will stay off.

Posted
Your post mentions wanting your yard lights to turn off, but then your program has them turning on.

Perhaps you can better clarify what you want?

 

I'm guessing you want them to turn off at 11 PM Sun-Thurs, and 2 AM Fri/Sat (really Sat/Sun)?

 

If so, I would use this:

If
       On Sun, Mon, Tue, Wed, Thu
       Time is 11:00:00PM
    Or On Sat, Sun
       Time is  2:00:00AM

Then
       Set Scene 'Outside' Off

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

You don't need to check if they are on, just turn them off. If they are already off, they will stay off.

 

He edited his post yesterday pointing out that he made a silly mistake accidentally commanding the lights to turn on when he meant to put off.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...