Jump to content

Changing Status Of A KPL Button


smokegrub

Recommended Posts

I have the following program designed to execute at bedtime. However, I can find no way to change the status of the KPL button to OFF once the program has run. Thus, I am left with a button that must be pressed again the following day to return it to OFF status. How can I accomplish my objective?

 

Dad's Bedtime - [iD 0019][Parent 0001]

If
        Status  'Family Room KPL / FR KPL A (Bedtime)' is On
 
Then
        Set 'Kitchen Lights (Hallway)' On
        Set 'Chandelier (Upstairs)' On
        Set 'Dad's Bedroom (TL)' On
        Wait  1 second
        Set 'Family Room KPL / FR KPL 1 (Light On and Off)' Off
        Wait  2 minutes
        Set 'Kitchen Lights (Hallway)' Off
        Set 'Chandelier (Upstairs)' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
 

Link to comment

I have very little experience with the KPL LEDs but...

 

You could take the KPL out of toggle mode so that it only produced On commands and try something like this.

 

IIRC KPL EDs only respond to scenes with them included.

 

Dad's Bedtime - [iD 0019][Parent 0001]

If
         Status  Control  'Family Room KPL / FR KPL A (Bedtime)' is Switched On
 
Then

         Set Scene  'Family Room KPL / FR KPL A (LED)' On
         Set 'Kitchen Lights (Hallway)' On
         Set 'Chandelier (Upstairs)' On
         Set 'Dad's Bedroom (TL)' On
         Wait  1 second

         Set 'Family Room KPL / FR KPL 1 (Light On and Off)' Off

         Wait  2 minutes
         Set 'Kitchen Lights (Hallway)' Off
         Set 'Chandelier (Upstairs)' Off

         Set Scene  'Family Room KPL / FR KPL A (LED)' Off
 
Else
    - No Actions - (To add one, press 'Action')

Link to comment

I have very little experience with the KPL LEDs but...

 

You could take the KPL out of toggle mode so that it only produced On commands and try something like this.

 

IIRC KPL EDs only respond to scenes with them included.

 

Dad's Bedtime - [iD 0019][Parent 0001]

If

         Status  Control  'Family Room KPL / FR KPL A (Bedtime)' is Switched On

 

Then

         Set Scene  'Family Room KPL / FR KPL A (LED)' On

         Set 'Kitchen Lights (Hallway)' On

         Set 'Chandelier (Upstairs)' On

         Set 'Dad's Bedroom (TL)' On

         Wait  1 second

         Set 'Family Room KPL / FR KPL 1 (Light On and Off)' Off

         Wait  2 minutes

         Set 'Kitchen Lights (Hallway)' Off

         Set 'Chandelier (Upstairs)' Off

         Set Scene  'Family Room KPL / FR KPL A (LED)' Off

 

Else

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

Looks promising. Will give it a try.

Link to comment

I set a Front Off button the Non-Toggle Off and use the following program:

If
        Status  'CR / Devices / CR FanLinc-Light 80' is not Off
     Or Status  'KT / Devices / KT Ceiling 45' is not Off
     Or Status  'LR / Devices / LR Ceiling Light KPL 20' is not Off
 
Then
        Set Scene 'DR / Scenes / DR Front Off Button' On
 
Else
        Set Scene 'DR / Scenes / DR Front Off Button' Off

 

If any one of the devices is at any brightness level, then the button is lit. The button is unlit when either all the devices are off or I press the Front Off button.

Link to comment

Looks promising. Will give it a try.

I have very little experience with the KPL LEDs but...

 

You could take the KPL out of toggle mode so that it only produced On commands and try something like this.

 

IIRC KPL EDs only respond to scenes with them included.

 

Dad's Bedtime - [iD 0019][Parent 0001]

If

         Status  Control  'Family Room KPL / FR KPL A (Bedtime)' is Switched On

 

Then

         Set Scene  'Family Room KPL / FR KPL A (LED)' On

         Set 'Kitchen Lights (Hallway)' On

         Set 'Chandelier (Upstairs)' On

         Set 'Dad's Bedroom (TL)' On

         Wait  1 second

         Set 'Family Room KPL / FR KPL 1 (Light On and Off)' Off

         Wait  2 minutes

         Set 'Kitchen Lights (Hallway)' Off

         Set 'Chandelier (Upstairs)' Off

         Set Scene  'Family Room KPL / FR KPL A (LED)' Off

 

Else

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

I do this with several kpl buttons throughout the house. I do not need the kpl button on or for it to reflect the status of any other device. I would consider creating a scene 'dads bedtime' for at least the first three devices/scenes. Or maybe just add a wait in between each line to allow traffic to clear. However the benefit of using individual lines like you have it is if you add a device to one of those scenes, then you don't need to change the new 'dads bedtime' scene.

Now if you can get the kpl button into a non toggle off state, then do that. Program would be if control kpl,is off then.

Link to comment

I believe you should be able to drag all those devices into a scene with the settings you want and include the KPL LED as another item and now when you turn the scene on and off the LED just follows, as if by magic.

 

For bed time scenes, the long ramp off is nice to not jar the senses but not really wanted for other times when fast on lights may suit better.

 

These techniques make your program code much simpler to use and easy to read.

 

Another advantage of using non-toggle modes and only having the On command sent is you can easily set up a second scene for the second tap of the same button.

 

 

GathRm Mode.Reading/TV.select - [iD 00B1][Parent 0004]

If
       Control (Old) 'Gathering Room / PotLights over Chairs' is switched On

Then
        Run Program 'GathRm Mode.Reading/TV.toggle' (If)

 

 

GathRm Mode.Reading/TV.toggle - [iD 0030][Parent 0004][Not Enabled]

If
        $sGathRm.Mode is $cMODE.TV

Then
        $sGathRm.Mode  = -1
        $sGathRm.Mode  = $cMODE.READING

Else
        $sGathRm.Mode  = -1
        $sGathRm.Mode  = $cMODE.TV

Must be disabled due to trigger variable being State type.

 

Link to comment

Larry: You stimulated my diminishing gray matter and I did the following with success:

 

Created a scene:

Family Room KPLA Controller

Chandelier (Upstairs Up) Responder

Kitchen Lights (Hallway) Responder

 

Dad's Bedtime - [iD 0029][Parent 0001]

If
        Status  'Family Room KPL / FR KPL A (Bedtime)' is On
 
Then
        Set Scene 'Family Room Scenes / Dad's Bedtime' On
        Set 'Dad's Bedroom (TL)' On
        Wait  1 second
        Set 'Family Room KPL / FR KPL 1 (Light On and Off)' Off
        Wait  2 minutes
        Set Scene 'Family Room Scenes / Dad's Bedtime' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

Many thanks! I created a similar program "Arise" in my bedroom and life has been made simpler.

Link to comment

Archived

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


×
×
  • Create New...