I have a Kwikset 910 that I successfully included onto my network and have control of (for lock, unlock). I was trying to get Keymaster to work and discovered the problem I’m having, usercodes not being sent to the lock, is actually in Z Wave JS or HA. I get the following error in the logs after attempting to run the zwave_js.set_lock_usercode service in Developer Tools:
zwave_js_server.exceptions.NotFoundError: userCode for code slot 2 not found
The full text of the log is:
Logger: homeassistant.helpers.script.websocket_api_script
Source: components/zwave_js/lock.py:127
First occurred: 7:32:39 PM (1 occurrences)
Last logged: 7:32:39 PMwebsocket_api script: Error executing script. Unexpected error for call_service at pos 1: userCode for code slot 2 not found
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 359, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 559, in _async_call_service_step
await service_task
File “/usr/src/homeassistant/homeassistant/core.py”, line 1480, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1515, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 583, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 649, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 692, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 686, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/zwave_js/lock.py”, line 127, in async_set_lock_usercode
await set_usercode(self.info.node, code_slot, usercode)
File “/usr/local/lib/python3.8/site-packages/zwave_js_server/util/lock.py”, line 89, in set_usercode
value = get_code_slot_value(node, code_slot, LOCK_USERCODE_PROPERTY)
File “/usr/local/lib/python3.8/site-packages/zwave_js_server/util/lock.py”, line 32, in get_code_slot_value
raise NotFoundError(f"{property_name} for code slot {code_slot} not found")
zwave_js_server.exceptions.NotFoundError: userCode for code slot 2 not found
My information is:
Core-2021.4.6
HA OS 5.13 supervisor
Z-Wave JS 7.2.4
Installed on a VM on Proxmox running on a SP3
Thanks!