If a case is closed then switch off your SmartThings device