code: function turnOn(device) {
      return api.request('/device/turnOn?' + querystring.stringify({id: device.id || device}));
    }
docs: Turns a device off
  @param device either {id: anId} or anId
  @returns {*} a Promise