Error When Trying to Add a Lock Code

eric
Posts: 81
Joined: Mon Dec 22, 2014 12:23 pm

Error When Trying to Add a Lock Code

Post by eric »

This has worked up to the latest release, I believe. But now, with 3.0,64 when I try to add a lock code to my Yale z-wave locks I get this in the log:
Z-Wave Lock Manager Error Error in plugin execution ExecuteAction:

File "plugin.py", line 181, in setUserPin
File "plugin.py", line 828, in setPin
File "plugin.py", line 234, in getPinStr
type: name 'xrange' is not defined
Any ideas?

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

Re: Error When Trying to Add a Lock Code

Post by howartp »

That's very likely; xrange is a line of code another user taught me years ago and i've never touched it for fear of breaking it.

It's in the same sort of area of bytes vs strings that Py3 has broken so it's likely related.

I'll do some diggering.

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

Re: Error When Trying to Add a Lock Code

Post by howartp »

Fixed in v3.0.65
CliveS
Posts: 864
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Error When Trying to Add a Lock Code

Post by CliveS »

Peter, just updated to 3.0.65 and getting

Code: Select all

28 May 2022 at 13:48:28
   Hubitat Bridge                  received "T Qashqai Power Switch" power update to 28 Watts
   Stopping plugin Z-Wave Lock Manager (pid 32838)
   Stopped plugin Z-Wave Lock Manager
   Upgrading plugin Z-Wave Lock Manager to newer version 3.0.65 (previous version moved to trash)
   Loading plugin "Z-Wave Lock Manager 3.0.65" using API v3.0
   Starting plugin "Z-Wave Lock Manager 3.0.65" (pid 21149)
   Z-Wave Lock Manager Error       Error in plugin execution InitializeMain:

type: ('invalid syntax', ('plugin.py', 236, 66, '\t\t\treturn [int(inPin[i:i+2],16) for i in range(0,len(inPin),3)]\t\trange in py2 is now list(range()) in py3\n', 236, 71))

   Stopping plugin "Z-Wave Lock Manager 3.0.65" (pid 21149)
   Stopped plugin "Z-Wave Lock Manager 3.0.65"

28 May 2022 at 13:49:10
   Reloading plugin "Z-Wave Lock Manager 3.0.65" using API v3.0
   Starting plugin "Z-Wave Lock Manager 3.0.65" (pid 21195)
   Z-Wave Lock Manager Error       Error in plugin execution InitializeMain:

type: ('invalid syntax', ('plugin.py', 236, 66, '\t\t\treturn [int(inPin[i:i+2],16) for i in range(0,len(inPin),3)]\t\trange in py2 is now list(range()) in py3\n', 236, 71))

   Stopping plugin "Z-Wave Lock Manager 3.0.65" (pid 21195)
   Stopped plugin "Z-Wave Lock Manager 3.0.65"
CliveS

Indigo 2024.2.1 : macOS Sequoia 15.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Error When Trying to Add a Lock Code

Post by howartp »

Apologies, I think i've hit a spurious keyboard key in the code between testing and uploading.

3.0.66 should sort it.
CliveS
Posts: 864
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Error When Trying to Add a Lock Code

Post by CliveS »

howartp wrote:Apologies, I think i've hit a spurious keyboard key in the code between testing and uploading.

3.0.66 should sort it.
It has, thanks, all fine now.
CliveS

Indigo 2024.2.1 : macOS Sequoia 15.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
Post Reply

Return to “ZWave Lock Manager”