Let me start by saying thanks to those that have assisted me. Let me also state that my first stumbling block was that I was having the buttons on two different KPLs show me the status of the AppLinc that powered the drapes. The problem with that is that if the drapes were opened or closed "manually", the timed program would then return them to the opposite position. Instead, I changed that, so that the buttons were lit when the drapes are open, and dark when the drapes are closed. That way I can have programs run, but only based on the status of the KPL buttons.
So: The "Scene" contains 1 button on each of 2 KPLs. This way iw one is pushed, the other will show the same status.
Then there are two programs:
Drapes Open:
If
Status 'DRKL Drape Switch' is On
Or Status 'MKL Drape Switch' is On
Then
Set 'Drape AL' On
Wait 19 seconds
Set 'Drape AL' Off
Else
- No Actions - (To add one, press 'Action')
and:
Drapes Close
If
Status 'DRKL Drape Switch' is Off
Or Status 'MKL Drape Switch' is Off
Then
Set 'Drape AL' On
Wait 19 seconds
Set 'Drape AL' Off
Else
- No Actions - (To add one, press 'Action')
These two programs respond to the buttons being pressed. If I understand IndyMike correctly, I could substitute 'Status' cor 'Control'.
After that, I have the programs that control the timed opening and closing of the drapes. Since it's summer here, I have the following:
Morning Drapes
If
Time is Sunrise + 6 hours
And Status 'DRKL Drape Switch' is On
Then
Set Scene 'Drape Controller' Off
Else
- No Actions - (To add one, press 'Action')
Evening Drapes
If
Time is Sunset + 15 minutes
And Status 'DRKL Drape Switch' is Off
Then
Set Scene 'Drape Controller' On
Else
- No Actions - (To add one, press 'Action')
This keeps the sun from glaring into the living room during the afternoon. Come winter I'll reverse the programs. The nice part is that if the drapes are "manually" opened in the afternoon, they stay opened during the Evening Drapes program whereas before they would go to the opposite state, i.e. closed.
I've probably confused everyone at this point, but I'll end by saying that it seems to be working much better than it was before.