When a SmartThings device is closed, set a variable to false in Apilio (6)