generic_error_raiser_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestgeneric errors

EVerest API definition for raising and clearing generic errors

API for EVerest API clients for raising and clearing generic errors. The errors are only reported, e.g. by OCPP and the error history. EvseManager does not act on them, so they do not stop charging.

Specification: generic_error_raiser_API.yaml · pionix:de:everest:generic_error_raiser

send the client publishes, EVerest consumes (3) receive EVerest publishes, the client consumes (1)

Servers

default mqtt

default local MQTT

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

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

Operations

Client to EVerest

send_raise_error

send Send raise error
Topic
everest_api/1/generic_error_raiser/{module_id}/m2e/raise_error

Direction: Module to EVerest

Message Send raise error application/json

Message send_raise_error

Signal to EVerest that an error happened.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

Example

Raise error example
{
  "type": "CommunicationFault",
  "sub_type": "subtype",
  "message": "message"
}

send_clear_error

send Send clear error
Topic
everest_api/1/generic_error_raiser/{module_id}/m2e/clear_error
Message Send clear error application/json

Message send_clear_error

Signal to EVerest that a previously raised error is no longer active.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

Example

Clear error example
{
  "type": "CommunicationFault",
  "sub_type": "subtype",
  "message": "message"
}

send_communication_check

send Send communication check
Topic
everest_api/1/generic_error_raiser/{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_heartbeat

receive Receive heartbeat
Topic
everest_api/1/generic_error_raiser/{module_id}/e2m/heartbeat

Direction: EVerest to Module

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
send_raise_error
Send raise error

Signal to EVerest that an error happened.

send_raise_error
send_clear_error
Send clear error

Signal to EVerest that a previously raised error is no longer active.

send_clear_error
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

ErrorEnum string
string

Type of error

  • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
  • VendorError: Vendor specific error code.
  • VendorWarning: Vendor specific error code.
enumCommunicationFaultVendorErrorVendorWarning
Error object
object

Error object with type, subtype and message.

Additional properties allowed.

  • typestring requiredErrorEnum

    Type of error

    • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
    • VendorError: Vendor specific error code.
    • VendorWarning: Vendor specific error code.
    enumCommunicationFaultVendorErrorVendorWarning
  • sub_typestring

    The subtype of the error

  • messagestring

    Optional free-text detail about this specific occurrence of the error, e.g. a measured value or a diagnostic string from the hardware. Unlike the fixed per-error-type description, this is chosen by the caller. If an OCPP module is part of the EVerest configuration, the message is forwarded to the CSMS:

    • OCPP 1.6 (StatusNotification.req):
    • MREC errors: sent as info, truncated to 50 characters. Omitted entirely when the message is empty.
    • all other errors: sent as vendorId, truncated to 255 characters.
    • OCPP 2.x (NotifyEvent.req): sent as techInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
  • trigger_valueobject

    Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.

    • text_reprstring

      Text representation of the value as the raising entity would print it, including a unit where one applies, e.g. 85.3 degC. EVerest passes it on as is and does not parse it. Longer values are truncated to 2500 characters.

      max length 2500
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