mikesommer Posted February 18, 2019 Share Posted February 18, 2019 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
Bumbershoot Posted February 18, 2019 Share Posted February 18, 2019 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
mikesommer Posted February 18, 2019 Author Share Posted February 18, 2019 Bumbershoot, I'm assuming you are using insteon devices since you are using a scene, this is an older X-10 device. Link to comment
ronvond Posted February 18, 2019 Share Posted February 18, 2019 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
Bumbershoot Posted February 18, 2019 Share Posted February 18, 2019 1 minute ago, ronvond said: Change line three to "To Sunrise + 30 minutes (next day) This --------------------------------------------------------------------------^^^^^^^ Link to comment
mikesommer Posted February 18, 2019 Author Share Posted February 18, 2019 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. Link to comment
apostolakisl Posted February 18, 2019 Share Posted February 18, 2019 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
larryllix Posted February 18, 2019 Share Posted February 18, 2019 @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. Link to comment
mikesommer Posted February 19, 2019 Author Share Posted February 19, 2019 Thanks guys will do those two things and hopefully, it takes care of the problem. Does show status of True now. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.