smokegrub Posted October 17, 2016 Posted October 17, 2016 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.
larryllix Posted October 17, 2016 Posted October 17, 2016 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?
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 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.
larryllix Posted October 17, 2016 Posted October 17, 2016 (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 October 17, 2016 by larryllix
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 Sorry, but I don't understand "What are your trigger KPLs set up as?".
larryllix Posted October 17, 2016 Posted October 17, 2016 (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 October 17, 2016 by larryllix
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 I switched both buttons to non-toggle off and the second program is still disabled.
larryllix Posted October 17, 2016 Posted October 17, 2016 (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 October 17, 2016 by larryllix
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 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.
larryllix Posted October 17, 2016 Posted October 17, 2016 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.
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 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.
larryllix Posted October 17, 2016 Posted October 17, 2016 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.
smokegrub Posted October 17, 2016 Author Posted October 17, 2016 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.
Recommended Posts