Skip to main content

DevicePowerService

A list of all methods in the DevicePowerService service. Click on the method name to view detailed information about that method.

MethodsDescription
GetDevicePowersAsyncList all available device powers
GetDevicePowerAsyncGet power details of a single device from its given {deviceId}.

GetDevicePowersAsync

List all available device powers

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/device_power

Return Type

GetDevicePowersOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.DevicePower.GetDevicePowersAsync();

Console.WriteLine(response);

GetDevicePowerAsync

Get power details of a single device from its given {deviceId}.

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/device_power/{deviceId}

Parameters

NameTypeRequiredDescription
deviceIdstringID of the device

Return Type

GetDevicePowerOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.DevicePower.GetDevicePowerAsync("deviceId");

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →