ISYhbsh01 Posted October 20, 2010 Posted October 20, 2010 Hi everybody, I use the “B†button of an 8 button KPL to control my M.B.R. window air conditioner which is plugged into an ApplianceLinc. A few days ago I made a program called 'Test M.B.R. A/C 1 Hour' that when I double tap the KPL “B†button the following happens: The MBR A/C goes on, the KPL button LED blinks 5 times, the A/C works for an hour, the KPL button LED blinks again 5 times, and then the A/C shuts off. Here is the program: If Control 'KPL-1-Main / KPL-1-B' is switched Fast On And Control 'KPL-1-Main / KPL-1-B' is not switched Off Then Set Scene 'A/C M.B.R. Scene' On Repeat 5 times Set Scene 'KPL 1 Scenes / KPL-1-B, Scene' Off Set Scene 'KPL 1 Scenes / KPL-1-B, Scene' On Repeat 1 times Wait 1 hour Repeat 5 times Set Scene 'KPL 1 Scenes / KPL-1-B, Scene' Off Set Scene 'KPL 1 Scenes / KPL-1-B, Scene' On Repeat 1 times Run Program 'Test M.B.R. A/C 1 Hour' (Else Path) Else Set Scene 'A/C M.B.R. Scene' Off Send Notification to 'hbsh01' The ‘A/C M.B.R. Scene’ has the KPL button “KPL-1-B “ as a controller & the appliancelinc “*A/C M.B.R.†as a responder. The 'KPL 1 Scenes / KPL-1-B, Scene' has the KPL button as a responder. I also have another program named “Status A/C M.B.R.†to make sure that the KPL button LED status is in sync with the appliancelinc, so when the appliancelinc is turned on/off thru the web interface or via a program and not thru the KPL button the LED should also be on/off accordingly. Here is the program: If Status '*A/C M.B.R.' is On Then Set Scene 'A/C M.B.R. Scene' On Else Set Scene 'A/C M.B.R. Scene' Off This 1 hour program worked fine for a couple of days. This morning when the A/C was off I asked my 10 year old daughter to double tap fast the B button. I don’t know what exactly she ended up doing. Whether she tapped once & then double tapped, or vice versa, or something else altogether. The next thing I know the air conditioner started cycling on & off rapidly. Nothing I tried helped until I disabled the “Status A/C M.B.R.†program then it stopped. Afterwards I re-enabled the program and double tapped the button again and everything worked nicely like before. Can anybody help me understand what could have gone wrong here? Thanks.
Sub-Routine Posted October 20, 2010 Posted October 20, 2010 Hi hbsh01, All I can see is that you should change your status program to control the 'KPL 1 Scenes / KPL-1-B, Scene' rather than the 'A/C M.B.R. Scene'. After all, the A/C is already On or Off, right? Rand
ISYhbsh01 Posted October 20, 2010 Author Posted October 20, 2010 Hi Rand, I also thought the same thing after this happened and reviewing the programs, and I actually made this change right after I made this post. Still, I am not sure if and why this should have caused a loop. All it did was to send a duplicate on command when it should already be on and a duplicate off command when it should already be off. On the other hand, the loop did stop when I disabled this program, so it does seem that it had something to do with it though I don’t understand why. So I would still like to see if someone might come up with something that I did wrong other then this to avoid a costly recurrence. Or maybe someone can explain why this should indeed have caused a loop. Perhaps someone would want to take a look at my log file. Thank you.
Recommended Posts