DevicePowerService
A list of all methods in the DevicePowerService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetDevicePowersAsync | List all available device powers |
GetDevicePowerAsync | Get 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
Name | Type | Required | Description |
---|---|---|---|
deviceId | string | ✅ | ID 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