Set Power

PUT /setDevicePower

Sets the on/off state of a device.

Content-type: application/json

Data/Body

{
    "password": "{password}",
    "deviceId": "{deviceId}",
    "powered": {powered}
}

Json Parameters

  • deviceId - The deviceId to retrieve from the server
  • powered - true to turn the device on; false to turn it off
  • password - The server password (optional)

Example Response:

No response