Jump to content

Problem with Programs


smokegrub

Recommended Posts

Posted

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.

 
Posted

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?

Posted

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.

Posted (edited)

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.

Edited by larryllix
Posted (edited)

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.

Edited by larryllix
Posted (edited)

I switched both buttons to non-toggle off and the second program is still disabled.

Then it would seem your signals are not getting into ISY.

 

Check your links from each device and do an ISY link compare (button on report box)

 

If different do a restore

Edited by larryllix
Posted

I tried the program above with buttons set to non-toggle off and all toggle. Neither enabled the program. I am going to erase both programs and rewrite them. Will report back later.

Posted

I tried the program above with buttons set to non-toggle off and all toggle. Neither enabled the program. I am going to erase both programs and rewrite them. Will report back later.

See my previous post. Check your links. Then you will know what may have  happened.

Posted

I changed the program to trigger if the KPL button (Toggle On/Off) was 100% and it runs perfectly. Don't know why and don't particularly care, it works. From my perspective though this is weird behavior.

Posted

Then you must have changed your lines to status, no?

 

Switched has no false. It is a trigger and is happenning or not happenning.

 

Status has two logical states..true and false.

Posted

Then you must have changed your lines to status, no? Yes

 

Switched has no false. It is a trigger and is happenning or not happenning.

 

Status has two logical states..true and false.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...