This API returns the desk occupancy for all desk sensors on a floor.
For the sensors to report occupancy data, you will need licenses based on the number of sensors. You will need to purchase Sensor and API licenses to get real-time desk occupancy for all desks on a floor. Refer to the License Types and Product Codes.
Also, before using this API call, ensure that all desk sensors are assigned to 'Desk Sensor' Fixture Type. See article Enable Desk Sensors to assign 'Desk Sensor' Fixture Type to sensors.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/sensor/v1/getDeskOccupancyState/list/floor/{floor_id}
Parameters
Request |
|
em_ip_address or hostname |
Manage’s IP address or hostname |
floor_id |
Floor 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 see the Floor ID. |
Response |
|
id |
The fixture or sensor identifier. |
name |
Sensor name. |
occupancyState |
0 – Desk Unoccupied 1 – Desk Occupied -1 – Fault. Sensors are not reporting occupancy |
Sample Code
For example, if Floor 1 has three desk sensors, the occupancy status for all three desk sensors on Floor 1 is returned.
Get https://192.80.3.1/ems/api/org/sensor/v1/getDeskOccupancyState/list/floor/1 |
Comments
Article is closed for comments.