Jump to content

Two programs conflicting??


sfhutchi

Recommended Posts

Posted

I have two programs that don't appear to play nice.

 

This first one is a 'morning program' triggered by a button on a 8 button KPL (that also controls the bathroom light). By itself, the program works well. If I let it runs its full course, it will leave the 'Bath Light' on for an hour.

 

If
       Control 'Master Bath Light - Morning' is switched On
   And Control 'Master Bath Light - Morning' is not switched Off

Then
       Set 'Master Bath Light' 20%
       Wait  20 seconds
       Set 'Master Bathroom Fan' On
       Set  Scene 'Slow Master Bath Light' On
       Wait  1 hour 
       Set 'Master Bath Light' Off
       Set  Scene 'KPL - Morning' Off

Else
       Set 'Master Bath Light' Off
       Set 'Master Bathroom Fan' Off

 

I have another simple program triggered by a double-press off at a normal Switchlinc Dimmer.

If
       Control 'Master Bedroom Light' is switched Fast Off

Then
       Set 'Master Bedroom Fan' Off
       Set 'Master Bath Light' Off
       Set 'Master Bathroom Fan' Off

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

 

If the 'Morning Program' is still running (Bath Light is on), triggering the second program will turn off the 'load light' for the Bath Light on the KPL... but the Bath Light will stay on. Do I need to have this second program 'stop' the first program if it is running? How do I properly handle this? If the second program is sendind a 'Bath Light' off command, why does it stay on?

Posted

My guess is that since you are calling Set 'Master Bath Light' Off, a direct command, the MBL will use the last called ramp rate. If you are using several minutes in the Set Scene 'Slow Master Bath Light' On then it will take that same amount of time to ramp the light off, and you may think nothing is happening. You could use a Fast Off instead of Off or create a new scene with a quicker ramp rate.

 

If you check the light's status in the ISY applet after the double-off it should state 'Off' as soon as the light begins to fade.

 

Rand

Posted

Thanks for the suggestion Rand. This is exactly what was happening. This must be an anomaly of the KPL or Insteon? Since the 'Else' worked perfectly by simply setting the device to 'off' (with no long ramp rate), it is odd that another routine essentially doing the same thing will use the last long ramp rate.

Posted

If you let the program 'Wait 1 hour' the light should fade at the same rate it brightened. Isn't that what you want? It is an Insteon 'feature'.

 

 

BTW, I very much like your morning program, a bit of tweaking (more scenes) and it should work great!

 

Rand

Posted
If you let the program 'Wait 1 hour' the light should fade at the same rate it brightened. Isn't that what you want? It is an Insteon 'feature'.

 

I mainly added the 'wait 1 hour' and turn off bath light as a safety net to ensure that I didn't leave the light on. Normally, I would turn off the morning program as I leave the bathroom. I have this as a 'toggle' button on the KPL. I could let it turn off on its own, but I am usually there in much shorter of a period of time. Eventually I will try to add a motion sensor in the mix and play with this.

 

With the current code, when I press the 'Morning' toggle on the KPL to 'end' it early, the 'Else' runs and the bath light immediately turns off. It doesn't seem to retain the same 9 minute ramp that I see if a separate program sends the 'off' command.

Posted

I think Rand answered your question, but just to be complete ...

 

The original program is still running, and if its in the 'wait 20 seconds' step when the 2nd program runs, then the 1st will continue and slowly ramp up the light. To be safe, you can add 'Stop Program 1' to your second program.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

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