Jump to content

Help with a Simple Programs


mikesommer

Recommended Posts

Not sure if this is the correct place to post this, feel free to move it.

I'm new to ISY, and have been able to accomplish a few programs through trial and error.

I'm having difficulty getting my porch light which is controlled from an X-10 switch to turn on 30 minutes before sunset, and 30 minutes after sunrise. I have attached the program below, I have tried this numerous ways, and always get the same result, nothing. Any guidance on this matter would be greatly appreciated.

Sincerely, 

Mike

Front Porch Light - [ID 0008][Parent 0001][Run At Startup]

If
        From    Sunset  - 30 minutes
        To      Sunrise + 30 minutes (same day)
 
Then
        Send X10 'A14/On (3)'
        Set 'Front Porch Light' On
 
Else
        Send X10 'A14/Off (11)'
        Set 'Front Porch Light' Off
 

Link to comment

I'm not exactly sure what you're asking, but this program turns on my external lights 30 minutes prior to sunset, and shuts them off 5 minutes prior to sunrise the next day.

ExternalLightingOn - [ID 0002][Parent 000A]

If
        From    Sunset  - 30 minutes
        To      Sunrise -  5 minutes (next day)
 
Then
        Set 'Scenes / scnExternalLights' On
 
Else
        Set 'Scenes / scnExternalLights' Off
 
Turns house external lighting on 30 minutes prior to sunset every day.  Lights go off at sunrise.

 

Link to comment
24 minutes ago, mikesommer said:

Not sure if this is the correct place to post this, feel free to move it.

I'm new to ISY, and have been able to accomplish a few programs through trial and error.

I'm having difficulty getting my porch light which is controlled from an X-10 switch to turn on 30 minutes before sunset, and 30 minutes after sunrise. I have attached the program below, I have tried this numerous ways, and always get the same result, nothing. Any guidance on this matter would be greatly appreciated.

Sincerely, 

Mike

Front Porch Light - [ID 0008][Parent 0001][Run At Startup]

If
        From    Sunset  - 30 minutes
        To      Sunrise + 30 minutes (same day)
 
Then
        Send X10 'A14/On (3)'
        Set 'Front Porch Light' On
 
Else
        Send X10 'A14/Off (11)'
        Set 'Front Porch Light' Off
 

Change line three to "To   Sunrise + 30 minutes (next day)

Link to comment
1 hour ago, mikesommer said:

I noticed that after I looked at your program, will try that, but it doesn't turn it on either, so must be more too it.

 

No, it doesn't turn it on because the program was always false as you had it written with "same day".  Your "from time" is after your "to" time.  What you had written will never be true.  ISY works off of triggers.  Your program had two triggers, the from time and the to time.  The trigger initiates the "if" evaluation.  The trigger has nothing to do with it being true or false. So once triggered, it determines true vs false and executes the "then" or "else".  In your case, else every time.

Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

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