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.

Programming the Status of a KPL Button?

Featured Replies

Posted

I am trying to write a program that does the following:

If KPL button D is on, turn devices B and C on. Wait 2 minutes and turn device C off. I am able to program that successfully but after device C turns off I would like to program KPL button D to go to its off state. Is that possible? If so, how?

Place KPL Button D into a Scene as a Responder and turn that scene off to make the LED light go out.

If KPL button D is on, turn devices B and C on. Wait 2 minutes and turn device C off. I am able to program that successfully but after device C turns off I would like to program KPL button D to go to its off state. Is that possible? If so, how?

 

So, when someone turns on KPL D, you want it to turn off after two minutes, along with KPL C? OK. You did not state what you want to happen if KPL turns off during the two-minute timer, so I will make no assumptions.

 

If

Status KPL D is on

then

set KPL C on

set KPL B on

wait 2 minutes

set KPL C off

set KPL D off

else

nothing

  • Author

oberkc:

 

That is precisely what I am trying to do but I cannot find the KPL Off command. Where is it located?

Ah, yes. My fault. I always forget this problem.

 

Secondary buttons cannot be controlled directly, unfortunately. They have to be put into a scene. If need be, create a scene with a single device: the KPL button. The program would then be:

 

if

status KPLD is on

then

set scene with KPLC on

set scene with KPLB on

wait 2 minutes

set scene with KPLC off

set scene with KPLD off

else

nothing

 

sorry for my forgetfulness.

  • Author

Will this variation of your suggestion work?

 

if

status KPLD is on

then

set device C on

set device B on

wait 2 minutes

set device C off

set scene with KPLD off

else

nothing

Yes, if device B and device C have nothing to do with a KPL button.

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.