Couple of things.
1 - The package file itself would have no effect of setting the codes via zwave control panel or with a service call. If those are not working, try 1st just unplugging the batteries, wait a few seconds and then plug back in. This fixed weird issues like you are experiencing most of the time. if that does not work, unfortunately the next step it to remove and add secure node again. Get the codes set working before spending time on the package.
- As far as your door lock names did you also modify the code, switches, etc for your new door names
- input_boolean.door_keypad_17_garage_switch
- input_boolean.door_keypad_18_garage_switch
condition:
action:
# if your lock does not end in "door_lock" ie. often its "door_locked" change line 3 below to match
# no other things should need to be changed
- service: lock.set_usercode
data_template:
node_id: >-
{% set object_id = trigger.to_state.object_id %}
{% set lock_name = "_".join(object_id.split("_")[3:-1]) %}
{% set lock_id = 'lock_' ~ lock_name ~ '_door_lock' %}
{{ states['lock'][lock_id].attributes.node_id }}
I just cut out a small section to explain better how it sends the lock code to the right lock.
This
{% set lock_name = "_".join(object_id.split("_")[3:-1]) %}
parses the name of the input boolean and pulls the name “Garage” (or front or back) from the name of the entity
{% set lock_id = 'lock_' ~ lock_name ~ '_door_lock' %}
This combines the name “garage”, etc to end up with lock_id being = to lock_garage_door_lock
lastly
this
{{ states['lock'][lock_id].attributes.node_id }}
ends up with lock.lock_garage_door_lock, which is used for the automation. If your lock is named differntly, that is fine, just make sure you change the code throughout the package in all of the logic.
With all that said, your issue at this time is not with the script,. After you are able to add codes via the control panel then come back to the package