Jump to content

Trigger Status


gmurch

Recommended Posts

I am not sure if this can be done? I have a theatre room downstairs and I have a trigger that turns on the lights from the wall switch at the entry. After a couple of minutes the lights dim to the correct level for watching the movie. I also have a scene on a KPL upstairs that is called movie -- it actually controls a scene "movie" What I would like to do is have the "movie" button on the KPL lit if any of the downstairs lights are on when set by triggers or individual control. That way I won't forget to turn them off.

Link to comment

gmurch,

 

Allow me to restate your post to make sure I have things correct:


  • 1) If your downstairs KPL is activated you turn your lighting scene on at TBD level.
    2) After 2 minutes, you dim the lights to Movie level and want to activate a button on your upstairs KPL.
    3) Both the up and downstairs KPL should be capable of activating/deactivating the Movie mode.

There are a number of ways of approaching this. The problem may be that you want your upstairs KPL to activate a "movie scene", but you want the button lit if any of your "movie scene" lights are on. These are not the same.

 

Here's one method:

 

Create the following scenes with all of your movie light responders. Include your KPL's as responders, control will be handled in the program section.

 

Scene Home theater on

Light 1 at tbd level and ramp

Light 2 at .....

KPL Upstairs ON

KPL Downstairs ON

 

Scene Home theater movie

Light 1 at movie level and ramp

Light 2 at .....

KPL Upstairs 50%

KPL Downstairs 50%

 

Scene KPL Status

KPL Upstairs

KPL Downstairs

 

Now program the control section - you'll actually need 3 controls (on/off) for your two KPLs.

 

 

Downstairs KPL ON

If

Control KPL downstairs is set to ON

Then

Set scene HomeTheater on

Wait 2 minutes

Set Scene Home Theater Movie ON

Else

---

 

Upstairs KPL ON

If

Control KPL upstairs is set to ON

Then

Set Scene Home Theater Movie ON

Else

---

 

Either KPL Off

If

Control KPL downstairs is set to off

or Control KPL upstairs is set to off

Then

Set scene HomeTheater off

Else

---

 

Now the Status section. One program to update the KPL status for on and one for off.

 

Program to update KPLs with On Status

If
       (
        Status  'KPL Upstairs' is Off
        And Status  'KPL Downstaris' is Off
       )
   And (
            Status  'Lamp 1' > Off
         Or Status  'Lamp 2' > Off
         Or     .....
       )

Then
       Set Scene 'KPL Status' On  {typo corrected - was Off}

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

 

 

Program to Update Off status of KPL's

If
       (
            Status  'KPL Upstairs' is > Off
        And Status  'KPL DownStairs' is > Off
       )
   And (
            Status  'Light 1' is Off
        And Status  'Light 2' is Off
            .....
       )

Then
       Set Scene 'KPL Status' Off

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

 

Now for the problem with the above. The status monitoring will turn on your KPL button if any light in your scene is on. I'm not sure that's what you want. Using this program you may need to turn your upstairs KPL off and then back on again to activate your movie mode.

 

Hopefully this is a starting point and you can "tune" things as you desire.

 

IM

Link to comment
  • 3 weeks later...

 

Scene KPL Status

KPL Upstairs

KPL Downstairs

 

Program to update KPLs with On Status

If
       (
        Status  'KPL Upstairs' is Off
        And Status  'KPL Downstaris' is Off
       )
   And (
            Status  'Lamp 1' > Off
         Or Status  'Lamp 2' > Off
         Or     .....
       )

Then
       Set Scene 'KPL Status' Off

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

 

 

Program to Update Off status of KPL's

If
       (
            Status  'KPL Upstairs' is > Off
        And Status  'KPL DownStairs' is > Off
       )
   And (
            Status  'Light 1' is Off
        And Status  'Light 2' is Off
            .....
       )

Then
       Set Scene 'KPL Status' Off

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

 

So, is THAT how people get two KPL buttons that trigger the same thing to have correct status?

 

Correct me if I'm wrong:

The two scenes, the normal one, and the status LED controlling one, they are separate because if the KPL secondaries are the controllers they do not apply the scene correctly, (well it does but without nice fades and such).

Link to comment

Falco,

 

At one time I was using single scenes with the "status" buttons as controllers. I can't honestly remember why I got away from that (the mind is the first thing to go, I can't remember the second). I suspect that the separate scene (with only the status buttons) is more flexible.

 

In general, I prefer to use program control to activate the scenes. This allows the use of delays, program enable/disable, and other niceties.

 

The above is my interpretation of the functions that gmurch had requested. It may be over complicated and I have not tested it (I corrected one error when I reread it). I'd encourage you to look at other threads which deal with the same concept :http://www.forum.universal-devices.com/viewtopic.php?p=3338#3338

 

One last comment, the status monitoring includes a "lockout" to prevent the code from running if the "status" is already set. Since the "status command" is evaluated every time one of the devices changes state (bright, dim, on, off) I use this to prevent the program from continuously executing when the condition is already true.

 

In the following code, the "lockout" prevents the program from running if the KPL status lights are already on. No sense turning on lamps that are already lit. I also believe this helps to alleviate the "status button flash" phenomena that can occur when a scene is in the process of executing.

 

If

(Lockout section

Status 'KPL Upstairs' is Off

And Status 'KPL Downstaris' is Off

)

And (Status monitor section

Status 'Lamp 1' > Off

Or Status 'Lamp 2' > Off

Or .....

)

 

Then

Set Scene 'KPL Status' Off

 

 

Hope this helps,

IM

Link to comment

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.


×
×
  • Create New...