display_message_API

version 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestdisplay_message

EVerest API definition for display messages

API for EVerest api clients implementing display message.

Specification: display_message_API.yaml · pionix:de:everest:display_message_API

send the client publishes, EVerest consumes (4) receive EVerest publishes, the client consumes (4)

Servers

default mqtt

default local MQTT

Host
localhost:1883
Topic prefix
everest_api/1/display_message/{module_id}
{module_id}

The ID of the module as defined in the EVerest config file.

Operations

Client to EVerest

send_reply_set_display_message

send Send reply to request set display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_set_display_message.
Message Reply set display message application/json

Message send_reply_set_display_message

Reply to a request to set a display message

Payload

object SetDisplayMessageResponse

Response to the set display message request.

Definition of SetDisplayMessageResponse

Example

Example 1
{
  "status": "Accepted",
  "status_info": "string"
}

send_reply_get_display_message

send Send reply to request get display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_get_display_message.
Message Reply get display message application/json

Message send_reply_get_display_message

Reply to a request to get a display message

Payload

object GetDisplayMessageResponse

Response on the 'get display message' request. Will return the requested display messages.

Definition of GetDisplayMessageResponse

Example

Example 1
{
  "status_info": "string",
  "messages": [
    {
      "id": 0,
      "priority": "AlwaysFront",
      "state": "Charging",
      "timestamp_from": "2019-08-24T14:15:22Z",
      "timestamp_to": "2019-08-24T14:15:22Z",
      "session_id": "string",
      "message": {
        "format": "ASCII",
        "language": "string",
        "content": "string"
      },
      "qr_code": "string"
    }
  ]
}

send_reply_clear_display_message

send Send reply to request clear display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_clear_display_message.
Message Reply clear display message application/json

Message send_reply_clear_display_message

Reply to a request to clear a display message

Payload

object ClearDisplayMessageResponse

Response on the clear display message request.

Definition of ClearDisplayMessageResponse

Example

Example 1
{
  "status": "Accepted",
  "status_info": "string"
}

send_communication_check

send Send communication check
Topic
everest_api/1/display_message/{module_id}/m2e/communication_check
Message Send communication check application/json

Message send_communication_check

Signal to EVerest that communication is good or check shall be stopped

Payload

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

Example

CommunicationCheck
true

EVerest to client

receive_request_set_display_message

receive Receive request set display message
Topic
everest_api/1/display_message/{module_id}/e2m/set_display_message
Reply
Sent to $message.header#/replyTo as send_reply_set_display_message.

Direction: EVerest to Module

Message Request set display message application/json

Message receive_request_set_display_message

Request to set a display message

Payload

object
  • headersobject required
    • replyTostring required

      Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.

  • payloadarray<object> requiredSetDisplayMessageRequest

    Request to set a list of display messages.

    Definition of SetDisplayMessageRequest

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": [
    {
      "message": {
        "content": "string"
      }
    }
  ]
}

receive_request_get_display_message

receive Receive request get display message
Topic
everest_api/1/display_message/{module_id}/e2m/get_display_message
Reply
Sent to $message.header#/replyTo as send_reply_get_display_message.

Direction: EVerest to Module

Message Request get display message application/json

Message receive_request_get_display_message

Request to get a display message

Payload

object
  • headersobject required
    • replyTostring required

      Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.

  • payloadobject requiredGetDisplayMessageRequest

    Request display messages. The properties are filtered. If the properties are omitted, there will be no filter applied (if all properties are omitted, all stored display messages will be returned).

    Definition of GetDisplayMessageRequest

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": {
    "id": [
      0
    ],
    "priority": "AlwaysFront",
    "state": "Charging"
  }
}

receive_request_clear_display_message

receive Receive request clear display message
Topic
everest_api/1/display_message/{module_id}/e2m/clear_display_message
Reply
Sent to $message.header#/replyTo as send_reply_clear_display_message.

Direction: EVerest to Module

Message Request clear display message application/json

Message receive_request_clear_display_message

Request to clear a display message

Payload

object

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": {
    "id": 0
  }
}

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/display_message/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42

Messages

MessageSummaryUsed by
receive_request_set_display_message
Request set display message

Request to set a display message

receive_request_set_display_message
send_reply_set_display_message
Reply set display message

Reply to a request to set a display message

send_reply_set_display_message
receive_request_get_display_message
Request get display message

Request to get a display message

receive_request_get_display_message
send_reply_get_display_message
Reply get display message

Reply to a request to get a display message

send_reply_get_display_message
receive_request_clear_display_message
Request clear display message

Request to clear a display message

receive_request_clear_display_message
send_reply_clear_display_message
Reply clear display message

Reply to a request to clear a display message

send_reply_clear_display_message
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check

Schemas

ClearDisplayMessageRequest object
object

Request to remove a specific display message.

Additional properties allowed.

  • idinteger required

    Id of display message that should be removed from the charging station

ClearDisplayMessageResponse object
object

Response on the clear display message request.

Additional properties allowed.

  • statusstring requiredClearMessageResponseEnum

    Response on a clear display message request

    enumAcceptedUnknown
  • status_infostring
ClearMessageResponseEnum string
string

Response on a clear display message request

enumAcceptedUnknown
DisplayMessage object
object

Message to show on a display

Additional properties allowed.

  • idinteger

    The message id

  • prioritystring MessagePriorityEnum

    Priority of the message. For OCPP 2.0.1, this is a required property. But as we also use this interface outside of ocpp, for other messages it is not required and if priority is not given, we assume it is the lowest priority, 'NormalCycle'. When priority is 'AlwaysFront' and there already is a message with priority 'AlwaysFront', the last received message shall replace the already existing message.

    enumAlwaysFrontInFrontNormalCycle
  • statestring MessageStateEnum

    During what state should this message be shown. When omitted, this message should be shown in any state of the Charging Station

    enumChargingFaultedIdleUnavailableSuspendingDischarging
  • timestamp_fromstring

    From what date-time should this message be shown, in RFC3339 format. If omitted: directly.

    format date-time
  • timestamp_tostring

    Until what date-time should this message be shown, in RFC3339 format. After this date/time this message SHALL be removed. If omitted, message can be shown 'forever' (until it is specifically removed).

    format date-time
  • identifier_idstring

    To which user / during which session shall this message be shown. User can be identified by id token (when the session did not start yet), session id or transaction id. identifier_type will hold the type of identifier_id (default session id). Message SHALL be removed by the Charging Station after session has ended. If omitted, message is not tight to a session.

    min length 0max length 36
  • identifier_typestring IdentifierType

    The type of 'identifier_id'. If omitted, type will be session id.

    enumIdTokenSessionIdTransactionId
  • messageobject requiredMessageContent

    The message to show

    Definition of MessageContent

  • qr_codestring

    QR Code to scan for more information.

DisplayMessageStatusEnum string
string

Response on a display message request

enumAcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransaction
IdentifierType string
string

The identifier type

enumIdTokenSessionIdTransactionId
MessageContent object
object

Contains message details

Additional properties allowed.

  • formatstring MessageFormat

    Format of the message to be displayed

    enumASCIIHTMLURIUTF8QRCODE
  • languagestring
  • contentstring required
MessageFormat string
string

Format of the message to be displayed

enumASCIIHTMLURIUTF8QRCODE
MessagePriorityEnum string
string

Priority of the message. AlwaysFront is the highest priority: The Charging Station SHALL show this message at the configured moment, regardless of other installed messages. Hence, it shall not cycle it with other messages and the Charging Station’s own message shall not override this message. When a newer message with this MessagePriority is received, this message is replaced. InFront: The Charging Station SHALL show this message at the configured moment, regardless of the normal cycle of messages. If there are multiple InFront message that must be shown at the same time, they must be cycled. NormalCycle: Show this message in the cycle of messages.

enumAlwaysFrontInFrontNormalCycle
MessageStateEnum string
string

During what state the message should be shown

enumChargingFaultedIdleUnavailableSuspendingDischarging
GetDisplayMessageRequest object
object

Request display messages. The properties are filtered. If the properties are omitted, there will be no filter applied (if all properties are omitted, all stored display messages will be returned).

Additional properties allowed.

  • idarray<integer>

    If provided the Charging Station shall return Display Messages of the given ids.

    • itemsinteger
  • prioritystring MessagePriorityEnum

    If provided the Charging Station shall return Display Messages with the given priority only.

    enumAlwaysFrontInFrontNormalCycle
  • statestring MessageStateEnum

    If provided the Charging Station shall return Display Messages with the given state only.

    enumChargingFaultedIdleUnavailableSuspendingDischarging
GetDisplayMessageResponse object
object

Response on the 'get display message' request. Will return the requested display messages.

Additional properties allowed.

SetDisplayMessageRequest array<object>
array<object>

Request to set a list of display messages.

SetDisplayMessageResponse object
object

Response to the set display message request.

Additional properties allowed.

  • statusstring requiredDisplayMessageStatusEnum

    Whether the charging station is able to display the message

    enumAcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransaction
  • status_infostring

    Detailed status information

CommunicationCheck boolean
boolean

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

HeartBeatId integer
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached