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.

Programming

Featured Replies

Posted

For some reason I can't get programming for my front porch to work.

 

I have basically an if statement that says, "if time is between 5:00pm and 8:00am", and "outdoor module is off," turn it on. Else, turn it off.

 

It shows running, light is always on (program never shuts it off).

 

Any ideas on how to make something basic like this work?

 

Thanks!

Right click on Program name, select Copy to Clipboard and post to forum. Using If Status as part of the IF may cause problems because when the device turns On the Status changes. No need for that in the If. Also the 8 AM is the (next day) which can be coded wrong.

In addition to what Lee said, it could be that the light is a noisy fluorescent or have some other noise producing transformer or whatever. The light turns on fine, but once on, the power line noise it generates may prevent the Insteon command from reaching its target and turning it off.

 

A simple way to check this is to manually turn it on and off from the ISY main console. If that works fine, then it must be your program.

 

For sure you don't need the line that says "if status is off". If it is already on, sending another "on" command does no harm.

For some reason I can't get programming for my front porch to work.

 

I have basically an if statement that says, "if time is between 5:00pm and 8:00am", and "outdoor module is off," turn it on. Else, turn it off.

 

It shows running, light is always on (program never shuts it off).

 

Any ideas on how to make something basic like this work?

 

Thanks!

 

The other issue you have is you have "outdoor module is off," in the 'if' condition. This immediately becomes 'false' when the module is turned on by the 'Then' executing, causing the program to abort the 'if' and execute the 'else' - turning it right off again.

 

Also, as others have said, make sure the 8pm says 'next day' as well.

 

Michael.

  • Author

The actual code is just like I mentioned:

 

If

From 5:00:00PM

To 8:00:00AM (same day)

 

Then

Set 'Outdoors / Outdoor Module 1' On

Else

Set 'Outdoors / Outdoor Module 1' off

 

 

That's the entire program. Also, the light does work from the ISY (manually turning it on and off).

 

Thanks!

  • Author

Ah,

 

I didn't see that there was a, "Next Day," option. I updated the program and see if it works tonight.

 

Thanks!

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.