.. _everest_api_power_supply_DC_API: ###################### power\_supply\_DC\_API ###################### .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestDC power supply
.. container:: lead EVerest API definition for DC power supplies API for EVerest API clients implementing DC power supplies. .. raw:: html

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

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_power_supply_DC_API_op_send_voltage_current: send\_voltage\_current ~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/voltage_current
Direction: Module to EVerest .. raw:: html
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.

Payload

object VoltageCurrent

Definition of VoltageCurrent

Example

Example 1 of sending voltage and current.
{
        "voltage_V": 230,
        "current_A": 15
      }
.. _everest_api_power_supply_DC_API_op_send_mode: send\_mode ~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send mode
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/mode
Direction: Module to EVerest .. raw:: html
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"
.. _everest_api_power_supply_DC_API_op_send_capabilities: send\_capabilities ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send current capabilities
Topic
everest_api/1/power_supply_DC/{module_id}/m2e/capabilities
Direction: Module to EVerest .. raw:: html
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.

Payload

object Capabilities

Definition of Capabilities

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
      }
.. _everest_api_power_supply_DC_API_op_send_raise_error: send\_raise\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send raise error
Topic
everest_api/1/power_supply_DC/{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

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"
      }
.. _everest_api_power_supply_DC_API_op_send_clear_error: send\_clear\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send clear error
Topic
everest_api/1/power_supply_DC/{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

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"
      }
.. _everest_api_power_supply_DC_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/power_supply_DC/{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_power_supply_DC_API_op_receive_mode: receive\_mode ~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive mode
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/mode
Direction: EVerest to Module .. raw:: html
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"
      }
.. _everest_api_power_supply_DC_API_op_receive_export_voltage_current: receive\_export\_voltage\_current ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive export voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/export_voltage_current
Direction: EVerest to Module .. raw:: html
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.

Payload

object VoltageCurrent

Definition of VoltageCurrent

Example

Minimal payload generated from the schema generated
{
        "voltage_V": 0,
        "current_A": 0
      }
.. _everest_api_power_supply_DC_API_op_receive_import_voltage_current: receive\_import\_voltage\_current ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive import voltage current
Topic
everest_api/1/power_supply_DC/{module_id}/e2m/import_voltage_current
Direction: EVerest to Module .. raw:: html
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.

Payload

object VoltageCurrent

Definition of VoltageCurrent

Example

Minimal payload generated from the schema generated
{
        "voltage_V": 0,
        "current_A": 0
      }
.. _everest_api_power_supply_DC_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/power_supply_DC/{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
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 ======= .. container:: everest-api .. raw:: html
Capabilities object
object

Additional properties allowed.

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.

VoltageCurrent object
object

Additional properties allowed.

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.

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