PUT api/RoomControl/setLight?payload={payload}
<strong>put/setLight</strong> <br /> Sets the state of the light within the selector.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| payload |
The encrypted payload contains JSON encoded in Hex and encrypted using RSA algorithm. lightModel { light: "[light]", state: "[state]", timeStamp: "[timestamp]" } lightstringThe selector to limit which light is controlled. Example of the light selector BedsideLeftBedsideRightFloorLampDayBedDownLightBathroomCeilingBathroomMirrorstatestringThe state you want to set on the blind. ONOFFtimeStampintTime stamp in epoch time (UTC) |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
A JSON object to handle the success or error of the operation, on the success of the operation the JSON object will be "OK" string. <br /> If there is an error in the process, the JSON will contain the error.
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample not available.