Jump to content

simple task, but need some advice


jkraus

Recommended Posts

Posted

I am trying to do something simple , but it escapes me.

 

I have two separate KPL, each button controlling the same programs. note, they are programs and not scenes because it uses an X10 control in the program.

 

the same button on each controls the same program, so lets say I press button B, I want the program to start and the LED to go on on both KPLs button B, Likewise, I want the LED to go out and program stop on both KPLs independent of which on I press to turn off.

 

Simple in scenes, a little less simple for programs

Posted
I want the program to start and the LED to go on on both KPLs button B, Likewise, I want the LED to go out and program stop on both KPLs independent of which on I press to turn off.

 

Does this mean that you have a program running continuously, until you stop it? Or is it that you want a programs "then" condition to run when you press the KPL buttons on, and a programs "else" condition to run when you press the KPL buttons off? I am assuming the latter.

 

First, I suggest putting both KPL buttons into a scene, with both defined as controllers. The buttons also need to be in toggle mode, which is the default setting. This will keep the KPL buttons synced.

 

Second, set up a program without "if" conditions, having only the desired "then" (turn lights on, for example) and "else" (turn lights off, for example) actions.

 

Set up a second program. This program would look something like:

 

if

 

control KPL1 button X is switched on

or control KPL2 button X is switched on

 

then

 

run first program then condition

 

Set up a third program, similar to the second:

 

if

 

control KPL1 button X is switched off

or control KPL2 button X is switched off

 

then

 

run first program else condition

 

I suspect there are more efficient ways of doing this, but my brain is being lazy today.

Posted
Does this mean that you have a program running continuously, until you stop it? Or is it that you want a programs "then" condition to run when you press the KPL buttons on, and a programs "else" condition to run when you press the KPL buttons off? I am assuming the latter.

 

Yes the later. I think your suggestion makes sense, but I need to think about it, but I see what you are doing.

 

I am not sure that you need the 3rd program if you had:

 

if KPL #1 B is switched on

or KPL #2 B switched on

AND KPL #1 B is not switched off

AND KPL #2 B is not switched off

 

having the ELSE switch stop the program.

 

Make sense?

 

one question, if you had the two KPL in a scene as controllers and "turned off the scene" do the LED lites on the KPLs both go off?

 

 

Thanks

 

Joe

Posted
I am not sure that you need the 3rd program if you had:

 

if KPL #1 B is switched on

or KPL #2 B switched on

AND KPL #1 B is not switched off

AND KPL #2 B is not switched off

 

Your solution is one of the more efficient options that I mentioned, but was too lazy to figure out. Nice job.

 

one question, if you had the two KPL in a scene as controllers and "turned off the scene" do the LED lites on the KPLs both go off?

 

Exactly. And if you turned on the scene, they would both go on.

Guest
This topic is now closed to further replies.

×
×
  • Create New...