Jump to content

Help with KPL button to track modules ON state


jim_

Recommended Posts

Posted

Trying to use KPL button for dual use, but I need help getting scan part to work. 

 

I would like a KPL button to indicate that other Insteon modules are in an ON state, and turn them off with the same switch.  Each night, a program shuts down all lights in a delayed order … but if I want to turn the lights off earlier than 11 PM, I have button B on two KPL’s to perform the all lights off manually 

 

Sometimes the kids come in late and turn lights on, like garage or exterior lamps, so in the perfect world, I would like button B to light up again. If button B is pressed, it will run an “all shutdown” again.

 

As a newbie, my programming is probably not as efficient as it could be, but I would appreciate any help with the scan part

------------------------------------------------------------------------------------------------------------

Program turns Lights on a Sunset in delayed manner and turns on KPL button B

------------------------------------------------------------------------------------------------------------

If

        From    Sunset

        To      Sunrise (next day)

Then

        Set Scene 'Lights - Button B' On

        Set 'Family Room Pot Lights' 70%

        Wait  2 minutes

        Set 'Kitchen Sink Light' On

        Wait  3 minutes

        Set 'Living Room Lights' On

        Wait  5 minutes

        Set 'Front Door - Ext Lights' On

               etc

------------------------------------------------------------------------------------------------------------

This turns off lights at Bedtime and turns OFF button B

------------------------------------------------------------------------------------------------------------

If

        On Sun, Mon, Tue, Wed, Thu

        Time is 11:00:00PM

Then

        Set 'Family Room Pot Lights' Off

        Wait  3 minutes  (Random)

        Set 'Kitchen Sink Light' Off

        Wait  3 minutes  (Random)

        Set 'Living Room Lights' Off

               etc

        Set Scene 'Lights - Button B' Off

------------------------------------------------------------------------------------------------------------

Button B turns off all lights before Bedtime timer triggers

------------------------------------------------------------------------------------------------------------

If

        Status  'KPL Front Door - Ext Lights / Front KPL - B' is Off

     Or Status  'KPL Back Door - Garage Light / Rear KPL - B' is Off

 

Then

        Set 'Family Room Pot Lights' Off

        Set 'Kitchen Sink Light' Off

        Set Scene 'Kitchen 3 Way' Off

               etc

------------------------------------------------------------------------------------------------------------

Test program to scan for lights turned on after bedtime timer has already run

------------------------------------------------------------------------------------------------------------

If

        From    Sunset

        To      Sunrise (next day)

    And Status  'KPL Front Door - Ext Lights / Front KPL - B' is Off

    And (

             Status  'Family Room Pot Lights' >= 1%

          Or Status  'Kitchen Sink Light' >= 1%

               etc

           )

 Then

        Set Scene 'Buttons B' On

 ------------------------------------------------------------------------------------------------------------

 

Posted

I previously read that post, but my Keypad works for normal scenes ...

 

What doesn't work is the secondary scan to trigger the keypad back on ... The scan should only run when SunSet is true and keypad is currently in off state

How do i initiate a scan of all modules to determine if they are in an ON state again ... if an ON state is found, re-trigger the keypad to show on ?

Posted

Let me ask this question differently .. I built test programs to simplify my question and for a few cycles, it works, but then the modules flashing on / off many times and I get a window pop up on the Console writing data for a long time, so I assume this is a loop ?

How do you stop it .. or at lease get this program to work 

 

First I scan for modules in an ON state provided the SunSet = TRUE and KPL - C is OFF

 

If
        From    Sunset 
        To      Sunrise (next day)
    And Status  'KPL Back Door - Garage Light / Rear KPL - C' is Off
     Or Status  'KPL Front Door - Ext Lights / Front KPL - C' is Off
    And (
             Status  'LampLinc 26.DD.BD' is not Off
          Or Status  'LampLinc 26.EB.83' is not Off
        )
 
Then
        Set Scene 'Buttons C' On   <<<<<<<<<<<<<<<<<<<<< turn on Button C scene
----------------------------------------------------------------
Next ... with Buttons C turned ON, either Button C will turn all modules off
 
If
        Status  'KPL Front Door - Ext Lights / Front KPL - C' is Off         <<<<<<<<<<<< manually turn all modules off
     Or Status  'KPL Back Door - Garage Light / Rear KPL - C' is Off
 
Then
        Set 'LampLinc 26.DD.BD' Off
        Set 'LampLinc 26.EB.83' Off
 
 
 
Posted

If button B is off and you press it do you want it to turn anything on?

If not then I would consider setting B to non toggle off.

Create a scene with B as the controller and everything that you want off as a responder, with the response level set to off/ 0.

Create a scene with only the B buttons as responders "B buttons"

Write a program to monitor, not sure why only at night, this does not seem to need that condition.

If status device x is on

Or status device y is on

Or status device z is on

Then set scene B buttons on.

 

If you want the night time condition

If from sunset

To sunrise next day

And

(Status device x is on

Or status y is on

Or status z is on )

Then set scene B buttons on

 

So if any of the devices are on, the Bs light up. Pressing b then will turn all lights off (so B can probably B toggle, not non toggle off)

 

If you don't want to make the scene with all responders and B as a controller then you could use a program

If control B1 is off

Or control B 2 is off

Then

Set scene x off

Set scene y off

 

I'll throw some more ideas out

How about a program to run at 1am to turn everything off.

Maybe a notification. If (time is 11pm to sunrise next day)and garage lights are on then notification "garage lights are on

Automate it: if (time is 11pm to sunrise next day) and status garage lights are on then wait 30 minutes and run your second program then or set scene with all of the devices off.

 

Check out this tutorial: http://www.adamsj.com/isy/basementA.htm

 

Beauty of the isy and this forum is the flexibility and ideas to get the function you want.

Eric

Guest
This topic is now closed to further replies.

×
×
  • Create New...