Announcement

Collapse
No announcement yet.

Z-Wave Lock Events Script - Discussion Thread

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

    #46
    no additional info in the log. everything else has to do with my other devices.

    BTW thanks for your assistance and quick responses.
    Attached Files
    Last edited by doomngloom; May 16, 2016, 12:06 PM.

    Comment


      #47
      Can you change the line
      Code:
      Dim Debug As Boolean = False
      to
      Code:
      Dim Debug As Boolean = True
      and post the log snippet from when it runs?
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #48
        Here you go.
        Attached Files

        Comment


          #49
          What's the reference ID of your lock's notification device and what's the reference ID of the control device?
          HS 4.2.8.0: 2134 Devices 1252 Events
          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

          Comment


            #50
            Lock Notification reference id 166 control device reference id 162

            to confirm, that's the ref= in the uri correct.

            Comment


              #51
              wow. thanks for helping me. i got it fixed.

              the issue was i put in for the notification parameter the virtual device not the notification device. once i entered the notification device into the parameter it worked immediately. Stupid user error

              Comment


                #52
                Originally posted by doomngloom View Post
                wow. thanks for helping me. i got it fixed.

                the issue was i put in for the notification parameter the virtual device not the notification device. once i entered the notification device into the parameter it worked immediately. Stupid user error
                Great, glad you got it working.

                Cheers
                Al
                HS 4.2.8.0: 2134 Devices 1252 Events
                Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                Comment


                  #53
                  Originally posted by sparkman View Post
                  By default, the script will only send emails for warnings and errors. It won't sent an email for lock/unlock events. If you want that, the script will need to be modified. Let me know and I can help with that.

                  Cheers
                  Al
                  Al, will this work as well for enabling the script to email events? What if we add this following:

                  Dim EventEmail As String = "email@email.com"
                  ...
                  ElseIf Person <> "" Then 'unlock announcements
                  If Speak Then hs.speak(Person & " has unlocked the " & lock,False)
                  If email Then hs.SendEmail(EventEmail,FromEmail,"","","Door Unlocked - " & lock,lock & " " & Person,"")
                  If Pushover Then hs.RunScriptFunc("pushover.vb", "Main", "Door Unlocked - " & lock & "|" & Person & " has unlocked the " & lock & "|" & "low|none" , False, False)
                  End If
                  Last edited by Sireone; May 19, 2016, 05:55 AM.

                  Comment


                    #54
                    For simplicity I personally just added the line "Alert" under the person line. That sends out the email for me.
                    Case 501
                    Person = "xxxx"
                    Alert = "Unlocked by xxxxx's Code"

                    Comment


                      #55
                      also you might need to add the below.
                      Dim Email As String = ""

                      Comment


                        #56
                        Originally posted by Sireone View Post
                        Al, will this work as well for enabling the script to email events? What if we add this following:

                        Dim EventEmail As String = "email@email.com"
                        ...
                        ElseIf Person <> "" Then 'unlock announcements
                        If Speak Then hs.speak(Person & " has unlocked the " & lock,False)
                        If email Then hs.SendEmail(EventEmail,FromEmail,"","","Door Unlocked - " & lock,lock & " " & Person,"")
                        If Pushover Then hs.RunScriptFunc("pushover.vb", "Main", "Door Unlocked - " & lock & "|" & Person & " has unlocked the " & lock & "|" & "low|none" , False, False)
                        End If
                        Yes, something like that should work. I've been thinking of redoing the script completely to make it easier to setup and to deal with some other issues with it, so if there are any requests or suggestions, let me know.

                        Cheers
                        Al
                        HS 4.2.8.0: 2134 Devices 1252 Events
                        Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                        Comment


                          #57
                          I had a question. Is there a specific reason to use a virtual device for the logging history vs using the automatically added Door Lock Logging device Homeseer added when I added my kwikset device?

                          Comment


                            #58
                            Originally posted by sparkman View Post
                            Yes, something like that should work. I've been thinking of redoing the script completely to make it easier to setup and to deal with some other issues with it, so if there are any requests or suggestions, let me know.

                            Cheers
                            Al
                            That would be great. I'll try both methods now.

                            Comment


                              #59
                              Originally posted by doomngloom View Post
                              For simplicity I personally just added the line "Alert" under the person line. That sends out the email for me.
                              Case 501
                              Person = "xxxx"
                              Alert = "Unlocked by xxxxx's Code"
                              This worked like a champ. Didn't need to declare the Email variable.

                              Thanks,

                              -Devon

                              Comment


                                #60
                                Originally posted by doomngloom View Post
                                I had a question. Is there a specific reason to use a virtual device for the logging history vs using the automatically added Door Lock Logging device Homeseer added when I added my kwikset device?
                                It was intended to be used in HSTouch or other interfaces and show the last 10 lock events. Most logging child devices will only show the last event.

                                Cheers
                                Al
                                HS 4.2.8.0: 2134 Devices 1252 Events
                                Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                                Comment

                                Working...
                                X