Lock Triggers Stopper Working

Posted on
Thu May 18, 2023 7:08 am
whmoorejr offline
User avatar
Posts: 762
Joined: Jan 15, 2013
Location: Houston, TX

Re: Lock Triggers Stopper Working

mclass wrote:
...when the trigger is set to "any code", the lock operation is correctly reported, but the trigger fails to fire...

Similar setup (MacOS 10.13.3, Plugin 3.0.66, Indigo 2022.2.0) ... different results. I tested my triggers today (I only use "Unlock by Any Code") for updating a variable for testing... so I thought I'd give a look and see if it was firing.... it is.
Here is a snippet of my log including bits from the Z-Wave Watcher plugin. Hopefully this will help with troubleshooting.


My Trigger:
Type: Z-Wave Lock Manager Event
Event: Lock unlocked by code
Event Settings:
Lock: Front Door Lock Manager
User: Any User
Conditions: Always
Action: Insert state (lastuser) for device 'front door lock manager' into variable: last_user

Code: Select all
May 18, 2023 at 7:40:55 AM
   Z-Wave Watcher Debug            Raw command sent (Node 12): 01 11 00 13 0C 0A 98 80 58 A7 62 87 F6 E9 C0 AC 25 B4 1B (True)
   Z-Wave                          received "Front Door - Keypad Door Lock" status update unlocked by user 001 (via keypad)
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 08 00 04 00 0C 02 98 40 25
   Z-Wave Watcher Debug            Command class: 98v1
   Z-Wave Watcher Debug            Command not yet decoded: 98 40 v1
   Trigger                         F Door Lock Variable update
   Z-Wave Lock Manager             Status: User 1 unlocked door [Node: 12]
   ZEAL                            Received "Front Door - Keypad Door Lock" alarm report (v1), alarm type 19, alarm level 1
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 0A 00 04 00 0C 04 71 05 13 01 FF
   Z-Wave Watcher Debug            Command class: 71v1
   Z-Wave Watcher Debug            Command not yet decoded: 71 05 v1
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 1E 00 04 00 0C 18 98 81 99 B5 0D 2C 4B 78 13 CE 14 26 F2 96 F5 58 7D 40 F2 83 DB 67 DA 94 4E
   Z-Wave Watcher Debug            Command class: 98v1
   Z-Wave Watcher Debug            Command not yet decoded: 98 81 v1
   Trigger                         Anyone Unlocks
   Trigger                         Anyone Unlocks Part2
   Schedule                        trigger "Anyone Unlocks" (delayed action)
   Z-Wave Watcher Debug            Raw command sent (Node 12): 01 11 00 13 0C 0A 98 80 6A 23 B7 22 41 D7 23 70 25 B5 6A (True)
   Z-Wave                          received "Front Door - Keypad Door Lock" status update locked (manually)
   Trigger                         F Door Lock Device On/Off state
   Trigger                         F Door Lock Variable update
   ZEAL                            Received "Front Door - Keypad Door Lock" alarm report (v1), alarm type 21, alarm level 1
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 08 00 04 00 0C 02 98 40 25
   Z-Wave Watcher Debug            Command class: 98v1
   Z-Wave Watcher Debug            Command not yet decoded: 98 40 v1
   Front Door Unlocked             Front Door Lock - Unlocked
   Z-Wave Lock Manager             Status: Door locked manually [Node: 12]
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 0A 00 04 00 0C 04 71 05 15 01 FF
   Z-Wave Watcher Debug            Command class: 71v1
   Z-Wave Watcher Debug            Command not yet decoded: 71 05 v1
   Z-Wave Watcher Debug            Raw command received (Node 12): 01 1E 00 04 00 0C 18 98 81 6C B5 F3 CD E8 95 ED 32 1A E1 EC 43 4D 6A 32 17 8A 76 63 A9 3C A0 51
   Z-Wave Watcher Debug            Command class: 98v1
   Z-Wave Watcher Debug            Command not yet decoded: 98 81 v1


A possible work around..... (another way to skin this cat)
Alternative Trigger:
Type: Z-Wave Command Received
Event: Incoming Command Received from Device
Event Settings:
From: Front Door - Keypad Door Lock
Received: Unlocked By Keypad

Bill
My Plugin: My People

Posted on
Sat May 20, 2023 8:06 pm
mclass offline
Posts: 312
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Lock Triggers Stopper Working

Thanks for your responses!

A little further investigation has demonstrated that "Any user" setting does not include the Master Code ie the master code (user 251) is not regarded as a User for the purposes of the lock manager trigger. Hence opening the lock using the master code when trigger set to "any user" fails to fire the trigger! Makes sense now!

As a short term measure, I have added separate triggers for "Any user" and "Master Code", but might it be possible to to include the Master Code in the "any user" category, or provide an additional setting for "Any user and master code"?

The second alternative may be preferred if securing of master code is required for increased security!

Thanks again

mclass

Posted on
Mon Aug 07, 2023 3:04 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Lock Triggers Stopper Working

@mclass

Can you try https://github.com/howartp84/ZWaveLockM ... tag/3.0.67 and see if this works for you?

Edit (or add) an "Unlocked by" trigger - there's now an option for "Any (except Master)" and "Any (including Master")

Any (except Master) will continue to function as before, i've not changed that.

Peter

Who is online

Users browsing this forum: No registered users and 1 guest