power_supply_DC_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestDC power supply

EVerest API definition for DC power supplies

API for EVerest API clients implementing DC power supplies.

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

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

Servers

default mqtt

default local MQTT

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

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

Operations

Client to EVerest

send_voltage_current

send Send voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/voltage_current

Direction: Module to EVerest

Message Send voltage / current application/json

Message send_voltage_current

Current value of voltage (V) and current (A).

Publish at least once per second (4 Hz recommended), also when the values did not change.

Example

Example 1 of sending voltage and current.
{
  "voltage_V": 230,
  "current_A": 15
}

send_mode

send Send mode
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/mode

Direction: Module to EVerest

Message Send mode application/json

Message send_mode

Current mode of DC power supply.

Informational; EVerest does not act on it.

Payload

string Mode

Mode of the DC power supply

  • Off: Power Supply switched off
  • Export: Charge the vehicle
  • Import: V2G etc
  • Fault: Power supply is in error state
enumOffExportImportFault

Example

Example of sending mode.
"Export"

send_capabilities

send Send current capabilities
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/capabilities

Direction: Module to EVerest

Message Send current capabilities application/json

Message send_capabilities

Current capabilities of the DC power supply. Non-nominal values can be used to update the limits during runtime, e.g. for derating.

Example

Capabilities example
{
  "bidirectional": true,
  "current_regulation_tolerance_A": 0,
  "peak_current_ripple_A": 0,
  "max_export_voltage_V": 0,
  "nominal_max_export_voltage_V": 0,
  "min_export_voltage_V": 0,
  "nominal_min_export_voltage_V": 0,
  "max_export_current_A": 0,
  "nominal_max_export_current_A": 0,
  "min_export_current_A": 0,
  "nominal_min_export_current_A": 0,
  "max_import_voltage_V": 0,
  "nominal_max_import_voltage_V": 0,
  "min_import_voltage_V": 0,
  "nominal_min_import_voltage_V": 0,
  "max_import_current_A": 0,
  "nominal_max_import_current_A": 0,
  "min_import_current_A": 0,
  "nominal_min_import_current_A": 0,
  "max_export_power_W": 0,
  "nominal_max_export_power_W": 0,
  "max_import_power_W": 0,
  "nominal_max_import_power_W": 0,
  "conversion_efficiency_import": 1,
  "conversion_efficiency_export": 1
}

send_raise_error

send Send raise error
Topic
everest_api/1/power_supply_DC/{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

Errors for the power_supply_DC interface. Except for VendorWarning, all error codes will stop the charging session. During all errors, follow the commands for setMode and setVoltageCurrent from EvseManager. If they cannot be sent to the hardware, cache the last values received. Once the PSU is back on-line (e.g. after a CommunicationFault), set the last mode and voltage/current values and only after that clear the error. clear_error must repeat the type and sub_type of the raise.

Definition of Error

Example

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

send_clear_error

send Send clear error
Topic
everest_api/1/power_supply_DC/{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

Errors for the power_supply_DC interface. Except for VendorWarning, all error codes will stop the charging session. During all errors, follow the commands for setMode and setVoltageCurrent from EvseManager. If they cannot be sent to the hardware, cache the last values received. Once the PSU is back on-line (e.g. after a CommunicationFault), set the last mode and voltage/current values and only after that clear the error. clear_error must repeat the type and sub_type of the raise.

Definition of Error

Example

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

send_communication_check

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

receive Receive mode
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/mode

Direction: EVerest to Module

Message Receive mode application/json

Message receive_mode

Receive the requested mode for DC power supply and the current charging phase.

A session usually requests Export with charging_phase CableCheck, then PreCharge, then Charging, but do not rely on a fixed sequence. Export can arrive while the output is already on, only to announce a new charging_phase: keep the output on. Off can arrive between phases and ends the session. After Off, bring the output voltage down: after CableCheck, EVerest waits at most 10 s for it to drop below 60 V. Import replaces Export while energy flows from the car. After Off, a new setpoint arrives before the next Export.

Payload

object ModeRequest

Requested Mode and the current charging state

Definition of ModeRequest

Example

Minimal payload generated from the schema generated
{
  "mode": "Off",
  "charging_phase": "Other"
}

receive_export_voltage_current

receive Receive export voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/export_voltage_current

Direction: EVerest to Module

Message Receive export voltage / current application/json

Message receive_export_voltage_current

Receive the requested voltage and current when exporting energy to the car.

When EVerest switches the output on, the setpoint arrives before the Export mode request. When the output is already on and only the charging phase changes, the mode request arrives first. During CableCheck EVerest requests 2 A, during PreCharge at least 2 A. If the measured voltage does not come within 10 V of the CableCheck setpoint within 10 s, the cable check fails. A current below min_export_current_A, including 0 A, means: deliver no current (0 A, +/- 0.15 A, IEC 61851-23:2023 CC.5.5.2). Do not raise it to the minimum. If the hardware cannot regulate to 0 A, switch its output off, keep the mode, and switch it on again when a current at or above the minimum is requested.

Example

Minimal payload generated from the schema generated
{
  "voltage_V": 0,
  "current_A": 0
}

receive_import_voltage_current

receive Receive import voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/import_voltage_current

Direction: EVerest to Module

Message Receive import voltage / current application/json

Message receive_import_voltage_current

Receive the requested voltage and current when importing energy from the car.

A current below min_import_current_A, including 0 A, means: deliver no current (0 A, +/- 0.15 A, IEC 61851-23:2023 CC.5.5.2). Do not raise it to the minimum. If the hardware cannot regulate to 0 A, switch its output off, keep the mode, and switch it on again when a current at or above the minimum is requested.

Example

Minimal payload generated from the schema generated
{
  "voltage_V": 0,
  "current_A": 0
}

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/power_supply_DC/{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
receive_mode
Receive mode

Receive the requested mode for DC power supply and the current charging phase.

receive_mode
receive_export_voltage_current
Receive export voltage / current

Receive the requested voltage and current when exporting energy to the car.

receive_export_voltage_current
receive_import_voltage_current
Receive import voltage / current

Receive the requested voltage and current when importing energy from the car.

receive_import_voltage_current
send_voltage_current
Send voltage / current

Current value of voltage (V) and current (A).

send_voltage_current
send_mode
Send mode

Current mode of DC power supply.

send_mode
send_capabilities
Send current capabilities

Current capabilities of the DC power supply. Non-nominal values can be used to update the limits during runtime, e.g. for derating.

send_capabilities
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

Capabilities object
object

Additional properties allowed.

  • bidirectionalboolean required
    • true: support bidirectional energy flow
    • false: support only Export mode (output)
  • current_regulation_tolerance_Anumber required

    Absolute magnitude of the regulation tolerance. Measured in Ampere.

  • peak_current_ripple_Anumber required

    Peak-to-peak magnitude of the current ripple measured in Ampere. This value is transmitted to the vehicle and can potentially influence the charging speed.

  • max_export_voltage_Vnumber required

    Maximum voltage that the power supply can output on the DC side. Measured in Volt.

  • nominal_max_export_voltage_Vnumber

    Nominal maximum voltage that the power supply outputs in Volt.

  • min_export_voltage_Vnumber required

    Minimum voltage that the power supply can output on the DC side. Measured in Volt.

  • nominal_min_export_voltage_Vnumber

    Nominal minimum voltage that the power supply outputs in Volt.

  • max_export_current_Anumber required

    Maximum current that the power supply can output on the DC side. Measured in Ampere.

  • nominal_max_export_current_Anumber

    Nominal maximum current that the power supply can output in Ampere.

  • min_export_current_Anumber required

    Minimum current limit on the DC side that the power supply can set. Measured in Ampere. EVerest may request currents below it, including 0 A, see receive_export_voltage_current.

  • nominal_min_export_current_Anumber

    Nominal minimum current limit that the power supply can set in Ampere.

  • max_import_voltage_Vnumber

    Maximum voltage on the DC side that the power supply supports to import energy. Measured in Volt.

  • nominal_max_import_voltage_Vnumber

    Nominal maximum voltage on the DC side that the power supply supports to import energy. Measured in Volt.

  • min_import_voltage_Vnumber

    Minimum voltage on the DC side that the power supply requires to import energy. Measured in Volt.

  • nominal_min_import_voltage_Vnumber

    Nominal minimum voltage on the DC side that the power supply requires to import energy. Measured in Volt.

  • max_import_current_Anumber

    Maximum current that the power supply can sink on the DC side. Measuered in Ampere.

  • nominal_max_import_current_Anumber

    Nominal maximum current that the power supply can output in Ampere.

  • min_import_current_Anumber

    Minimum limit for sinking current on the DC side that the power supply can set. Measured in Ampere. EVerest may request currents below it, including 0 A, see receive_import_voltage_current.

  • nominal_min_import_current_Anumber

    Nominal minimum current limit that the power supply can set in Ampere.

  • max_export_power_Wnumber required

    Maximum export power on the DC side that the power supply can source. Measured in Watt.

  • nominal_max_export_power_Wnumber

    Nominal maximum export power that the power supply can output in Watt.

  • max_import_power_Wnumber

    Maximum import power on the DC side that the power supply can sink. Measured in Watt.

  • nominal_max_import_power_Wnumber

    Nominal maximum import power that the power supply can sink in Watt.

  • conversion_efficiency_importnumber

    Typical import efficiency used for energy management

    min 0max 1
  • conversion_efficiency_exportnumber

    Typical export efficiency used for energy management

    min 0max 1
ChargingPhase string
string

Charging phase of the current mode change.

  • Other: Used for e.g. switching it off or any other internal testing not related to real charging.
  • CableCheck
  • PreCharge
  • Charging
enumOtherCableCheckPreChargeCharging
Mode string
string

Mode of the DC power supply

  • Off: Power Supply switched off
  • Export: Charge the vehicle
  • Import: V2G etc
  • Fault: Power supply is in error state
enumOffExportImportFault
ModeRequest object
object

Requested Mode and the current charging state

Additional properties allowed.

  • modestring Mode

    Mode of the DC power supply

    • Off: Power Supply switched off
    • Export: Charge the vehicle
    • Import: V2G etc
    • Fault: Power supply is in error state
    enumOffExportImportFault
  • charging_phasestring ChargingPhase

    Charging phase of the current mode change.

    • Other: Used for e.g. switching it off or any other internal testing not related to real charging.
    • CableCheck
    • PreCharge
    • Charging
    enumOtherCableCheckPreChargeCharging
VoltageCurrent object
object

Additional properties allowed.

  • voltage_Vnumber required

    Voltage in volt

  • current_Anumber required

    Electric current in amp

ErrorEnum string
string

Type of error

  • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
  • HardwareFault: The hardware reported a fault
  • OverTemperature: The hardware shut down because of over temperature. This should not be used if the power supply can handle temperature reduction by reducing output power, in this case update the capabilities as needed.
  • UnderTemperature: The hardware cannot operate because it is too cold
  • UnderVoltageAC: The AC input voltage is too low
  • OverVoltageAC: The AC input voltage is too high
  • UnderVoltageDC: The DC output voltage is too low
  • OverVoltageDC: The DC output voltage is too high
  • OverCurrentAC: The AC input current is too high
  • OverCurrentDC: The DC output current it too high
  • VendorError: Vendor specific error code. Will stop charging session.
  • VendorWarning: Vendor specific error code. Charging may continue.
enumCommunicationFaultHardwareFaultOverTemperatureUnderTemperatureUnderVoltageACOverVoltageACUnderVoltageDCOverVoltageDCOverCurrentACOverCurrentDCVendorErrorVendorWarning
Error object
object

Errors for the power_supply_DC interface. Except for VendorWarning, all error codes will stop the charging session. During all errors, follow the commands for setMode and setVoltageCurrent from EvseManager. If they cannot be sent to the hardware, cache the last values received. Once the PSU is back on-line (e.g. after a CommunicationFault), set the last mode and voltage/current values and only after that clear the error. clear_error must repeat the type and sub_type of the raise.

Additional properties allowed.

  • typestring requiredErrorEnum

    Type of error

    • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
    • HardwareFault: The hardware reported a fault
    • OverTemperature: The hardware shut down because of over temperature. This should not be used if the power supply can handle temperature reduction by reducing output power, in this case update the capabilities as needed.
    • UnderTemperature: The hardware cannot operate because it is too cold
    • UnderVoltageAC: The AC input voltage is too low
    • OverVoltageAC: The AC input voltage is too high
    • UnderVoltageDC: The DC output voltage is too low
    • OverVoltageDC: The DC output voltage is too high
    • OverCurrentAC: The AC input current is too high
    • OverCurrentDC: The DC output current it too high
    • VendorError: Vendor specific error code. Will stop charging session.
    • VendorWarning: Vendor specific error code. Charging may continue.
    enumCommunicationFaultHardwareFaultOverTemperatureUnderTemperatureUnderVoltageACOverVoltageACUnderVoltageDCOverVoltageDCOverCurrentACOverCurrentDCVendorErrorVendorWarning
  • 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