ZWave Lock Manager

Posted on
Sun Nov 20, 2016 10:46 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: ZWave Lock Manager

If you try to Get the PIN for a user code that doesn't have one:

Code: Select all
   Action Group                    Garage Door Clear User PIN
   Z-Wave Lock Manager Debug       clearUserPin action called
   Z-Wave Lock Manager Debug       Indigo lock selected: 1776291305
   Z-Wave Lock Manager             Clearing PIN for user 5
   Z-Wave                          sent "Garage Entry Door Lock" raw command [63 01 05 00]
   Z-Wave                          received "Garage Entry Door Lock" status update is on
   Z-Wave Lock Manager Debug       -----
   Z-Wave Lock Manager Debug       Lock Status Report received:
   Z-Wave Lock Manager Debug       Raw command: 01 0A 00 04 00 0A 04 71 05 21 05 FF
   Z-Wave Lock Manager Debug       Node:  10
   Z-Wave Lock Manager Debug       Type:  33
   Z-Wave Lock Manager Debug       User:  5
   Z-Wave Lock Manager             Status: User 5 removed from door [Node: 10]
   Z-Wave Lock Manager Debug       -----
   Action Group                    Garage Door Get User PIN
   Z-Wave Lock Manager Debug       getUserPin action called
   Z-Wave Lock Manager Debug       Indigo lock selected: 1776291305
   Z-Wave Lock Manager             Requesting PIN for user 5
   Z-Wave                          sent "Garage Entry Door Lock" raw command [63 02 05]
   Z-Wave Lock Manager Debug       -----
   Z-Wave Lock Manager Debug       User Code Status received:
   Z-Wave Lock Manager Debug       Raw command: 01 0A 00 04 00 0A 04 63 03 05 00 FF
   Z-Wave Lock Manager Debug       Node:  10
   Z-Wave Lock Manager Debug       User:  5
   Z-Wave Lock Manager Error       Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
  File "plugin.py", line 302, in zwaveCommandReceived
NameError: global name 'ind' is not defined


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 20, 2016 10:54 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

FlyingDiver wrote:
NameError: global name 'ind' is not defined

Typo fixed!

Posted on
Sun Nov 20, 2016 11:10 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: ZWave Lock Manager

Please add props.IsLockSubType to all the new Actions you just added. :)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 20, 2016 11:11 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Damn - I have to remove that when I'm testing cos I have no locks so no devices show up!


Sent from my iPhone using Tapatalk

Posted on
Sun Nov 20, 2016 11:14 am
aldera offline
User avatar
Posts: 188
Joined: Aug 30, 2016
Location: Michigan, USA

Re: ZWave Lock Manager

howartp wrote:
Damn - I have to remove that when I'm testing cos I have no locks so no devices show up!


Sent from my iPhone using Tapatalk


That has to suck having to write code when you don't have an actual device to work with. A WHOLE lot harder to debug. :)

Posted on
Sun Nov 20, 2016 2:42 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Too right :-(

I've some preformatted hex response codes copied from a users log, that I have stored in a test function - I can call that to mimic the core interaction you'd do with a lock, but it's not totally ideal. :-)


Sent from my iPhone using Tapatalk

Posted on
Sun Nov 20, 2016 3:50 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

v1.0.22 released which adds basic triggers.

I'm retiring to my bedroom now; might still be on Tapatalk for a bit, but won't be at my desk for the best part of 24 hours.

Peter

Posted on
Sun Nov 20, 2016 4:27 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: ZWave Lock Manager

Still not getting the "jammed" trigger.

Code: Select all
   Started plugin "Z-Wave Lock Manager 1.0.22"
   Z-Wave                          received "Garage Entry Door Lock" status update locked but bolt not fully extended (via keypad)
   Z-Wave Lock Manager Debug       -----
   Z-Wave Lock Manager Debug       Lock Status Report received:
   Z-Wave Lock Manager Debug       Raw command: 01 0A 00 04 00 0A 04 71 05 11 01 FF
   Z-Wave Lock Manager Debug       Node:  10
   Z-Wave Lock Manager Debug       Type:  17
   Z-Wave Lock Manager Debug       User:  1
   Z-Wave Lock Manager             Unknown lock status received: 17 [Node: 10]

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 20, 2016 5:19 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: ZWave Lock Manager

howartp wrote:
v1.0.22 released which adds basic triggers.

I'm retiring to my bedroom now; might still be on Tapatalk for a bit, but won't be at my desk for the best part of 24 hours.

Peter


Thanks for all your work on this Plugin. An act of generosity that so many of us appreciate.

Will PM you to offer many pints of thanks when my kids finally convince me that they will have a "cultural" experience (other than finding regional Pokemon) for a trip to your continent.

Posted on
Sun Nov 20, 2016 5:47 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Bottles / pints of Coca Cola always appreciated - I don't drink alcohol :-)

But you're all welcome - it's a while since I did any plugins and I've wanted to do one that's useful to more than just the odd person, without hopefully needing too much upkeep going forward.


Sent from my iPhone using Tapatalk

Posted on
Mon Nov 21, 2016 7:38 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: ZWave Lock Manager

I installed the last of the new locks yesterday and have them all programmed, thanks to this plug-in.

I now have a box of Morning Industries locks and Insteon MorningLincs looking for a good home...

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Mon Nov 21, 2016 11:58 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: ZWave Lock Manager

howartp wrote:
Bottles / pints of Coca Cola always appreciated - I don't drink alcohol :-)


Pepsi ok? ;)

You've done a great job with this. I'm finally back to a normal place so will finally get updated tonight and will of course list my many requests for you to do ;)

Computer says no.

Posted on
Mon Nov 21, 2016 12:42 pm
aldera offline
User avatar
Posts: 188
Joined: Aug 30, 2016
Location: Michigan, USA

Re: ZWave Lock Manager

Still new to Indigo and Python so not quite sure how to do this. I'm able to create Action Groups that can set a user PIN, get a user PIN and delete a user PIN using the plugin. However, you have to hard code the user/PIN in each case. I'd like to be able to create something where it asks me for the user and/or PIN before executing the command. For example, I'd like to be able to add a user and PIN code so that I could temporarily grant access to someone and then at a later time be able to delete that user. Is this possible, and if so, how? I'd really like to be able to do it from Indigo Touch on my iPhone.

My solution at present is to create an Action Group that sets a certain user (#10) and a PIN code for that user. I then have an Action Group to delete user #10 when the timeframe for that user is over. If it's a complicated procedure to do the above, then this will certainly work for me.

:-)

Posted on
Mon Nov 21, 2016 12:51 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Yes, there's currently no way to prompt at runtime.

Town-wide power cut right now due to rain/floods so won't be coding tonight!


Sent from my iPhone using Tapatalk

Posted on
Mon Nov 21, 2016 1:04 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: ZWave Lock Manager

A very long winded way could be if howartp (once he returns from 1842) could create a sync between a variable and a device code.. as you can modify variables in indigo touch that would work. Unless of course there's an it3 in the works that perhaps could do that ;)

Computer says no.

Who is online

Users browsing this forum: No registered users and 2 guests