Jump to content

Problem with Programs


smokegrub

Recommended Posts

I have a program that is currently giving me problems. The Security Program is designed to enable a second program that sends notifications with door openings. My problem is that the Security program is not enabling the Chesapeake Door Open program when either of the KPL buttons are pressed. I obviously am doing something stupid because this conceptual approach has worked flawlessly in the past. The second program works fine when manually enabled so the problem is with the first program. Any help will be appreciated.

 

Security - [iD 0011][Parent 001C]

 

If

        Control 'KPLs / Kitchen KPL / Kitchen KPL D (Door Sensors)' is switched On

     Or Control 'KPLs / Deck KPL / Deck KPL D (Door Sensors)' is switched On

 

Then

        Enable Program 'Chesapeake Door Open (Disabled)'

 

Else

        Disable Program 'Chesapeake Door Open (Disabled)'

 

 

Chesapeake Door Open (Disabled) - [iD 0012][Parent 001C][Not Enabled]

 

If

        Control 'Sensors (Door) / Front Door Sensor-Opened' is switched On

     Or Control 'Sensors (Door) / Deck Door Sensor' is switched On

     Or Control 'Sensors (Door) / Garage Side Door Sensor' is switched On

     Or Control 'Sensors (Door) / Kitchen Door Sensor' is switched On

     Or Control 'Sensors (Door) / Man Cave Door Sensor' is switched On

 

Then

        Send Notification to 'Donnie Wheeler'

 

Else

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

 

The status is disabled until either the Deck or Kitchen KPL D is On.

 
Link to comment

I have a program that is currently giving me problems. The Security Program is designed to enable a second program that sends notifications with door openings. My problem is that the Security program is not enabling the Chesapeake Door Open program when either of the KPL buttons are pressed. I obviously am doing something stupid because this conceptual approach has worked flawlessly in the past. The second program works fine when manually enabled so the problem is with the first program. Any help will be appreciated.

 

Security - [iD 0011][Parent 001C]

 

If

        Control 'KPLs / Kitchen KPL / Kitchen KPL D (Door Sensors)' is switched On

     Or Control 'KPLs / Deck KPL / Deck KPL D (Door Sensors)' is switched On

 

Then

        Enable Program 'Chesapeake Door Open (Disabled)'

 

Else

        Disable Program 'Chesapeake Door Open (Disabled)'

 

 

Chesapeake Door Open (Disabled) - [iD 0012][Parent 001C][Not Enabled]

 

If

        Control 'Sensors (Door) / Front Door Sensor-Opened' is switched On

     Or Control 'Sensors (Door) / Deck Door Sensor' is switched On

     Or Control 'Sensors (Door) / Garage Side Door Sensor' is switched On

     Or Control 'Sensors (Door) / Kitchen Door Sensor' is switched On

     Or Control 'Sensors (Door) / Man Cave Door Sensor' is switched On

 

Then

        Send Notification to 'Donnie Wheeler'

 

Else

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

 

The status is disabled until either the Deck or Kitchen KPL D is On.

Can your KPLs produce anything except 'On'?

If not, what would run Else to disable your Chesapeake program?

Link to comment

The problem is not the disablement step, the program never enables. If something apparent doesn't get revealed here at the forum, I am going to erase both programs and rewrite them from scratch.

What are your trigger KPLs set up as?

 

Programs look OK, but if the KPLs can't produce and 'On' then this would make sense.

 

Have a look at the options for the KPLs and there should be no 'Off' setting enabled.

Link to comment

OK.

 

When either of your KPL buttons produce an On your program should trigger Then.

 

When your KPLs produce an Off signal there is no program to trigger that detects the 'Off' signal.

 

IIRC there is no status for KPLs?

 

Try this to capture  Off signals and run Else.

 

If   

     (

          Control 'KPLs / Kitchen KPL / Kitchen KPL D (Door Sensors)' is switched On

     Or Control 'KPLs / Deck KPL / Deck KPL D (Door Sensors)' is switched On

      )

   AND Control 'KPLs / Kitchen KPL / Kitchen KPL D (Door Sensors)' is NOT switched Off

   AND Control 'KPLs / Deck KPL / Deck KPL D (Door Sensors)' is NOT switched Off

 

I am not sure where the parenthesis formatting falls but  the AND has a higher precedence so the OR lines have to be grouped.

Link to comment

Archived

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


×
×
  • Create New...