When a SmartThings device is switched on, set a variable to true in Apilio (2)