Get Sensor Details

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
100% - Light level is set to full-on

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

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml
Content-Length: 7582
Date: Sat, 21 Jul 2015 17:06:51 GMT
{
"sensor":[
{
  "id": "28",
  "name": "Sensor00ce56",
  "power": "69.07",
"temperature": "74",
  "lightLevel": "50"
"lastCommunicationTime": "2015-07-21 15:21"

}
]
}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Article is closed for comments.