Jump to content

Programming the Status of a KPL Button?


smokegrub

Recommended Posts

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?

Link to comment
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

Link to comment

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.

Link to comment

Archived

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


  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...