Jump to content

Check status of KeypadLinc button


starhome

Recommended Posts

I want to have the "house" wake me up (lights on, music on) by enabling this using a keypadlinc button.

 

So what I really want is to have a program with the following condition

 

if 'bedroom - keypad button A' is turned on

and Time is 6:30:00AM

then run program 'Music on (then Path)'

 

but it never trigger the program.I assume you cannot simply look for a keypad button state (as it doesn't show up in the device status) so I'm looking for the proper/recommended what of doing this..

 

Thanks!!

 

btw, I installed my ISY994 about 2 weeks ago and it's been pretty awesome so far. Got the network module and weather module as well. Support on the forum here has been top notch!!!

Link to comment

That If (besides being syntactically incorrect, always best to post the actual Program) requires KPL button A to be On at 6:30 AM. Turning the button On after 6:30 AM does not trigger the Then clause.

 

An If Status "kplbuttonA" is On is the correct way of checking if a button is On. If that does not work run Tools | Diagnostics | Event Viewer at LEVEL 3 to see if an event is traced when KPL button A is turned On. Also the button Current State column should cycle from Off to On to Off as the button is turned On/Off.

Link to comment

I think you can approach this with a variable. Create a state variable name whatever you like. Then have a program if kpl is on then set state variable =1. Then have a program if state variable=1 and time is 630 then. ......

Since I am not a variable expert, I do believe it is a state variable, not integer.

Eric

Link to comment

EircK-

 

You are correct that it would need to be a state variable as a state variable will trigger a program on a change in value just like a device will trigger on a change in status. In this case there would be no difference between the status of the button and the state of the variable. Adding the variable is just an extra wasted step. You would be monitoring the status of the KPL to set the variable then using the variable change and time to drive the lights. Might as well just use the button status and the time to accomplish the same end goal with fewer programs. Does that make sense?

 

starhome-

 

Your KPL buttons should have a state in the console and you can look for the status in programs as follows:

 

If 

  Time is 6:30am
  and Status MBR_KPL-D is On

Then

 

As Lee pointed out above, this approach would require that the KPL button be on at 6:30 for to happen. If you would like to have the happen between 6:30 am and some later time when turning the button On, you could change the time component of the IF to a range instead:

Time is From 6:30am To 10:00am (Same Day)

 

To take this all a step further, you could add a function to the KPL button being turned off or the end time of the range arriving as follows:

If 
  Time is from 6:30am to 10:00am (Same Day)
  and Status MBR_KPL-D is On
  and Control MBR_KPL-D is not switched Off

Then


Else

In the above program, turning off the KPL button anytime will as well as the arrival of the 10am end time.

 

Hope this helps.

 

-Xathros

Link to comment

Lee/Xathros/EircK thanks for the help so far. Tricky part is that they KPL button is also part of a scene (in order to turn the button off) and in that case there is no "On" value available..

 

I tried "Not Off", but this does not seem to work. I will post the event logs tonight once I'm home.

Link to comment

Does the KPL and all of its buttons appear in the admin console? If so, what do you mean the button has no "On" value? If it is a KPL Dimmer, the button A (KPLD8) or On Button (KPLD6) value should be somewhere between 0% (Off) and 100% (On). If it is a relay device it should only be capable of 0% or 100%. The non-load buttons should only be capable of On/Off. Being a scene member does not make a device not have a status.

 

-Xathros

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.3k
×
×
  • Create New...