The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Enlighted

The Enlighted lighting solution optimizes energy savings while enhancing occupant productivity, well-being, and security.

Get Sensor Details by Floor¶

Returns sensor details for all sensors on the floor for a given period at every five-minute interval. For example, data is sent at every five-minute interval if the duration is from 10:00 am to 10:10 am. The API retrieves data for a maximum period of one hour.

Request¶

GET https://{em_ip_address_or_hostname}/ems/api/org/sensor/v2/stats/floor/{floor_id}/{from_date}/{to_date}

Parameters¶

Request¶

NameDescription
em_ip_address_or_hostnameThe Enlighted Manage (EM) IP address or hostname
floor_idFloor identifier. Use the Floor ID returned in the Get All Floors API, or in Manage, select Facility > Floor in the left panel, and click the Settings tab to obtain the Floor ID.
from_dateStart date to display energy consumption data. Format: (yyyyMMddHHmm) year/month/day/hour/minutes
to_dateEnd date to stop displaying energy consumption data. Format: (yyyyMMddHHmm) year/month/day/hour/minutes

Response¶

NameDescription
id**Fixture identifier (**used as the primary identifier in other API calls)
powerThe average load of the fixture in watts for the last five-minute interval
temperatureTemperature in Fahrenheit
lightLevelAmbient light level reading at the sensor (lux). See Ambient Status for details. NOTE: The unit level measurement of light striking the Enlighted Sensor lens is an approximation of Lux.
avgDimLevelAverage fixture dim level represents light level where there is sufficient light for the occupants. If the sensor is not connected to any lighting fixture, the API call returns a value of -1.
lastCommunicationtimeTime of last sensor communication (YYYY-MM-DD 24HH-MM)
captureTimeFive-minute time duration represented as (yyyy-MM-dd HH:mm) year-month-day-hour-minutes

Sample Request¶

Request sensor details for all sensors on the first floor with Floor ID ‘1’ from 10 am through 11:30 am on Feb. 12, 2019. Data will be sent at every five-minute interval, which will be 10:05 am and 10:10 am, and so on.

GET https://192.80.3.2/ems/api/org/sensor/v2/stats/floor/1/201902120100/

Sample Response¶

{
 "sensor": [
    {
      "id": "28",
      "power": "27.98",
      "temperature": "78",
      "lightLevel": "773",
      "avgDimLevel": "85",
      "lastCommunicationTime": "2019-02-12 10:12",
      "captureTime": "2019-02-12 10:05"
    },
    {
      "id": "29",
      "power": "12.62",
      "temperature": "74",
      "lightLevel": "593",
      "avgDimLevel": "85",
      "lastCommunicationTime": "2019-02-12 10:12",
      "captureTime": "2019-02-12 10:10"
    },
],
 "sensor": [
    {
      "id": "1327",
      "power": "27.98",
      "temperature": "74",
      "lightLevel": "99",
      "avgDimLevel": "85",
      "lastCommunicationTime": "2019-02-12 10:12",
      "captureTime": "2019-02-12 10:15"
    },
    {
      "id": "1377",
      "power": "12.62",
      "temperature": "70",
      "lightLevel": "462",
      "avgDimLevel": "75",
      "lastCommunicationTime": "2019-02-12 10:12",
      "captureTime": "2019-02-12 10:20"     
    }
  ]
}