Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with a Simple Programs

Featured Replies

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
 

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.

 

  • Author

Bumbershoot,

I'm assuming you are using insteon devices since you are using a scene, this is an older X-10 device.

 

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)

1 minute ago, ronvond said:

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

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

  • Author

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.

 

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

@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

  • Author

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.