ZWave Lock Manager

User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: ZWave Lock Manager

Post by FlyingDiver »

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
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

FlyingDiver wrote:NameError: global name 'ind' is not defined
Typo fixed!
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: ZWave Lock Manager

Post by FlyingDiver »

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
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

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
User avatar
aldera
Posts: 229
Joined: Tue Aug 30, 2016 11:30 am
Location: Michigan, USA

Re: ZWave Lock Manager

Post by aldera »

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. :)
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

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
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: ZWave Lock Manager

Post by FlyingDiver »

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
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: ZWave Lock Manager

Post by eme jota ce »

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.
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

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
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

Re: ZWave Lock Manager

Post by Bollar »

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
User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: ZWave Lock Manager

Post by durosity »

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.
User avatar
aldera
Posts: 229
Joined: Tue Aug 30, 2016 11:30 am
Location: Michigan, USA

Re: ZWave Lock Manager

Post by aldera »

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.

:-)
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: ZWave Lock Manager

Post by howartp »

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
User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: ZWave Lock Manager

Post by durosity »

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.
Post Reply

Return to “ZWave Lock Manager”