# Basically i want to do a while statment. When the door is locked turn the light off and when the door is unlocked turn the light on.
# Sounds like 2 separate triggers, one for state changed locked and another to unlocked, each either turning the light off or on