Jump to content

Help with a Simple Programs


mikesommer

Recommended Posts

Posted

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
 

Posted

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.

 

  • Like 1
Posted
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)

Posted
1 minute ago, ronvond said:

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

This --------------------------------------------------------------------------^^^^^^^

Posted (edited)
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.

Edited by apostolakisl
  • Like 1
Posted (edited)

@mikesommer

Welcome to the UDI forums!

In addition to the advise given above....

Install a Wait 1 second after each of your X10 commands.
The PLM can confuse signals between X10 and  Insteon  causing one to clobber the other. This should not happen but trial and error has shown differently.

Edited by larryllix
  • Like 1
Posted (edited)

Thanks guys will do those two things and hopefully, it takes care of the problem. Does show status of True now.

Edited by mikesommer
Guest
This topic is now closed to further replies.

×
×
  • Create New...