Moshe Posted April 26, 2010 Posted April 26, 2010 I have created a program that the status KPL button (F) will turn on if a bedroom1 light is on and off if bedroom1 light is is off. If status of bedroom1 light is on then set KPL button (F) to on else set KPL button (F) to off. The problem is when I add the second bedroom (bedroom2) with the or statement bedroom1 will turn on as well, because KPL button (F) is a controller. I want KPL button (F) to be a controller so I can turn off/on the bedrooms.
Michel Kohanim Posted April 26, 2010 Posted April 26, 2010 Hi Moshe, How do the bedroom lights turn on/off? i.e. do they have their own switch. If so, why not use a scene where all of them (including your KPL button) are controllers? In any case, you want something like this If Status bedroom 1 is not off Or Status bedroom 2 is not off Or Status bedroom 3 is not off .... Then Set the-scene-containing-your-kpl On And, you would want the opposite for Off If Status bedroom 1 is off AND Status bedroom 2 is off AND Status bedroom 3 is off .... Then Set Set the-scene-containing-your-kpl Off With kind regards, Michel
Moshe Posted April 26, 2010 Author Posted April 26, 2010 Hi Michel - If I make a scene and make all devices controllers then all of the bedrooms contol each other. I do not want the bedroom switchlinks to contol each other, just the KPL button. I will try your program. Could I just use the else statment in the first program to set KPL Button (F) to off. Thanks
Michel Kohanim Posted April 26, 2010 Posted April 26, 2010 Hi Moshe, Got it. No, you cannot use else since, in the case of If Status bedroom 1 is not off Or Status bedroom 2 is not off Or Status bedroom 3 is not off Else will be true as soon as only "one" of them is off. What you want is when ALL of them are off and thus the AND conjunction. With kind regards, Michel
Moshe Posted April 26, 2010 Author Posted April 26, 2010 Michel - By using your program, once one of the bedroom lights is on the KPL (controller) will turn on causing the other bedrooms to turn on, correct. If I do not set the KPL as a controller will I still be able to turn off/on the bedroom lights from the KPL button. Thanks
Michel Kohanim Posted April 26, 2010 Posted April 26, 2010 Hi Moshe, Yes, you would be able to use the same button to activate a scene in your programs. With kind regards, Michel
Recommended Posts