This API reports information for an individual sensor at every five-minute interval. The data for the last five minutes of the sensor is reported.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/sensor/v3/details/{fixture_id}
Parameters
Request | |
em_ip_address | The Enlighted Manage (EM) IP address or host name |
fixture_id | Sensor identifier. Use the Sensor ID returned by the Get Sensor Details by Floor, API, or in EM, select Facility > Floor in the left panel, Floor Plan tab, and double-click the sensor icon in the floor plan to obtain the Sensor ID. |
Response | |
id | Sensor identifier |
name | Sensor name. For example, Sensorxxxxxx |
power | The average load of the fixture in watts for the last five-minute interval |
temperature | Temperature in Fahrenheit |
lightLevel |
Returns the light level (0-100%) information of the fixture 0% - Light level is set to off |
lastCommunicationTime |
Time of last communication from the sensor (YYYY-MM-DD 24HH:MM) |
Sample Code
Using the sensor ID returned by the Get Sensor Details by Floor API, request data such as power, temperature, and light level settings from the sensor with ID ‘28’. For example, request data for the last five minutes for the sensor with ID ‘28’.
Get https://192.80.3.2/ems/api/org/sensor/v3/details/28 |
Comments
Article is closed for comments.