UG_Wiser Home Essential API_WH-00

Turning ON/OFF the Device

You can turn the device ON/Off using Try It section in the API. Here is an example of turning the smartplug On/Off.
IMPORTANT: You can find this urn ID when you fetch the list of hubs.

Prerequisites:

Before you start, ensure you have the following details:

  • API Subscription Key

  • Bearer Token

  • urn ID

  1. On the left pane, click Control.
  2. Click List Smartplug.
    The API window appears.
  3. On the right pane, click Try It.
  4. In the Security (A) section, enter the following details:
    • API Subscription key (B): Enter the subscription key.

    • Bearer token (C): Enter the bearer token.

    NOTE: Your credentials will be saved until the end of the browser session.
  5. In the Body section, enter On or Off to change the state of the device.
  6. In the Parameters section, enter the following details:
    • deviceId (D): Enter the device ID.

    • urn (E): Enter the urn ID.

  7. Click Send (F).
You have successfully changed the state of the device.
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?