Skip to main content

LightLevelService

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

MethodsDescription
GetLightLevelsAsyncList all available light levels.
GetLightLevelAsyncGet details of a single light from its given {lightId}.
UpdateLightLevelAsyncUpdate a single light from its given {lightId}.

GetLightLevelsAsync

List all available light levels.

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

Return Type

GetLightLevelsOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.LightLevel.GetLightLevelsAsync();

Console.WriteLine(response);

GetLightLevelAsync

Get details of a single light from its given {lightId}.

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/light_level/{lightId}

Parameters

NameTypeRequiredDescription
lightIdstringID of the light

Return Type

GetLightLevelOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.LightLevel.GetLightLevelAsync("lightId");

Console.WriteLine(response);

UpdateLightLevelAsync

Update a single light from its given {lightId}.

  • HTTP Method: PUT
  • Endpoint: /clip/v2/resource/light_level/{lightId}

Parameters

NameTypeRequiredDescription
inputLightLevelPutThe request body.
lightIdstringID of the light

Return Type

UpdateLightLevelOkResponse

Example Usage Code Snippet

using OpenHue;
using OpenHue.Models;

var client = new OpenHueClient();

var input = new LightLevelPut();

var response = await client.LightLevel.UpdateLightLevelAsync(input, "lightId");

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →