MotionService
A list of all methods in the MotionService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetMotionSensorsAsync | List all available motion sensors. |
GetMotionSensorAsync | Get details of a single motion sensor from its given {motionId} . |
UpdateMotionSensorAsync | Update 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
Name | Type | Required | Description |
---|---|---|---|
motionId | string | ✅ | ID 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
Name | Type | Required | Description |
---|---|---|---|
input | MotionPut | ❌ | The request body. |
motionId | string | ✅ | Id 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