.. _everest_api_generic_error_raiser_API: ########################### generic\_error\_raiser\_API ########################### .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestgeneric errors
.. container:: lead 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. .. raw:: html

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 ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_generic_error_raiser_API_op_send_raise_error: send\_raise\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send raise error
Topic
everest_api/1/generic_error_raiser/{module_id}/m2e/raise_error
Direction: Module to EVerest .. raw:: html
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"
      }
.. _everest_api_generic_error_raiser_API_op_send_clear_error: send\_clear\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send clear error
Topic
everest_api/1/generic_error_raiser/{module_id}/m2e/clear_error
.. raw:: html
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"
      }
.. _everest_api_generic_error_raiser_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/generic_error_raiser/{module_id}/m2e/communication_check
.. raw:: html
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 ----------------- .. _everest_api_generic_error_raiser_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/generic_error_raiser/{module_id}/e2m/heartbeat
Direction: EVerest to Module .. raw:: html
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 ======== .. container:: everest-api .. raw:: html
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 ======= .. container:: everest-api .. raw:: html
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.

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