When a SmartThings device is opened, set a variable to true in Apilio (6)