Jump to content

Lock programming


TheWabit

Recommended Posts

Posted

Hello -

 

I am wanting to program a light to come on when the Schlage lock is unlocked with the keypad. I noticed the option to do that if I use "Control" in the if line. But did I remember reading (i cant find it) that you have to use "Status" with a lock only? In that case the only option is just "Unlock". So that would mean the the light would come on when I unlock it from the inside. Ideally, I would like this to happen only when using the keypad.

Posted

My limited experience with Z-wave devices suggests that "status" is the only condition that can be use with some.  I have a switch, for example, that does not trigger "control" conditions.  Whether your particular lock is so limited...I suggest running your own experiment.  Create a program based on "control" of the lock and see if it triggers from an unlock event.  If not, try status.  Much of what I have learned has been by similar experiments.

 

Whether or not this could be limited to just keypad actuation is likely a feature of the lock, and not something that could be distinguished by the ISY separately from some other method (my best guess).

Posted

So I have had the same experience while experimenting with "Control" vs "Status". Status works - Control doesn't.

BUT I am now having trouble with it turning off after 3 minute. Do you see why this program wouldn't work? Specifically, why it wont turn off?

I have the lock set internally to re-lock after 30 seconds. Do I need to have that happen through the ISY?

 

 

Front Door Unlock Lightup - [iD 003B][Parent 0001]
If
        From     7:45:00PM
        To       3:00:00AM (next day)
    And Status  'ZW 002 Schlage Door Lock' is Unlocked
 
Then
        Set Scene 'Dining Room' On
        Wait  3 minutes
        Set Scene 'Dining Room' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
Posted (edited)

BUT I am now having trouble with it turning off after 3 minute. Do you see why this program wouldn't work? Specifically, why it wont turn off?

I have the lock set internally to re-lock after 30 seconds. Do I need to have that happen through the ISY?

After 30 seconds, the lock re-locks itself, and Status changes to "Locked" so program is terminated before it can reach the end of the Wait time.

 

To confirm this, temporarily add "Set Scene 'Dining Room' Off" to the Else clause, you should see the light turn off when the lock changes state back to Locked.

 

Do I need to have that happen through the ISY?

 

If you disable the 30-second re-lock, you could get the results you are looking for with this program.  

Front Door Unlock Lightup - [ID 003B][Parent 0001]
If
        From     7:45:00PM
        To       3:00:00AM (next day)
    And Status  'ZW 002 Schlage Door Lock' is Unlocked
 
Then
        Set Scene 'Dining Room' On
        Wait  3 minutes
        Set Scene 'Dining Room' Off
        Set 'ZW 002 Schlage Door Lock' to Locked
 
Else
   - No Actions - (To add one, press 'Action')

Comment
          (Make sure the command to lock the lock is the final line of the Then clause)
 

There are other ways to accomplish what you are looking for by using a second program.

Edited by KeviNH
Posted

One more question -  I dont want to trigger this program if the light is already switched on. Does the below look correct? Or do I need parens?

 

 

Front Door Unlock Lightup - [iD 003B][Parent 0001]
If
        From     7:45:00PM
        To       3:00:00AM (next day)
    And Status  'ZW 002 Schlage Door Lock' is Unlocked
    And Control 'Dining Room Switchlinc' is not switched On
 
Then
        Set Scene 'Dining Room' On
        Wait  3 minutes
        Set Scene 'Dining Room' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
  • Like 1
Posted

With my Kwikset deadbolt, I have some Control actions.   Here is my program that turns on a light:

If
         'Entry / Front Door Lock' is switched Alarm Unlocked by Keypad
    Or 'Entry / Kitchen Door Lock' is switched Alarm Unlocked by Keypad
 
Then
        Run Program 'Home Lights' (If)
 
Else
   - No Actions - (To add one, press 'Action')

So if I wanted a time limit and light restriction, it would be:

Either Door PIN code 1 Copy - [ID 00B6][Parent 0080]
 
If
        (
             From     7:45:00PM
             To       3:00:00AM (next day)
         And 'Downstairs / Entry1' Status is Off
        )
    And (
             'Entry / Front Door Lock' is switched Alarm Unlocked by Keypad
          Or 'Entry / Kitchen Door Lock' is switched Alarm Unlocked by Keypad
        )
 
Then
        Run Program 'Home Lights' (If)
 
Else
   - No Actions - (To add one, press 'Action')
Posted

One more question -  I dont want to trigger this program if the light is already switched on. Does the below look correct? Or do I need parens?

 

If

From 7:45:00PM

To 3:00:00AM (next day)

And Status 'ZW 002 Schlage Door Lock' is Unlocked

And Control 'Dining Room Switchlinc' is not switched On

 

No need for parens ,a chain of "And" statements is fine.

 

In order to avoid to triggering this program if the light is already switched, I'd suggest changing "And Control 'Dining Room Switchlinc' is not switched On" to "And Status 'Dining Room Switchlinc' is Off".

Posted

I have been tinkering around with my system and checked on my schlage lock.  It DOES appear to trigger programs via "control" condition, and DOES appear to have ability to distinguish between manual and keypad actions. 

Posted

I have been tinkering around with my system and checked on my schlage lock.  It DOES appear to trigger programs via "control" condition, and DOES appear to have ability to distinguish between manual and keypad actions. 

 

I will try it again - mine did not last night. Status works good though. oberkc - do you have the 469?

Posted

Mine is the 468 "camelot". It is hard to imagine that they would be different other than cosmetically.

 

I will double check later to be sure.

Posted

So doing some more testing - the following program DOES work great (using Control) without the "and dining switchlinc is off". But when I put that back in, the light does NOT turn off after 15 seconds. What am I missing?

 

 

Front Door Unlock Lightup - [iD 003B][Parent 0001]
If
        From    10:45:00AM
        To       3:00:00AM (next day)
    And Control 'ZW 002 Schlage Door Lock' is switched Unlocked by Keypad
    And Status  'Dining Room Switchlinc' is Off
 
Then
        Set Scene 'Dining Room' On
        Wait  15 seconds
        Set Scene 'Dining Room' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
Posted

It doesn't turn off because the program triggers, begins running, and now the device 'Dining Room Switchlinc' is now on..

So now when it hits the wait, the program is reevaluated, and it reevaluates to false ( The "Status 'Dining Room Switchlinc is Off" is not true any longer).

 

You could have this program call another program to do what you want.

Posted

I changed it to the following and it works great:

 

 

Front Door Unlock Lightup - [iD 003B][Parent 0001]
If
        From    10:45:00AM
        To       3:00:00AM (next day)
    And Control 'ZW 002 Schlage Door Lock' is switched Unlocked by Keypad
    And Status  'Dining Room Switchlinc' is Off
 
Then
        Run Program 'Front Door Unlock Light-up 2' (Then Path)
 
Else
   - No Actions - (To add one, press 'Action')
 
 

 

 

Front Door Unlock Light-up 2 - [iD 003E][Parent 0001]
If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Set Scene 'Dining Room' On
        Wait  15 seconds
        Set Scene 'Dining Room' Off
 
Else
   - No Actions - (To add one, press 'Action')
Guest
This topic is now closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...