I am trying to develop a program where I can generate a door code for a specified period of time in user slot number 2 for my Kwikset 912 Z wave door lock.
here's the scenario:
I have a guest coming over that needs access to the house and my poor planning has left me unable to program the door ahead of time.
I want a program that:
with a button-initiated script from HomeAssistant sets a "RUN" variable to 1
and sets a "CODE" variable to a random 4 digit integer
when "RUN" = 1 AND "CODE" is not 0 THEN
**********Here is where I can't find a solution************
set USER 2 code to "CODE"
wait [specified time (one hour...)]
delete user 2 code
I can do these thing manually but can't find a solution to perform these actions via program or REST
Firmware: 4.6.2
UI: 4.6.2