[Solved] Trigger based on door lock PIN code
-
I'm working to move some Vera scenes into MSR and am looking for a way to detect when any PIN code is entered on my front door lock. In my sample below I'm looking to turn on a light indoors when the lock changes from locked to unlock AND the sl_UserCode status changes from any to any. If I don't have the status change the light will turn on when I manually unlock the door to leave. I'm looking for a way to detect when the lock is operated from the outside only. The issue with the below is that when the same UserCode (PIN) is used, it doesn't ever get updated and won't trigger/become true. Is there another way I can accomplish this within MSR?
-
See this post/thread: https://smarthome.community/post/7355
-
Just an update for future readers. I set up a new rule to reset the sl_UserCode to none and then had the triggers defined as above. They were all matching/updating, but my Reactions would not fire. The problem ended up being the lock status changing from true to false. Even though MSR was showing it updating. Maybe it was too fast for Vera? I changed that trigger to sl_UserCode <> none and now everything is working as expected. Following @toggledbits setup from the other thread.
- sl_UserCode changes from none to any
- sl_UserCode <> none
I also found the sl_LockButton variable. I included the changing of this value from 1 to 0 when I reset my UserID variable. When the physical lock button is pressed, the value of this gets updated to a 1. But that value never changes. Natively Vera was able to tell when the physical button was pressed, but RfV or MSR couldn't. Resetting this to 0 and then the physical button changing it to 1 allows MSR to see the update. YAY! That's another scene moved off of Vera.
-
T toggledbits locked this topic on