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.

Area Occupancy¶

The Get Area Occupancy API returns an area's occupancy status: occupied or unoccupied state from Enlighted area sensors. An area is a grouping of sensors with an Area ID. The request will return a single data point for all sensors in the area. If you need to see the IDs of all areas, you can query those by using the Get All Areas request.

The sensors in the area will start reporting occupancy data after they are activated as zonal sensors. Refer to the article Enable Zonal Sensors to enable them as zonal sensors to get occupancy data.

For the sensors to report occupancy data, you will need the Sensor and API licenses based on the number of sensors configured in the system. Refer to the License Types and Product Codes.

Request¶

GET https://{em_ip_address_or_hostname}/ems/api/org/area/v1/occ/{area_id}

Parameters¶

Request¶

NameDescriptionData TypeFormat Example
em_ip_address_or_hostnameManage’s IP address or hostnamestringhostname
area_idArea Identifier. Use the Get All Areas API. Alternatively, in Manage, select Facility > Floor > Area in the left panel, and click the Settings tab to get the Area ID.integer12

Response¶

NameDescriptionData TypeFormat Example
occupancyState0 - Area
1 – Area occupied
-1 – Sensors are not reporting occupancy
-2 – Zone sensor license is not available. Sensors monitoring the occupancy status of the zone are disabled
-3 – Unknown area
integer1

Sample Request¶

Let's assume that the floor has two areas: A Hardware area with ID ‘9’ and a Software area with ID ‘27’. To determine the area occupancy in the Hardware area, specify Area ID ‘9’ in the API command. The occupancy state '0' indicates that the area is unoccupied.

GET https://192.80.3.2/ems/api/org/area/v1/occ/9

Sample Response¶

{
  "occupancyStatus":
  {
    "occupancyState": "0"
  }
}