Announcement

Collapse
No announcement yet.

Z-Wave Lock Events Script

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

  • #16
    Originally posted by sparkman View Post
    Give the attached a try. Rename it to doorlock.vb.

    Cheers
    Al
    Sparkman - THANKS!!! - this is working pretty well even though it was my first ever script plug in!

    It emails all events if I plug in here perfectly even with my new edits. QUESTION: User 1005 Clark shows in log if code is input to UNLOCK. But in LOCK log, simply shows up as (22). Yale numbers their unlock user codes to unlock code (1005) plus 17 minus 1000 = 22

    Case 22 'Clark(1005) locked
    Alert = "Clark locked front door."
    Case 1005 'Clark(1005) unlocked
    Alert = "Clark unlocked front door."
    Case 140 'Deadbolt Jammed
    Alert = "did not lock properly."
    Is there a way to have script reflect in actual log that Jim unlocked door - currently it just shows Jim(1002) or (19) with no reference to lock or unlock

    If there was a way to assign a second number to persons for unlocking, that would solve things too. Perhaps like this:
    Case 1002
    Person = "Jim Unlocked"
    Case 19
    Person = "Jim Locked"
    Case 1003
    Person = "Krista"
    Case 1004
    Person = "Graedon"
    Case 1005
    Person = "Clark Unlocked"
    I have attached a lock log for you to see what I mean.
    Now to try and get this log window to display in HS3Touch
    Attached Files
    Jim
    ----
    Plugins:Z Wave 3.0.1.55, HS3 Pro 3.0.0.208, HS3Touch, HS3Touch IOS, Z-Net, SceneMaster, XBMC, Sonos, Media Controller, Envisalink (52 Virtual nodes), JowiHue, EasyTrigger, Liftmaster MyQ, BLBackup, BLLAN, BLRadar, Pushover

    Devices:Cooper RF9540, Cooper Scene, Yale Locks, Sonos, Phillips Hue and Lux, DSC, Somfy Blinds

    Comment


    • #17
      Originally posted by 519zwave View Post
      Sparkman - THANKS!!! - this is working pretty well even though it was my first ever script plug in!

      It emails all events if I plug in here perfectly even with my new edits. QUESTION: User 1005 Clark shows in log if code is input to UNLOCK. But in LOCK log, simply shows up as (22). Yale numbers their unlock user codes to unlock code (1005) plus 17 minus 1000 = 22

      Case 22 'Clark(1005) locked
      Alert = "Clark locked front door."
      Case 1005 'Clark(1005) unlocked
      Alert = "Clark unlocked front door."
      Case 140 'Deadbolt Jammed
      Alert = "did not lock properly."
      Is there a way to have script reflect in actual log that Jim unlocked door - currently it just shows Jim(1002) or (19) with no reference to lock or unlock

      If there was a way to assign a second number to persons for unlocking, that would solve things too. Perhaps like this:
      Case 1002
      Person = "Jim Unlocked"
      Case 19
      Person = "Jim Locked"
      Case 1003
      Person = "Krista"
      Case 1004
      Person = "Graedon"
      Case 1005
      Person = "Clark Unlocked"
      I have attached a lock log for you to see what I mean.
      Now to try and get this log window to display in HS3Touch
      Glad it's working for you. Yes, your last suggestion is exactly what's needed. I've attached an updated script including that.

      Cheers
      Al
      Last edited by sparkman; May 28th, 2015, 07:04 PM. Reason: Removed attachment. Attachment in first post has been updated to support Yale locks
      HS 3.0.0.548: 1965 Devices 1146 Events
      Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

      Comment


      • #18
        Al, I was eventually able to get this working but it took a while since HS3 stopped processing events on me for almost a day until I figured out that was the case. Once I restarted (actually had to kill it) HS3 the events started processing again and then I could concentrate on getting this working. So thanks for your help.

        Comment


        • #19
          Here's the Schlage BE469 series
          Attached Files
          Ubuntu 16.10 (64) | HSPro 3.0.0.297 | Z-Wave 3.0.1.124 | Server .94 | BL BackUp | BLOccupied | BLLock | Media Controller | Jowi HUE | HSTouch | DSC-Envisalink | I-Tunes DAAP | DirecTV | Restart | Honeywell WiFi | Weather XML | RFX Com | + Android .117 : IOS 8

          Comment


          • #20
            Script has been updated to support Schlage & Yale locks. The script is in the first post.

            Cheers
            Al
            HS 3.0.0.548: 1965 Devices 1146 Events
            Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

            Comment


            • #21
              Script has been updated. See Post #1 for the new file and details. The script now requires 4 parameters rather than 3. The 4th parameter is the lock type which allows the script to be used if you have more than one brand/type of lock.

              Cheers
              Al
              HS 3.0.0.548: 1965 Devices 1146 Events
              Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

              Comment


              • #22
                Why did Hs3 stop processing events - I'm in same boat and can't figure it out?

                Originally posted by Gunneyk View Post
                Al, I was eventually able to get this working but it took a while since HS3 stopped processing events on me for almost a day until I figured out that was the case. Once I restarted (actually had to kill it) HS3 the events started processing again and then I could concentrate on getting this working. So thanks for your help.
                I entered event as it appears in 1st post. I can run it manually and it works. But it doesn't fire when I change the lock notification...ideas?

                Comment


                • #23
                  Originally posted by dmurphy View Post
                  I entered event as it appears in 1st post. I can run it manually and it works. But it doesn't fire when I change the lock notification...ideas?
                  Sorry, looks like I missed your post. Did you get this resolved? If not, can you post the screenshot of your lock's notification device's advanced tab and status graphics tab as well as a screenshot of your event?

                  Cheers
                  Al
                  HS 3.0.0.548: 1965 Devices 1146 Events
                  Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

                  Comment


                  • #24
                    The doorlock script has been updated significantly and can be downloaded from Post#1: http://board.homeseer.com/showpost.p...47&postcount=1. Instructions are there as well.

                    The main changes are:
                    • The logging is now done to a SQLite database file, rather than text files. This eliminates the file locking issues in previous versions.
                    • All configuration parameters are now in an INI file, rather than in the script itself.
                    • All configuration parameters can be configured from a web page (or manually in the INI file).
                    • Needed files are created automatically, no need to create manually anymore.
                    • More flexibility on which lock events you get notified for.
                    • Supports any kind of lock with a notification device. No need for customization for specific locks.



                    If you are migrating from a previous version, then:
                    • Make a copy of your current doorlock.vb file so that you can reference the configuration settings in it.
                    • Update the event(s) that call the script to just pass a single parameter to it (the Door Name).


                    Please post comments, questions, etc. in this thread: http://board.homeseer.com/showthread.php?t=174916.

                    Cheers
                    Al
                    HS 3.0.0.548: 1965 Devices 1146 Events
                    Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

                    Comment

                    Working...
                    X