Announcement

Collapse
No announcement yet.

How to toggle Kwikset lock status??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to toggle Kwikset lock status??

    I'd like to setup an event or script to toggle the status of my Z-Wave Kwickset locks (lock if unlocked / unlock if locked). Can someone help with an example of how I'd set this up?

    Thanks!

    -Mike

    #2
    I'm struggling with this too. Driving me bananas!

    Comment


      #3
      Here's my shot at this but of course it's not working.


      Sub Main
      &If (hs.deviceStatus("Q19")=255) Then : hs.Transmit "Q19" "0"
      Else : hs.Transmit "Q19" , "255"
      End Sub

      No idea what I'm doing though :bag:

      Comment


        #4
        Now I've got this, but I've still got nothing working

        Sub Main
        If (hs.deviceStatus("Q19") = 255) Then : hs.Transmit "Q19","0"
        Else : hs.Transmit "Q19","255"
        End Sub

        Comment


          #5
          I created events with manual trigger only and with actions to lock/unlock the doors, then run these in a script:

          hs.TriggerEvent("Lock Interior Garage Door")
          hs.TriggerEvent("Lock Front Door")
          hs.TriggerEvent("Unlock Interior Garage Door")
          Attached Files
          Mike

          Comment


            #6
            Originally posted by mwaite View Post
            I created events with manual trigger only and with actions to lock/unlock the doors, then run these in a script:

            hs.TriggerEvent("Lock Interior Garage Door")
            hs.TriggerEvent("Lock Front Door")
            hs.TriggerEvent("Unlock Interior Garage Door")
            The trouble here is I would like to make a single button in HSTouch that toggles locked/unlocked. So I need one that toggles it to the oposite state. (I'll also figure out how to toggle the associated image on the button, so that it shows a lock vs. unlock image upon status change).

            I tried doing this with conditions in events, tried doing it with a virtual device I created to use as a flag, and can't seem to get this to work properly any other way. Seems a script is easiest/cleanest. (If I can get it to actually work...)

            Comment


              #7
              Well, I got the script running without errors, but it isn't changing the lock status. But no more red in my log window!


              Sub Main
              If hs.DeviceStatus("Q22") = 0 Then
              hs.Transmit "Q22","Locked","255"
              Else
              hs.Transmit "Q22","Unlocked","0"
              End If
              End Sub

              Comment


                #8
                After testing, this code brings up the proper message box. So it seems like my transmit to the lock is the only problem. Any ideas? Thx!


                dim A
                A = hs.DeviceValue("Q22")

                If A = 255 Then
                hs.Transmit "Q22","0"
                'hs.setDeviceValue "Q22",0
                MsgBox("LOCKED --> UNLOCKING")
                Else
                hs.Transmit "Q22","255"
                'hs.setDeviceValue "Q22",255
                MsgBox("UNLOCKED --> LOCKING")
                End If

                Comment


                  #9
                  Looks like I'm not the only who who has had this problem.

                  http://board.homeseer.com/showthread...hlight=kwikset

                  I guess there's no way to operate the lock via script? Seems odd.

                  Comment


                    #10
                    Originally posted by mwaite View Post
                    I created events with manual trigger only and with actions to lock/unlock the doors, then run these in a script:

                    hs.TriggerEvent("Lock Interior Garage Door")
                    hs.TriggerEvent("Lock Front Door")
                    hs.TriggerEvent("Unlock Interior Garage Door")
                    DOH
                    I just realized what you are saying here -- I used these in my scripts instead and it works. Thanks!

                    Comment


                      #11
                      Just curious....why do you want to toggle? I would think you would want to set it to a specific condition based on a specific circumstances.

                      Comment


                        #12
                        Originally posted by AO! View Post
                        Just curious....why do you want to toggle? I would think you would want to set it to a specific condition based on a specific circumstances.
                        Save button real estate on an iPhone screen for HSTouch. Right now all the lights are controlled by the little light bulb icons -- the icon both gives you the current status and also lets you toggle the status. Just wanted something like that for the front door lock.

                        Comment


                          #13
                          Did a solution on how to "transmit" commands to door locks from scripts ever get identified?

                          Comment

                          Working...
                          X