Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

simple task, but need some advice

Featured Replies

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

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.

  • Author
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

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.

  • Author

Perfect, Thanks! You brain food gave mine nourishment it needed to take it the rest of the way.

 

Thanks!

  • Author

Thanks oberkc, all worked fine!

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.