by AdminWes » Wed Feb 23, 2011 6:50 pm
Hi jkraus,
I see one problem with the program as written. By using the "switched on" and "not switched off" statements in the program, the ISY will only evaluate the IF statement as true if someone physically presses the KPL button. If the KPL button is tied to a scene, and the scene goes on, the KPL's status is now ON, but it wasn't switched physically on, so the ISY will not run your program.
Here's what I would do:
1. Create a scene with the KPL button as the controller and the pool pump as a responder. The benefit to creating a scene is that even if your ISY is off line, the PLM knows all the links and can issue the on/off commands without the ISY. As your program is written today if the ISY goes offline you can't turn the pool pump on or off because the ISY has to evaluate the switched state of the KPL. Also, scene are a little faster than waiting for the ISY to process the program states.
2. Now to address the 1 hour pool pump on requirement. Modify your program to look for the KPL status is ON instead of switched ON and change the Then statement to wait 1hr then turn the scene OFF. So it would look something like this:
If
Status 'KPL Pool eq' is On
Then
Wait 1 hour
Set Scene 'Pool Equipment' Off
Else
- No Actions -
Now when you press the KPL button OR press the KPL virtual button in MobiLinc HD, the same effect is achieved. The scene turns on which drives the pool pump on. The program responds by waiting for 1 hour and then turning the pool pump off by scene control. The other benefit is now when the ISY turns the pool pump off by way of scene control the ISY keeps your KPL light in sync. On = pool pump running. Off = pool pump not running.
Wes