Skip to content

Sensor Energy Data by Floor

The API returns energy consumption in watt-hour for all fixtures on the floor. For example, if ten fixtures are on the floor, the API provides details for each fixture.

Request

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

Parameters

Request

NameDescription
em_ip_address_or_hostnameManage’s IP address or hostname
floor_idFloor identifier. Use the Get All Floors API, or in EM, 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: (yyyyMMddHHmmss) year/month/day/hour/minutes/seconds.
to_dateEnd date to stop displaying energy consumption data. Format: (yyyyMMDDHHmmss) year/month/day/hour/minutes/seconds.

Response

NameDescription
idSensor Identifier.
nameFloor name.
baseenergyDisplays the base energy of the fixture. Base energy is when the fixture’s light level is always maintained at full-on without making any changes to the light level.
energyEnergy consumed by the fixture on the floor.
savedEnergyEnergy saved by the fixture on the floor.
occSavingsEnergy savings for the fixture on the floor determined by occupancy nearby the fixture.
ambientSavingsAmbient savings for the fixture on the floor based on the ambient light level measured by the fixture.
tuneupSavingsShows savings due to profiles set up for fixtures.
manualSavingsManual savings for the fixture on the floor based on when the fixture was controlled manually.
dimLevelShows the dim level output of the fixtures (0-100%).
- 0% - Light level is set to off;
- 100% - Light level is set to full-on.

Sample Request

Using the Floor ID '1' returned by the Get All Floors API, request energy consumption for all fixtures on the floor from 4:30 am through 5:30 am on Feb. 12, 2019. The sample response includes energy consumption in watt-hour for two fixtures on the floor.

GET https://192.80.3.2/ems/api/org/sensor/v2/sensorEnergyStats/15min/floor
/1/20190312043500 /20190314043500

Sample Response

{

  "sensorEnergyStatss": {

    "sensorEnergyStats": {

      "intervalStart":   "2019-02-12T04:35:00+05:30",

      "sensor": [

        {
          "id":     "4",
          "name":   "Sensor00c05f",
          "baseEnergy":   "21.6",
          "energy":       "0.00",
          "savedEnergy":  "21.60",
          "occSavings":   "16.20",
          "ambientSavings":"0.00",
          "tuneupSavings":"5.40",
          "manualSavings":"0.00",
          "dimLevel":     "0.0"
        },
       {
          "id":     "5",
          "name":   "Sensor00caa9",
          "baseEnergy":   "21.6",
          "energy":       "12.57",
          "savedEnergy":  "9.03",
          "occSavings":   "0.00",
          "ambientSavings":"0.00",
          "tuneupSavings":"9.03",
          "manualSavings":"0.00",
          "dimLevel":     "60.0"
        },
       ]
      }
    }

}

Community

Connect and Collaborate with Industrial Professionals and Join the Community!

Click to load comments