Skip to main content

MotionService

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

MethodsDescription
GetMotionSensorsAsyncList all available motion sensors.
GetMotionSensorAsyncGet details of a single motion sensor from its given {motionId}.
UpdateMotionSensorAsyncUpdate a single motion sensor from its given {motionId}.

GetMotionSensorsAsync

List all available motion sensors.

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

Return Type

GetMotionSensorsOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.Motion.GetMotionSensorsAsync();

Console.WriteLine(response);

GetMotionSensorAsync

Get details of a single motion sensor from its given {motionId}.

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/motion/{motionId}

Parameters

NameTypeRequiredDescription
motionIdstringID of the motion sensor

Return Type

GetMotionSensorOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.Motion.GetMotionSensorAsync("motionId");

Console.WriteLine(response);

UpdateMotionSensorAsync

Update a single motion sensor from its given {motionId}.

  • HTTP Method: PUT
  • Endpoint: /clip/v2/resource/motion/{motionId}

Parameters

NameTypeRequiredDescription
inputMotionPutThe request body.
motionIdstringId of the motion sensor

Return Type

UpdateMotionSensorOkResponse

Example Usage Code Snippet

using OpenHue;
using OpenHue.Models;

var client = new OpenHueClient();

var input = new MotionPut();

var response = await client.Motion.UpdateMotionSensorAsync(input, "motionId");

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →