smokegrub Posted November 23, 2015 Posted November 23, 2015 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')
larryllix Posted November 23, 2015 Posted November 23, 2015 (edited) 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') Edited November 23, 2015 by larryllix
smokegrub Posted November 23, 2015 Author Posted November 23, 2015 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.
stusviews Posted November 23, 2015 Posted November 23, 2015 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.
EricK Posted November 24, 2015 Posted November 24, 2015 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.
larryllix Posted November 24, 2015 Posted November 24, 2015 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 OnThen Run Program 'GathRm Mode.Reading/TV.toggle' (If) GathRm Mode.Reading/TV.toggle - [iD 0030][Parent 0004][Not Enabled] If $sGathRm.Mode is $cMODE.TVThen $sGathRm.Mode = -1 $sGathRm.Mode = $cMODE.READINGElse $sGathRm.Mode = -1 $sGathRm.Mode = $cMODE.TVMust be disabled due to trigger variable being State type.
smokegrub Posted November 24, 2015 Author Posted November 24, 2015 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.
Recommended Posts