OK, I'm pretty happy with this now Here's what it does:
* The KPL LED comes on when the garage door is opened
* If you press the KPL button, the LED goes out and the door starts to close. After a short delay, the LED comes back on to indicate the that the door has not yet finished closing.
* If the door is unable to close, the LED stays on and you know there is a problem
* If the door closes succesfully, the LED turns off
Additionally, if someone presses the KPL button while the door is closed, nothing happens. Well, OK the LED comes on for about 2 seconds but it turns back off automatically and the door does not open.
Here's the setup:
* Wire the sensor using the red wire instead of the green wire (so the status will be Off when the door is closed and On when it is open)
* Leave all KPL buttons are in the normal "Toggle" mode
* Set the IOLinc to Momentary A with 2/10ths hold time. "Trigger Reverse" is not needed if you use the red wire.
* Create a scene called 'Garage Door Sensor' that contains the appropriate KPL buttons as responders and the IOLinc sensor as a controller
* Create an additional scene called 'Garage Door Indicator' that contains the same KPL buttons again as responders, with no controller
These four programs handle the logic:
GARAGE DOOR BUTTON (enabled):
If
Control 'LR Entry KPL G - Garage Door' is switched Off
Or Control 'LR Entry KPL G - Garage Door' is switched On
Or Control 'LR Patio KPL G - Garage Door' is switched Off
Or Control 'LR Patio KPL G - Garage Door' is switched On
Then
Run Program 'Garage Door Close' (If)
Else
- No Actions - (To add one, press 'Action')
(basically, detect if any of the KPL buttons are pressed)
GARAGE DOOR CLOSE (disabled):
If
Status 'Garage Door - Sensor' is On
Then
Set 'Garage Door - Relay' On
Run Program 'Garage Door Query' (If)
Else
Run Program 'Garage Door Query' (If)
(only run the garage door motor if the door is open, i.e. try to close it)
GARAGE DOOR QUERY (disabled):
If
- No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
Repeat 1 times
Set 'Garage Door - Sensor' Query
Run Program 'Garage Door Set Indicator' (If)
Set 'Garage Door - Relay' Query
Wait 5 seconds
Else
- No Actions - (To add one, press 'Action')
(Check the status of the door, then set the KPL LEDs appropriately. Also check the status of the IOLinc relay since it never sends an Off. Not sure if the repeat is needed, but shouldn't hurt)
GARAGE DOOR SET INDICATOR (disabled):
If
Status 'Garage Door - Sensor' is On
Then
Set Scene 'Garage Door Indicator' On
Else
Set Scene 'Garage Door Indicator' Off
(set the KPL LEDs)
Thanks for the help getting this going! I've only had the ISY for a few weeks now so if you see any room for improvement, please do let me know.
-larry