Jump to content

Program a delay


SetMonkey13

Recommended Posts

Posted

I have a remotelinc2 that is programed to turn a couple lights in the bedroom on and off at a .5 sec ramp rate. What I would like to happen is that between 11:30pm and 4:00am (the next day), is that once the remotelinc2 off is pressed, there is a 2 min delay and then the lights ramp off at a 4.5 sec ramp rate.

 

Every time I try something, it never seems to work. I don't like the delay that exist if I write a program for the normal operation and unlink the current lights from the remotelinc2.

 

Is there a way to possibly changed the ramp rate on the lights to 9min ramp rate, wait 2 min and then change the ramp rate to 4.5 sec. That way it seems like there is a delay before the lights turned off.

 

Thanks for helping this newbie.

Posted

There is an Adjust Scene Program Action statement that can change the responder ramp rate for a particular controller. However, once the device is reacting to a command with a particular ramp rate changing the ramp rate will affect the next command but not the one in progress.

Posted

While you did not state it directly, is the button that you want to use to activate this action also in a scene as controller for the "couple of lights"?

 

I recall that changing the ramp rate in a program is an option, but some older devices require a power cycle for that change to take place. If that is accurate, whether this will work for you could be device dependent.

Posted

oberkc

 

The need to power cycle is associated with changing the Local On Level and Local Ramp Rate values. Changing Responder On Level and Ramp Rate values in the link record do not need a power cycle. The difference is link record values are retrieved each time a command is received. The link records must be searched to find a match to the incoming command thus any change to the Responder On Level or Ramp Rate is picked up.

 

Updating the Local On Level and Local Ramp Rate change the device memory that may not be accessed other than at device power on. Devices that use the new I2 configuration commands do not need a power cycle as the new I2 commands have been implemented to change both the memory that is accessed during power on as well as the memory that is being used from command to command.

 

Since the Controller is a RemoteLinc2 there are no Local On Level or Local Ramp Rate values involved.

 

Lee

Posted
The need to power cycle is associated with changing the Local On Level and Local Ramp Rate values. Changing Responder On Level and Ramp Rate values in the link record do not need a power cycle.

 

That is good to know. And the fact that the line of demarcation is I2 devices.

 

Unfortunately, I suspect the limitation you suggested earlier, and the possibility that the remotelinc is already a controller in a scene with the devices-in-question, will make this an interesting programming question.

Posted

The remotelinc is the controller for the two lights in the scene.

 

So if the ramp rate doesn't change the current one in process, but the next one. Wouldn't having the program run that scene again after I made the ramp change be the next run, or does it have to finish its ramp first?

 

Example (I think):

Scene A is set to .5 sec ramp rate.

Time is between 11:30pm and 4am, ramp rate on scene A is changed to 9 min.

When remotelinc off button is pressed, wait 30 sec, change ramp rate of scene A to 4.5 sec, run scene A

 

Then there could be a restore program to change the ramp rate back to 9min if the time is between 11:30 and 4.

 

In my head it works, but thats also based on the little programming I know outside of ISY.

Posted

Go ahead and try it. Use times that will be effective while testing, no need to wait until 11:30 PM. That is the only way to be sure.

 

Use 8 minutes for the maximum Ramp Rate. Smartlabs has changed the maximum Ramp Rate to 8 minutes on some devices. Setting to 9 minutes results in 0.2 sec Ramp Rate on those devices.

Posted

I agree. Try and see. This is how most of us learned to do things.

 

I also agree that, conceptually, this should work, but sometimes there are often details that are difficult for the average user to predict, such as: what happens when one tries to change a ramp rate in a device that is currently executing a status change? Can one even write to devices while they are in a state of change? There may still be hardware or software limitations that limit your options here.

 

But you can try and report back your findings.

 

But wait...perhaps there is another option (just now thought of it). Insteon gives us the ability to set different ramp rates based upon different controllers. Is it possible to programmatically re-define the ramp rate for the remotelinc-as-controller at 8 minutes, between the times of 11 and 7 (or whatever you want), but leave the ramp rate for the master scene (PLM-as-controller) at .5 seconds. After the two-minute wait period, simply execute the master scene?

 

Perhaps others could confirm whether this is even possible.

Posted

So this is what I came up with and it seems to work. It should allow me to hit the off button and get into bed before the lights turn off. I'd love suggestions and changes for the better.

3 programs total. One changes the ramp based on time. One for the delay in the off. The other to turn them on quickly.

 

Time-Ramp Change

If
       From     10:30:00PM
       To       2:00:00AM (next day)

Then
       In Scene 'RemoteLinc 2 Single - A' Set 'Drawing Desk' 8.0 Min (Ramp Rate)
       In Scene 'RemoteLinc 2 Single - A' Set 'Dresser' 8.0 Min (Ramp Rate)

Else
       In Scene 'RemoteLinc 2 Single - A' Set 'Drawing Desk' 0.5 Sec (Ramp Rate)
       In Scene 'RemoteLinc 2 Single - A' Set 'Dresser' 0.5 Sec (Ramp Rate)
       In Scene 'Both Bedroom' Set 'Drawing Desk' 0.5 Sec (Ramp Rate)
       In Scene 'Both Bedroom' Set 'Dresser' 0.5 Sec (Ramp Rate)


 

Delay off

If
       Control 'RemoteLinc 2 Single - A' is switched Off
   And Program 'Time-Ramp Change' is True

Then
       Wait  5 seconds
       In Scene 'Both Bedroom' Set 'Drawing Desk' 6.5 Sec (Ramp Rate)
       In Scene 'Both Bedroom' Set 'Dresser' 6.5 Sec (Ramp Rate)
       Set Scene 'Both Bedroom' Off

Else
  - No Actions - (To add one, press 'Action')


 

Normal on

If
       Control 'RemoteLinc 2 Single - A' is switched On
   And Program 'Time-Ramp Change' is True

Then
       Set Scene 'Both Bedroom' Fast On

Else
  - No Actions - (To add one, press 'Action')

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...