I'd like to jump in on this thread and ask a question - since this is very close to the same problem I can't figure out...
I have two switchlincs that each control a load. Lets call them SL1 and SL2.
On the other side of the room, I have an 8 button keypadlinc (Called 'Kitchen KPL'). I have crosslinked one button to SL1 and another to SL2. I have a third button setup to control both SL1 and SL2. I call this Combo1. Combo 1 button works well. Press it once, both groups of lights come on. Press it again, both groups of lights go off.
My problem is this: If I turn on SL1 and SL2, I want the Combo 1 button to light up so I can turn both groups off with the first press. Right now, I have to press Combo 1 to get it in sync, then press it again so it will send the OFF signal to the Switchlincs.
I have a program to set a State Variable ($State_Combo1) based on the condition of SL1 and SL2, and the logic for this seems to works correctly based on what I see in the Admin Console. I wanted to use this to identify if the Combo1 button should be ON or OFF. $State_Combo1 = 1 only if both SL1 and SL2 are on, otherwise it = 0.
But I can't get a program to change the state of the Combo1 button.
I tried this:
If
$State_Combo1 is 1
Then
Set 'Kitchen KPL - Combo1' On
---
If
$State_Combo1 is 0
Then
Set 'Kitchen KPL - Combo1' Off
I have tried all sorts of other combinations of code. I have been able to get this to work to control another group of lights. But I can't get it to control that KeyPadLinc button, Combo1.
What am I doing wrong? Thanks...