sure, I know how to modify the DH to disable a button.
but this is not what I want to do. I still want to have unlock feature but with a code so that it does not get accidentally unlocked.
for example, the button can be disabled by default, but can be enabled after we enter a code.
that’s something I can handle through DH settings. for now , I just modified the DH to have a mid state:
attributeState "locked", label:'locked', action:"lock.unlocknot", icon:"st.locks.lock.locked", backgroundColor:"#00a0dc", nextState:"unlockingnot"
attributeState "unlockingnot", label:'press again to unlock', action:"lock.unlock", icon:"st.locks.lock.locked", backgroundColor:"#ff0000", nextState:"unlocking"
attributeState "unlocked", label:'unlocked', action:"lock.lock", icon:"st.locks.lock.unlocked", backgroundColor:"#ffffff", nextState:"locking"
attributeState "unlocked with timeout", label:'unlocked', action:"lock.lock", icon:"st.locks.lock.unlocked", backgroundColor:"#ffffff", nextState:"locking"
attributeState "unknown", label:"jammed", action:"lock.lock", icon:"st.locks.lock.unknown", backgroundColor:"#e86d13", nextState:"locking"
attributeState "locking", label:'locking', icon:"st.locks.lock.locked", backgroundColor:"#00a0dc"
attributeState "unlocking", label:'unlocking', icon:"st.locks.lock.unlocked", backgroundColor:"#ffffff"
for the other “code” usage, I really could not understand. is it possible to use codes without a keypad of the lock ? if yes, how ?
I installed the smart app from RBoy, and created a test user with a code. Now , how shall I use that code ?
in the native Smartthings “smart lock” UI, on “lock codes” tab I tried to create a code, but that fails. I don’t understand why.
it says “something’s wrong. the lock code couldn’t be created. please try again.”