generic_error_raiser_API¶
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
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¶
- 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
Example
{
"type": "CommunicationFault",
"sub_type": "subtype",
"message": "message"
}
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
Example
{
"type": "CommunicationFault",
"sub_type": "subtype",
"message": "message"
}
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
true
EVerest to client¶
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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
ErrorEnum 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.
CommunicationFaultVendorErrorVendorWarningError object¶
Error object with type, subtype and message.
Additional properties allowed.
-
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 astechInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
- OCPP 1.6 (
-
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¶
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¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached