Page 1 of 1

Error when unlock trigger fires

PostPosted: Thu Jun 15, 2017 9:25 pm
by srkinard
I've had the Lock Manager pretty much since it was released, and one function was to send an email whenever a user unlocks the front door deadbolt.

I updated the plugin to 1.0.37 a few weeks ago, and created the Placeholder device for the lock as instructed. I made sure all the triggers pointed to the new device and all...so it looked fine.

I realized earlier that I had not seen any emails about the lock...so I took the laptop and watched Indigo while I triggered it myself...I saw this error in the logs:

Code: Select all
   Z-Wave Lock Manager             Status: Door locked manually [Node: 65]
   Z-Wave                          received "Lock - Front Door Deadbolt" status update unlocked by user 001 (via keypad)
   Trigger                         Front Door Unlocked
   Z-Wave Lock Manager             Status: User 1 unlocked door [Node: 65]
   Z-Wave Lock Manager Error       Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
  File "plugin.py", line 290, in zwaveCommandReceived
  File "plugin.py", line 526, in triggerEvent
KeyError: (94353879,)

   Z-Wave                          received "Lock - Front Door Deadbolt" status update locked (manually)
   Trigger                         Front Door Locked
   Z-Wave Lock Manager             Status: Door locked manually [Node: 65]


Did I miss another step in converting from the old version to the new?

Thanks
Ross

Re: Error when unlock trigger fires

PostPosted: Thu Jun 15, 2017 11:35 pm
by howartp
Hi Ross.

No, there's about 5 users waiting for me to fix this; it will be sorted this weekend.

Peter


Sent from my iPhone using Tapatalk Pro

Re: Error when unlock trigger fires

PostPosted: Thu Jun 15, 2017 11:43 pm
by srkinard
howartp wrote:
Hi Ross.

No, there's about 5 users waiting for me to fix this; it will be sorted this weekend.

Peter


Awesome...thanks Peter!

Re: Error when unlock trigger fires

PostPosted: Fri Jun 16, 2017 11:39 am
by howartp
Give 1.0.38 a try... (same link)

Peter

Re: Error when unlock trigger fires

PostPosted: Sun Jun 18, 2017 9:10 am
by CliveS
Peter,

Updated to .39 and getting these errors

18 Jun 2017, 11:02:40
Z-Wave received "Front Door Keypad Lock" status update unlocked (manually)
Z-Wave Lock Manager Status: Door unlocked manually [Node: 55]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 300, in zwaveCommandReceived
File "plugin.py", line 534, in triggerEvent
KeyError: ('unlockedManually',)

Z-Wave received "Front Door Keypad Lock" status update locked (via timer)
Z-Wave Lock Manager Status: Door re-locked automatically [Node: 55]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 320, in zwaveCommandReceived
File "plugin.py", line 534, in triggerEvent
KeyError: ('relockedAuto',)


18 Jun 2017, 11:03:39
Z-Wave received "En Suite Floor Heating Thermostat" heat setpoint is 15.0 °C
Z-Wave received "Front Door Keypad Lock" status update locked (manually)
Z-Wave Lock Manager Status: Door locked manually [Node: 55]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 294, in zwaveCommandReceived
File "plugin.py", line 534, in triggerEvent
KeyError: ('lockedManually',)


18 Jun 2017, 11:04:45
Z-Wave received "En Suite Floor Heating Thermostat" mode is off
Z-Wave received "Front Door Keypad Lock" status update unlocked (manually)
Z-Wave Lock Manager Status: Door unlocked manually [Node: 55]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 300, in zwaveCommandReceived
File "plugin.py", line 534, in triggerEvent
KeyError: ('unlockedManually',)

Z-Wave received "Front Door Keypad Lock" status update locked (via timer)
Z-Wave Lock Manager Status: Door re-locked automatically [Node: 55]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 320, in zwaveCommandReceived
File "plugin.py", line 534, in triggerEvent
KeyError: ('relockedAuto',)


CliveS

Re: Error when unlock trigger fires

PostPosted: Sun Jun 18, 2017 2:35 pm
by howartp
Oops.

There's a line in my code that says:
self.events = dict() # {} Need to define here any new Trigger types or the key throws undefined errors

This is to remind me that whenever I define new triggers, I gotta initialise them here or else they throw errors.

I forgot....!

v1.0.40 now live.

Peter

Re: Error when unlock trigger fires

PostPosted: Sun Jun 18, 2017 3:30 pm
by CliveS
That eradicated the critter :)

18 Jun 2017, 22:23:08
Z-Wave received "Front Door Keypad Lock" status update unlocked (manually)
Z-Wave Lock Manager Status: Door unlocked manually [Node: 55]
Z-Wave received "Front Door Keypad Lock" status update locked (manually)
Z-Wave Lock Manager Status: Door locked manually [Node: 55]

--------------------------------------

WebServer request to execute action group "Front Door Unlocked" from xx.166.158.xx
Action Group Front Door Unlocked
WebServer request to execute action group "Front Door Unlocked" from xx.166.158.xx
Action Group Front Door Unlocked
Z-Wave sent "Front Door Keypad Lock" unlock
Z-Wave sent "Front Door Keypad Lock" unlock
WebServer request to execute action group "Front Door Unlocked" from xx.166.158.xx
Action Group Front Door Unlocked
Z-Wave sent "Front Door Keypad Lock" unlock
Z-Wave received "Front Door Keypad Lock" status update unlocked (via controller)
Z-Wave Lock Manager Status: Door unlocked by Indigo [Node: 55]
WebServer request to execute action group "Front Door Locked" from xx.166.158.xx
Action Group Front Door Locked
WebServer request to execute action group "Front Door Locked" from xx.166.158.xx
Action Group Front Door Locked
Z-Wave sent "Front Door Keypad Lock" lock
Z-Wave sent "Front Door Keypad Lock" lock
WebServer request to execute action group "Front Door Locked" from xx.166.158.xx
Action Group Front Door Locked
Z-Wave sent "Front Door Keypad Lock" lock
Z-Wave received "Front Door Keypad Lock" status update locked (via controller)
Z-Wave Lock Manager Status: Door locked by Indigo [Node: 55]

Thanks

CliveS

Re: Error when unlock trigger fires

PostPosted: Fri Jun 23, 2017 1:27 pm
by roquej
I am still getting the following error:

Z-Wave Lock Manager Status: User 1 unlocked door [Node: 127]
Z-Wave Lock Manager Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 299, in zwaveCommandReceived
File "plugin.py", line 548, in triggerEvent
KeyError: (845063353,)

Version is .40

Any suggestion?

JP

Re: Error when unlock trigger fires

PostPosted: Sat Jun 24, 2017 4:08 pm
by howartp
Off the top of my head, have you created dummy device(s) for the lock(s)?


Sent from my iPhone using Tapatalk Pro