Jump to content

Create program for KPL button to match status of light


Moshe

Recommended Posts

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.

Link to comment

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

Link to comment

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

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...