Automatically lock lever lock

How do I set up my scalage locks to auto lock if they are unlocked? I am using ui2. Please paste lua if I need to use it. I want to do it so it does not drain the scalage batteries.

Pls help!