Jump to content

Solved- Monitoring Program help needed.


EricK

Recommended Posts

I just figured this out so skip if you are busy.  Otherwise good to read to figure out monitoring.

 I have a KPL button "Basement" on an older 8 button KPL v.36 in the hallway.  I want that button to be on if the basement main lights, basement bookcase lights, or the basement step lights are on.  If those three sets of lights are off, then I want the button to be off.  If the lights are all off, the button is off.  However, if one of the lights is on, then the button goes into a 5 second flash on/off repeatedly.   The button is the sole responder to the 'Basement KPL Monitor Hallway' scene.  Here is what I have:

If
        Status  'Hall and Foyer / Hallway KPL8 - A - Hallway / Hallway KPL8 - G - Basement' is Off
    And (
             Status  'Basement / Basement Devices / Basement Bookcase Lights' is On
          Or Status  'Basement / Basement Devices / Basement Steps' is On
          Or Status  'Basement / Basement Devices / Basement Main Lights New' is On
        )
 
Then
        Wait  5 seconds
        Set Scene 'Basement / Basement Scenes / Basement KPL Monitor Hallway ' On
 
Else
   - No Actions - (To add one, press 'Action')

If
        Status  'Hall and Foyer / Hallway KPL8 - A - Hallway / Hallway KPL8 - G - Basement' is not Off
    And (
             Status  'Basement / Basement Devices / Basement Bookcase Lights' is Off
          Or Status  'Basement / Basement Devices / Basement Steps' is Off
          Or Status  'Basement / Basement Devices / Basement Main Lights New' is Off
        )
 
Then
        Wait  5 seconds
        Set Scene 'Basement / Basement Scenes / Basement KPL Monitor Hallway ' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
Turns off the Hallway KPL G Basement if the basement lights, basement cabinet lights, and basement steps are off.

What am I missing that has resulted in the flashing.

Thanks,

Eric

I saw the problem on the preview.  If any device is on, turn the button on. If all are off, turn it off.  So I needed and, not or.

If
        Status  'Hall and Foyer / Hallway KPL8 - A - Hallway / Hallway KPL8 - G - Basement' is not Off
    And (
             Status  'Basement / Basement Devices / Basement Bookcase Lights' is Off
         And Status  'Basement / Basement Devices / Basement Steps' is Off
         And Status  'Basement / Basement Devices / Basement Main Lights New' is Off
        )
 
Then
        Wait  5 seconds
        Set Scene 'Basement / Basement Scenes / Basement KPL Monitor Hallway ' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
Turns off the Hallway KPL G Basement if the basement lights, basement cabinet lights, and basement steps are off.

Link to comment

Eric-

 

Why test the status of the button?  Just test the other lights and set the button.  If it's already right, no harms done.

If

    (
             Status  'Basement / Basement Devices / Basement Bookcase Lights' is On
          Or Status  'Basement / Basement Devices / Basement Steps' is On
          Or Status  'Basement / Basement Devices / Basement Main Lights New' is On
        )
 
Then
        Set Scene 'Basement / Basement Scenes / Basement KPL Monitor Hallway ' On
 
Else
        Set Scene 'Basement / Basement Scenes / Basement KPL Monitor Hallway ' Off

This should take care of the whole thing for you. If one or more of the lights is on, the button will be lit.  Otherwise, it's off.

 

-Xathros

Link to comment

Xathros,

Thanks for the help.  The purpose of the status of the KPL is to prevent the scene from being sent out unnecessarily.  I just converted to your single program.  I had posted in another thread last night about not minding extra traffic in order to keep a program more simple.     

Eric

Link to comment

Update.

I am having an issue with the single program.  If I hit the all off button, D, on a 6 button DB KPL to turn off all of the basement lights, then the monitoring KPL does not turn off reliably.  With the initial two programs it does.  Maybe there is too much traffic with the All Off command or a bad com to the old KPL.  I'll keep the two programs for now rather than troubleshoot.

Eric

Link to comment

Archived

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


×
×
  • Create New...