Skip to main content

Call Lift

The CALL_LIFT command submits a request for the lift to service a specific floor. The timing and prioritization of when the lift responds to this request depend on the lift system's internal logic and current passenger usage. It does not mean that the elevator will not stop at other floors.

info

The CALL_LIFT_OK response is sent immediately to acknowledge the request. Wait for the CURRENT_FLOOR broadcast message indicating the lift has arrived at your target floor before proceeding with subsequent commands.


WebSocket API

Command

  • Command: CALL_LIFT

Parameters

ParameterTypeRequiredDescription
commandStringYesCALL_LIFT
requestIdStringYesUnique identifier for the request.
parameters.liftIdStringYesThe ID of the lift to call.
parameters.targetFloorIntegerYesThe floor to which the lift is requested.
parameters.setOpenOnArrivalBooleanOptionalWhether to open doors on arrival (default: false).

Response

FieldTypeDescription
requestIdStringUnique identifier for the request.
statusStringStatus of the request (success or error).
codeStringResponse code (e.g., CALL_LIFT_OK)
messageStringDescriptive message about the response

Broadcast Response

FieldTypeDescription
requestIdStringBROADCAST- appended by unique id
codeStringCURRENT_FLOOR
info.currentFloorIntegerCurrent floor of lift.

Example Request

{
"requestId": "a1b2c3d5",
"command": "CALL_LIFT",
"parameters": {
"liftId": "lift1",
"targetFloor": 5,
"setOpenOnArrival": false
}
}

Expected Response

  • On Success:
{
"requestId": "a1b2c3d5",
"status": "success",
"code": "CALL_LIFT_OK",
"message": "Lift called successfully"
}
  • Follow-Up Updates:

As the lift progresses, broadcasts will be sent whenever lift arrives at a new floor:

{
"requestId": "BROADCAST-XXXXX",
"code": "CURRENT_FLOOR",
"info": {
"currentFloor": 1
}
}