Jump to content

Programming the Status of a KPL Button?


smokegrub

Recommended Posts

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?

Posted
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

Posted

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.

Posted

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

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...