Jump to content

Programming


sideslope

Recommended Posts

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!

Link to comment

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.

Link to comment

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.

Link to comment
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.

Link to comment

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!

Link to comment

Archived

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


×
×
  • Create New...