Sorry I’m not communicating effectively. I dont want to waste your time. So let me start over.
So on slot #1 when you started
You had a name, and a code (0217)entered for slot 1. Then you selected Temporary as your access schedule, then you entered your start and end time, then lastly you turned on your front and back door switch.
you then verified that the code you entered is working on the door.
Then the access end time passed, you got your alerts, the name and code were cleared, and the front and back door switches turned off.
You then waited for a short time (less than a min should be fine), and verified that your code (0217) still unlocked the door.
That that basically what has happned so far?
If so, is it possible that you ever assigned that same code to a different slot? schlage will actually let you set the same code to multiple slots.
Try this, pick a code that you’ve never used before. Before even setting it in HA, go to the door, and try that new 4 digit code. Verify that it does not work.
Then go through the process again with the new code. Verify that it now works, and when the end time hits, verify that it is not working.
One other possibility. If you replaced or removed and re-added your lock any time soon, the zwave node ID would have changed, and the node id is what gets used to clear the code slot
# Front Door Deadbolt. You must put in the zwave node id's here
node_id: 104
code_slot: >-
{% set object_id = trigger.to_state.object_id %}
{% set code_slot = object_id[7:-19] %}
{{ code_slot }}
- service: lock.set_usercode
data_template:
usercode: >-
{{ range(1000, 9999) | random }}