I would love to be able to disable that Query lock codes on refresh. Every now & then, SmartThings/Smart Lock Guest Access queries my locks and wipes out all of the Guest Names that I’ve typed in.
Yes, you must also have a value defined for lock code length. Without it, the disable refresh setting won’t stay off. Setting the code length to your current code length will not erase existing codes.
The older non-ZP model? @bthrock has been working on the lost code names with me over PM and reports that they’re staying put now on the beta driver. I’ll move those fixes over to the non-beta driver when I have a bit of time.
For the settings menu follow @h0ckeysk8er instructions regarding filling the code length field. It’s a ST bug that you need to fully fill in any unpopulated fields in the settings menu for any changes to take - nothing I can do about it.
I’ll check tomorrow, but I still think if you issue a reloadCodes and other some other commands, the code names will reset on the non-ZP lock using your beta driver. Also, I think switching drivers will have the same result.
This makes sense, and I think would impact the ZP as well. The handlers should populate the driver’s name registry from the lockCodes capability, but I haven’t seen anywhere that that’s happening.
If so, grab logs so I can reproduce in a test script.
Lock code names are staying together with driver. When I do switching between beta and non-beta, names are updated each time. After switch is done, they stay as is.
So, I can’t seem to recreate the issues of all the codeNames being replaced with codeX like I could before. So whatever you did seems to have fixed it for my non-ZP lock. I’ll try with my ZP one if I can ever get it working with Edge drivers.
One thing that’s weird is that the unlockCodeName field is getting populated properly and yet the lockCodes array appears to be empty in my hub for the non-ZP lock. Could just be an error in how the default handler is presenting it in the CLI even though they really are populated. Will see if any of that changes once 45.11 is downloaded to my hub.
That is no longer happening on my BE469 (non-ZP) lock with the beta driver.
I’m also not seeing the issue with the empty lockCodes array in the CLI and I’ve been pushing the driver hard on both the BE469 and BE469ZP since last Friday trying to ensure nothing’s breaking.
Always possible there’s another hardware revision lurking out there somewhere, of course.
Yeah, I can’t recreate the issue either on my non-ZP now either.
You may not see the empty lockCodes array because you are on a different hub than I am with different firmware. I’m on the Wifi ST Hub running 43.5 waiting on 45.11 to be installed (which supposedly has some fixes for lockCodes though nothing specific is mentioned).
Well, I spoke too soon. For some unknown reason, SLGA is getting Code 1 updated with name “Code 1” instead of the name that should be set. And it’s doing it continuously.
connecting... connected
2023-01-30T22:27:56.578970429+00:00 TRACE Z-Wave Lock PH BETA Found CapabilityCommandDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:27:56.585725950+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"lockCodes","capability_id":"lockCodes","component_id":"main","state":{"value":"{\"1\":\"Code 1\"}"},"visibility":{"displayed":false}}
2023-01-30T22:27:56.672687929+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> sending Z-Wave command: {args={user_identifier=1}, cmd_class="USER_CODE", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01", src_channel=0, version=1}
2023-01-30T22:27:56.685992741+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(bda28c0c) queued for radio transmission: CC:User Code, CID:0x02
2023-01-30T22:27:56.694554970+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:27:56.701050554+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:27:58.054711927+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(bda28c0c) transmit status: TRANSMIT_COMPLETE_OK
2023-01-30T22:27:58.320374177+00:00 TRACE Z-Wave Lock PH BETA Received event with handler unnamed
2023-01-30T22:27:58.327570490+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> received Z-Wave command: {args={user_code="**********", user_id_status="ENABLED_GRANT_ACCESS", user_identifier=1}, cmd_class="USER_CODE", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x01\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A", src_channel=0, version=1}
2023-01-30T22:27:58.346094344+00:00 TRACE Z-Wave Lock PH BETA Found ZwaveDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:27:58.351832406+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"codeChanged","capability_id":"lockCodes","component_id":"main","state":{"data":{"codeName":"Code 1"},"value":"1 changed"},"state_change":true}
2023-01-30T22:27:58.431303094+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:26.704390567+00:00 TRACE Z-Wave Lock PH BETA Found CapabilityCommandDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:28:26.711030921+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"lockCodes","capability_id":"lockCodes","component_id":"main","state":{"value":"{\"1\":\"Code 1\"}"},"visibility":{"displayed":false}}
2023-01-30T22:28:26.790659067+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> sending Z-Wave command: {args={user_identifier=1}, cmd_class="USER_CODE", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01", src_channel=0, version=1}
2023-01-30T22:28:26.803473608+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(1eadbe3a) queued for radio transmission: CC:User Code, CID:0x02
2023-01-30T22:28:26.815777087+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:26.822627504+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:28.127318440+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(1eadbe3a) transmit status: TRANSMIT_COMPLETE_OK
2023-01-30T22:28:28.399493190+00:00 TRACE Z-Wave Lock PH BETA Received event with handler unnamed
2023-01-30T22:28:28.406290128+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> received Z-Wave command: {args={user_code="**********", user_id_status="ENABLED_GRANT_ACCESS", user_identifier=1}, cmd_class="USER_CODE", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x01\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A", src_channel=0, version=1}
2023-01-30T22:28:28.414981586+00:00 TRACE Z-Wave Lock PH BETA Found ZwaveDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:28:28.421624044+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"codeChanged","capability_id":"lockCodes","component_id":"main","state":{"data":{"codeName":"Code 1"},"value":"1 changed"},"state_change":true}
2023-01-30T22:28:28.506584836+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:56.828299934+00:00 TRACE Z-Wave Lock PH BETA Found CapabilityCommandDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:28:56.835491350+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"lockCodes","capability_id":"lockCodes","component_id":"main","state":{"value":"{\"1\":\"Code 1\"}"},"visibility":{"displayed":false}}
2023-01-30T22:28:56.913217184+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> sending Z-Wave command: {args={user_identifier=1}, cmd_class="USER_CODE", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01", src_channel=0, version=1}
2023-01-30T22:28:56.924553663+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(214a6718) queued for radio transmission: CC:User Code, CID:0x02
2023-01-30T22:28:56.931845975+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:56.937587163+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:28:58.415031516+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(214a6718) transmit status: TRANSMIT_COMPLETE_OK
2023-01-30T22:28:58.680224765+00:00 TRACE Z-Wave Lock PH BETA Received event with handler unnamed
2023-01-30T22:28:58.686999849+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> received Z-Wave command: {args={user_code="**********", user_id_status="ENABLED_GRANT_ACCESS", user_identifier=1}, cmd_class="USER_CODE", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x01\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A", src_channel=0, version=1}
2023-01-30T22:28:58.696732161+00:00 TRACE Z-Wave Lock PH BETA Found ZwaveDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:28:58.702839328+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"codeChanged","capability_id":"lockCodes","component_id":"main","state":{"data":{"codeName":"Code 1"},"value":"1 changed"},"state_change":true}
2023-01-30T22:28:58.782645786+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:29:26.944762176+00:00 TRACE Z-Wave Lock PH BETA Found CapabilityCommandDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:29:26.951590259+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"lockCodes","capability_id":"lockCodes","component_id":"main","state":{"value":"{\"1\":\"Code 1\"}"},"visibility":{"displayed":false}}
2023-01-30T22:29:27.030481301+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> sending Z-Wave command: {args={user_identifier=1}, cmd_class="USER_CODE", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01", src_channel=0, version=1}
2023-01-30T22:29:27.041921676+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(096d71a7) queued for radio transmission: CC:User Code, CID:0x02
2023-01-30T22:29:27.049467363+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:29:27.056166384+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
2023-01-30T22:29:28.464498112+00:00 TRACE Z-Wave Lock PH BETA Z-Wave command(096d71a7) transmit status: TRANSMIT_COMPLETE_OK
2023-01-30T22:29:28.730085841+00:00 TRACE Z-Wave Lock PH BETA Received event with handler unnamed
2023-01-30T22:29:28.736967653+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> received Z-Wave command: {args={user_code="**********", user_id_status="ENABLED_GRANT_ACCESS", user_identifier=1}, cmd_class="USER_CODE", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x01\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A", src_channel=0, version=1}
2023-01-30T22:29:28.745561778+00:00 TRACE Z-Wave Lock PH BETA Found ZwaveDispatcher handler in zwave_lock -> Schlage Lock
2023-01-30T22:29:28.751301487+00:00 INFO Z-Wave Lock PH BETA <ZwaveDevice: 95130d4e-f4ee-4c39-b624-ad6013361692 [38] (Laundry Room Door Lock)> emitting event: {"attribute_id":"codeChanged","capability_id":"lockCodes","component_id":"main","state":{"data":{"codeName":"Code 1"},"value":"1 changed"},"state_change":true}
2023-01-30T22:29:28.831206299+00:00 DEBUG Z-Wave Lock PH BETA Laundry Room Door Lock device thread event handled
About an hour ago (when I did the post about not being able to reproduce the name clearing), I did a requestCode codeSlot 1 and reloadAllCodes in that order from the CLI. Then the code 1 name resetting problem started about 50-55 mins after that and kept repeating. I then changed the name back to what I wanted it to be in SLGA, which changed the code name, and then it kept saying code 1 set to “Bruce and Teri” repeatedly until I unplugged the battery. However, the driver is still sending a request that is never replied to.
And apparently at some point during that hour, they pushed 45.11 to my hub. After the reboot, it has stopped…for now at least
Hopefully fixed in a new version dated 2023-01-30T23:11:55.938508123… They wrote these handlers so that sometimes codeId needs to be a string, other times a number. Changing it to a string fixed the renaming bug, but the handler that checks whether reloadAllCodes has finished running needs it passed as a number.
2023-01-30T23:22:53.573929087+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:22:53.590524691+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:22:53.602167170+00:00 FATAL Z-Wave Lock PH BETA Lua: callback error
stack traceback:
[C]: in field 'st_json_decode'
[string "json"]:17: in field 'decode'
[string "st/capabilities/init.lua"]:56: in field 'build_cap_from_json_string'
[string "st/capabilities/init.lua"]:142: in function <[string "st/capabilities/init.lua"]:134>
[C]: in function 'pcall'
[string "st/capabilities/init.lua"]:94: in metamethod '__index'
[string "init.lua"]:232: in main chunk
caused by: error converting Lua lightuserdata to String (expected string or number)
Traceback:
stack traceback:
[C]: in function 'error'
[string "st/capabilities/init.lua"]:98: in metamethod '__index'
[string "init.lua"]:232: in main chunk
2023-01-30T23:22:59.100349853+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:22:59.110129165+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:22:59.122350290+00:00 FATAL Z-Wave Lock PH BETA Lua: callback error
stack traceback:
[C]: in field 'st_json_decode'
[string "json"]:17: in field 'decode'
[string "st/capabilities/init.lua"]:56: in field 'build_cap_from_json_string'
[string "st/capabilities/init.lua"]:142: in function <[string "st/capabilities/init.lua"]:134>
[C]: in function 'copcall'
[string "st/capabilities/init.lua"]:94: in metamethod '__index'
[string "init.lua"]:232: in main chunk
caused by: error converting Lua lightuserdata to String (expected string or number)
Traceback:
stack traceback:
[C]: in function 'error'
[string "st/capabilities/init.lua"]:98: in metamethod '__index'
[string "init.lua"]:232: in main chunk
2023-01-30T23:23:04.569126202+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:04.579777202+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:04.591998056+00:00 FATAL Z-Wave Lock PH BETA Lua: callback error
stack traceback:
[C]: in field 'st_json_decode'
[string "json"]:17: in field 'decode'
[string "st/capabilities/init.lua"]:56: in field 'build_cap_from_json_string'
[string "st/capabilities/init.lua"]:142: in function <[string "st/capabilities/init.lua"]:134>
[C]: in function 'copcall'
[string "st/capabilities/init.lua"]:94: in metamethod '__index'
[string "init.lua"]:232: in main chunk
caused by: error converting Lua lightuserdata to String (expected string or number)
Traceback:
stack traceback:
[C]: in function 'error'
[string "st/capabilities/init.lua"]:98: in metamethod '__index'
[string "init.lua"]:232: in main chunk
2023-01-30T23:23:10.068651884+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:10.079282988+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:10.090148051+00:00 FATAL Z-Wave Lock PH BETA Lua: callback error
stack traceback:
[C]: in field 'st_json_decode'
[string "json"]:17: in field 'decode'
[string "st/capabilities/init.lua"]:56: in field 'build_cap_from_json_string'
[string "st/capabilities/init.lua"]:142: in function <[string "st/capabilities/init.lua"]:134>
[C]: in function 'copcall'
[string "st/capabilities/init.lua"]:94: in metamethod '__index'
[string "init.lua"]:232: in main chunk
caused by: error converting Lua lightuserdata to String (expected string or number)
Traceback:
stack traceback:
[C]: in function 'error'
[string "st/capabilities/init.lua"]:98: in metamethod '__index'
[string "init.lua"]:232: in main chunk
2023-01-30T23:23:15.569699233+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:15.580840524+00:00 WARN Z-Wave Lock PH BETA Unexpected filesystem lookup for capability platinummassive43262.lockCodeMaintenance
2023-01-30T23:23:15.593479712+00:00 FATAL Z-Wave Lock PH BETA Lua: callback error
stack traceback:
[C]: in field 'st_json_decode'
[string "json"]:17: in field 'decode'
[string "st/capabilities/init.lua"]:56: in field 'build_cap_from_json_string'
[string "st/capabilities/init.lua"]:142: in function <[string "st/capabilities/init.lua"]:134>
[C]: in function 'copcall'
[string "st/capabilities/init.lua"]:94: in metamethod '__index'
[string "init.lua"]:232: in main chunk
caused by: error converting Lua lightuserdata to String (expected string or number)
Traceback:
stack traceback:
[C]: in function 'error'
[string "st/capabilities/init.lua"]:98: in metamethod '__index'
[string "init.lua"]:232: in main chunk
Yikes for sure. Experimental capability to add/delete lock codes via routine accidentally left in. Fully commented out in 2023-01-30T23:52:49.99918411.