Originally posted by sparkman
View Post
Announcement
Collapse
No announcement yet.
Z-Wave Lock Events Script - Discussion Thread
Collapse
X
-
Originally posted by JimiB View PostWhen the table displays on the virtual device I created for each lock, the right side of the table is truncated, even though there seems to be plenty of blank space on that section.
Here's my updated code.
Code:Dim tblHSTouch As String = "<table style='width:325px; table-layout:fixed'><tr><td style='width:180px'>Event</td><td style='width:80px'>Date</td><td style='width:65px'>Time</td></tr>"
Comment
-
Well that response didn't come out the way I wanted. Seems even though I put CODE tags around my code, the HTML tags are being interpreted anyway.
Let's try this:
Code:Dim tblHSTouch As String = "[LT]table style='width:325px; table-layout:fixed'[GT] [LT]tr[GT] [LT]td style='width:180px'[GT]Event[LT]/td[GT] [LT]td style='width:80px'[GT]Date[LT]/td[GT] [LT]td style='width:65px'[GT]Time[LT]/td[GT] [LT]/tr[GT]"
Comment
-
Schlage Deadbolt
Hi There,
I'm very new so forgive the Newb questions. I'm trying to configure this, and I think I getting there, but I've got some questions.
I'm using the Schlage Deadbolt. In the Log file, it shows the Manual Unlock or Lock operation, but I'm not getting a log entry when it Locks using the Schlage Button.
Do I need to create a Virtual Device for Each lock? (I have 4 of them)
I have the email feature enabled, but it doesn't send an email. Is there something Homeseer I need to configure? I did setup the email under configuration, to use Gmail, but still no emails get sent. I do plan on using the Pushover script as well, but wanted to get this working just to learn.
I've also attached my log file if it helps
I'm using the Reference ID for Access Control Notification:
Comment
-
Originally posted by Ramses View PostI'm using the Schlage Deadbolt. In the Log file, it shows the Manual Unlock or Lock operation, but I'm not getting a log entry when it Locks using the Schlage Button.
Also, on my formatting code posted this thread earlier today, that only works correctly if you do not use "Floor" in your devices. I only need "Room" so have removed Floor from the display, giving me more space for the Status field to display. My table sizing edits assume that space.
Comment
-
Originally posted by Ramses View PostHi There,
I'm very new so forgive the Newb questions. I'm trying to configure this, and I think I getting there, but I've got some questions.
I'm using the Schlage Deadbolt. In the Log file, it shows the Manual Unlock or Lock operation, but I'm not getting a log entry when it Locks using the Schlage Button.
Do I need to create a Virtual Device for Each lock? (I have 4 of them)
I have the email feature enabled, but it doesn't send an email. Is there something Homeseer I need to configure? I did setup the email under configuration, to use Gmail, but still no emails get sent. I do plan on using the Pushover script as well, but wanted to get this working just to learn.
I've also attached my log file if it helps
I'm using the Reference ID for Access Control Notification:
Cheers
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Schlage Status
Hey sorry for the late response, was traveling, I just tried JimiB's suggestion, of a value of 5 "Locked with Schlage Button" and that works. I can setup debugging if you'd like to see if it's possible to do it another way. I did do a Manual Lock and unlock but still no email. Is it using Homeseer to send the email? I'm not even sure I got homeseer sending emails yet, never tested it out yet
Comment
-
Originally posted by Ramses View PostHey sorry for the late response, was traveling, I just tried JimiB's suggestion, of a value of 5 "Locked with Schlage Button" and that works. I can setup debugging if you'd like to see if it's possible to do it another way. I did do a Manual Lock and unlock but still no email. Is it using Homeseer to send the email? I'm not even sure I got homeseer sending emails yet, never tested it out yet
Yes, it's using HS to email. Just create an event to send an email and make sure that's working first.
Sent from my Phone using TapatalkHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Limited functionality
Sparkman,
First, thanks for the script. It seems to be exactly what I am looking for.
I have the script installed and most of the right stuff is happening but there is one thing that I can't seem to get working.
Whenever I enter a code in the Kwikset lock at the front door (this is my only lock), I don't get the line in the log that states who unlocked the door.
Here is a sample of what I see in my virtual device.
Event Date Time
Locked by Z-Wave (24) 2016-12-03 21:45:51
User Code Entered (1) 2016-12-03 21:40:47
Locked by Button (18) 2016-12-03 21:40:39
Unlocked by Lever (22) 2016-12-03 21:40:29
Locked by Lever (21) 2016-12-03 21:39:26
User Code Entered (1) 2016-12-03 21:39:21
Locked by Button (18) 2016-12-03 21:39:11
Unlocked by Lever (22) 2016-12-03 21:39:02
Locked by Z-Wave (24) 2016-12-03 21:32:17
User Code Entered (1) 2016-12-03 21:27:01
Please let me know any other info you need and I will gladly reply with it.
Thanks ahead of time!
eFusion
Comment
-
Very strange behavior
OK, I have HS3 latest version and I have a Kwikset lock.
What I have determined is that the value that is being sent to the notification device when I enter a code is not 5XX (501, 502, etc) but is 1, 2, etc.
I have messed around with the offset in the status graphics user codes area by changing the offset to 0 instead of 500 to try and get homeseer to tell your script that the value of the notification device is 501 instead of 1 but a "person" is not recognized and it skips this entry in the log.
Oddly enough, when I update the door lock logging for the latest entry, it states that user code 1 was entered (or whatever user code I used).
The only way I have been able for your script to recognize a "person" is if I change the case values to 1, 2, etc. When I do this, whether or not I have an offset of 500 or 0 in the status graphics, your script shows a "person" entry and I hear "efusion unlocked the door" on the speaker. Great! However, this is a problem because it recognizes common status entries like "18 Locked by Button" as a "person" since it is captured in the range 5-30 and enters that as "someone else unlocked the door."
Long story short, how do I get your script to recognize the 501 instead of the 1? Am I supposed to have an offset of 500 like the default states? What about the checkmark "has additional data"? Should that be checked? I am asking all of this because I am seeing a lot of posts with status graphics print screens for schlage and yale but there actually isn't one for Kwikset. Could someone post theirs?
Finally, just to make things more complicated, I am not receiving any email or pushover notifications either.
Sorry I am rambling, it is late and I have been monkeying around with this for about 4 hours now.
Comment
-
Originally posted by eFusion View PostSparkman,
First, thanks for the script. It seems to be exactly what I am looking for.
I have the script installed and most of the right stuff is happening but there is one thing that I can't seem to get working.
Whenever I enter a code in the Kwikset lock at the front door (this is my only lock), I don't get the line in the log that states who unlocked the door.
Please let me know any other info you need and I will gladly reply with it.
Thanks ahead of time!
eFusion
Cheers
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Originally posted by eFusion View PostThanks for the quick response!
Hopefully you can read this. If not, I will break it up in to smaller sections.
Cheers
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Al,
Before I try that, I wanted to let you know what I am doing because I am aware of the 2 second delay between scripts running:
I unlock the front door from the inside manually
I open the door and go outside and shut the door
I press the lock button and wait for the lock to lock (this takes a few seconds)
I enter a code and wait for the door to unlock
I open the door and go inside and shut the door
I then go to my laptop on the back porch to see what happened
Keep in mind from a previous post that if I change your script as follows, it works:
Original Script
Case 501
Person = "John"
Case 502
Person = "Jacob"
Case 503
Person = "Jingleheimer"
Case 504
Person = "Schmidt"
Case 505 To 530
'Person = "Someone Else"
My changes
Case 1
Person = "John"
Case 2
Person = "Jacob"
Case 3
Person = "Jingleheimer"
Case 4
Person = "Schmidt"
!Case 505 To 530
!'Person = "Someone Else"
For some odd reason, your script is receiving a 1 instead of a 501 and so on for the user codes.
Is there something I can do further to debug such as capture the value that is being sent by the lock or change the parameters on the lock to send the info correctly?
I really appreciate you spending a little bit of time on this. I am fairly new to homeseer.
Comment
Comment