This API retrieves the latest Duration and Functional test results as well as driver status from the emergency driver connected to the sensor. Note that only one emergency driver per sensor is allowed. Use the Fixture ID returned by the Get Sensor Details by Floor API to send the command to the sensor controlling the fixture.
The response includes driver test results, date, and time when the test results were last updated. Note that the test start and completion time will return null until the test is completed or stopped. A valid start and end time are displayed after the test has been completed.
If the API cannot get the results after trying for 60 seconds, the API displays a timeout message that the sensor took too long to respond. If you are trying to get emergency lighting test results from a non-emergency lighting fixture, the API returns an invalid Fixture ID message. Check to ensure that the sensor is not offline, correct the API syntax, and reissue the call.
Request
GET https: //{em_ip_address_or_hostname}/ems/api/org/fixture/v1/{fixture-id}/emFixtureStatus
Response
{
"fixtures": [
"id": "{fixture-id}",
"emTestResults": {
"startTime": "YYYY-MM-DD 24HH:MM",
"completionTime": "YYYY-MM-DD 24HH:MM",
"failurestatus": "0-255",
"emergencyMode": "0-255",
"emergencyStatus": "0-255",
"durationResult": "0-255",
"batteryCharge": "0-255"
}
]
}
Parameters
Request | Description |
fixture-id |
Sensor or Fixture ID. Use the Get Sensor Details by Floor API to obtain the Fixture ID. |
Response | |
fixture-id | Sensor or Fixture ID. |
emTestResults: |
|
startTime |
System time at which the driver started the duration test. The time is returned in the format yyyy-mm-dd hh:mm. ('null' if no test has been since last sensor reset) |
CompletionTime |
System time at which the driver completed its duration test or functional test. The time is returned in the format yyyy-mm-dd hh:mm. ('null' if no test has been completed since last sensor reset) |
emergencyMode |
Emergency mode of the Fixture. Corresponds to DALI command 250. |
emergencyStatus |
Emergency test status. Corresponds to DALI command 253 |
durationResult |
Represents 2-minute intervals of the length of the duration test. Corresponds to DALI command 243. |
batteryCharge |
Represents the battery charge status. Corresponds to DALI command 241. |
failureStatus |
Corresponds to DALI command 252. Value: 0-255 |
Status |
|
Sample Code
Send a request to retrieve the latest duration and functional fixture status results from the emergency driver connected to the sensor with Fixture ID '28'. The API returns the Enlighted Manage test results from the sensor.
GET https: //10.45.3.19/ems/api/org/fixture/v1/28/emFixtureStatus
Response
HTTP/1.1 200
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 241
Date: Sat, 26 Sep 2020 10:36:51 GMT
{
"fixtures": [
"id": "28",
"emTestResults": {
"startTime": "2020-07-20 21:41",
"completionTime": "2020-07-20 22:40",
"failurestatus": "32",
"emergencyMode": "2",
"emergencyStatus": "10",
"durationResult": "116",
"batteryCharge": "254"
}
]
}
Comments
Article is closed for comments.