power_supply_DC_API¶
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
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¶
- 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.
Payload
Example
{
"voltage_V": 230,
"current_A": 15
}
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
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
OffExportImportFaultExample
"Export"
send_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.
Payload
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¶
- 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.
Example
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
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.
Example
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
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
true
EVerest to client¶
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
Example
{
"mode": "Off",
"charging_phase": "Other"
}
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.
Payload
Example
{
"voltage_V": 0,
"current_A": 0
}
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.
Payload
Example
{
"voltage_V": 0,
"current_A": 0
}
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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
Capabilities 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¶
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
OtherCableCheckPreChargeChargingMode 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
OffExportImportFaultModeRequest object¶
Requested Mode and the current charging state
Additional properties allowed.
-
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 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¶
Additional properties allowed.
-
voltage_Vnumber required
Voltage in volt
-
current_Anumber required
Electric current in amp
ErrorEnum 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.
CommunicationFaultHardwareFaultOverTemperatureUnderTemperatureUnderVoltageACOverVoltageACUnderVoltageDCOverVoltageDCOverCurrentACOverCurrentDCVendorErrorVendorWarningError 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.
-
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 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