Change the status of device