Get Door Status
The GET_DOOR_STATUS command allows the fleet manager to check whether the lift doors are currently open or closed. This command is helpful for monitoring the lift’s operational state.
WebSocket API
Command
- Command:
GET_DOOR_STATUS
Parameters
| Parameter | Type | Required | Description |
| Parameter | Type | Required | Description |
|---|---|---|---|
command | String | Yes | GET_DOOR_STATUS |
requestId | String | Yes | Unique identifier for the request |
parameters.liftId | String | Yes | The ID of the lift to query |
Response
| Field | Type | Description |
|---|---|---|
requestId | String | Unique identifier for the request |
status | String | Status of the request only (success or error). |
code | String | Response code (e.g., GET_DOOR_STATUS_OK) |
message | String | Descriptive message about the response |
info.doorStatus | String | 3 possible states open/ closed |
Example Request
{"requestId": "a1b2c3e0", "command": "GET_DOOR_STATUS", "parameters": {"liftId": "lobby0_lift0"}}
Expected Response
- On Success:
{"requestId": "a1b2c3e0", "status": "success", "code": "GET_DOOR_STATUS_OK", "message": "Door status retrieved successfully", "info": {"doorStatus": "closed"}}