dc_external_derate_consumer_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestdc external derate

EVerest API definition for external derating of a DC powersupply

Specification of a the EVerest API for implementing DC power supply derating functionality. This allows integration of hardware-specific derating logic, for example adjusting output current based on internal temperature measurements. In the simplest case, derating is determined solely by the plug temperature, as reported by the evse_board_support driver. This value is exposed here for convenience. More advanced implementations may incorporate additional temperature sensors, such as relay temperature or other relevant measurements, to enable more precise control. Note that this is for DC output in DC charging only. To derate for AC chargers (or the AC side in DC chargers), use an EnergyNode and set external_limits instead.

Specification: dc_external_derate_consumer_API.yaml · pionix:de:everest:dc_external_derate_API

send the client publishes, EVerest consumes (3) receive EVerest publishes, the client consumes (3)

Servers

default mqtt

default local MQTT

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

The ID of the module has to be defined by cfg_target_module_id in EVerest config file.

Operations

Client to EVerest

send_set_external_derating

send Send set external derating
Topic
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/set_external_derating
Message Send set external derating application/json

Message send_set_external_derating

Set external derating values. The provided values will be merged with the existing internal capabilities of the power supply: The minimum of the internal and external values will be used. All values are optional, unset means no limit, so {} lifts every derating. A payload that is not such an object, has unknown properties or carries a value that is not a JSON number is ignored with a log warning and leaves the derating in force.

Payload

object ExternalDerating

Derate DC power supply Capabilities from an external source.

Definition of ExternalDerating

Example

Limit to 15A charging
{
  "max_export_current_A": 15
}

send_request_get_plug_temperature_C

send Request current Plug Temperature C
Topic
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/plug_temperature_C/get
Reply
Sent to $message.header#/replyTo as receive_reply_get_plug_temperature_C.

Request the most recently published (latched) Plug Temperature C. The reply will be sent to the replyTo address specified in the message headers. If no latched value is available yet, a null payload will be sent.

Message Request current Plug Temperature C application/json

Message send_request_get_plug_temperature_C

Request the most recently published (latched) Plug Temperature C.

Payload

object
  • headersobject
    • replyTostring

      Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.

      min length 1

Example

Example 1
{
  "headers": {
    "replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
  }
}

send_communication_check

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

Example 1
true

EVerest to client

receive_plug_temperature_C

receive Receive the plug temperature
Topic
everest_api/1/dc_external_derate_consumer/{module_id}/e2m/plug_temperature_C
Message Receive the plug temperature application/json

Message receive_plug_temperature_C

Current temperature of the plug in degree celsius

Payload

Temperature in degree celsius

Example

Minimal payload generated from the schema generated
0

receive_reply_get_plug_temperature_C

receive Reply to get Plug Temperature C request
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_get_plug_temperature_C.
Message Reply to get Plug Temperature C request application/json

Message receive_reply_get_plug_temperature_C

The most recently published Plug Temperature C.

Payload

oneOf

Exactly one of:

Example

Minimal payload generated from the schema generated
0

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/dc_external_derate_consumer/{module_id}/e2m/heartbeat
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
send_set_external_derating
Send set external derating

Set external derating values. The provided values will be merged with the existing internal capabilities of the power supply: The minimum of the internal and external values will be used. All values are optional, unset means no limit, so {} lifts every derating. A payload that is not such an object, has unknown properties or carries a value that is not a JSON number is ignored with a log warning and leaves the derating in force.

send_set_external_derating
receive_plug_temperature_C
Receive the plug temperature

Current temperature of the plug in degree celsius

receive_plug_temperature_C
send_request_get_plug_temperature_C
Request current Plug Temperature C

Request the most recently published (latched) Plug Temperature C.

send_request_get_plug_temperature_C
receive_reply_get_plug_temperature_C
Reply to get Plug Temperature C request

The most recently published Plug Temperature C.

receive_reply_get_plug_temperature_C
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

ExternalDerating object
object

Derate DC power supply Capabilities from an external source.

Additional properties forbidden.

  • max_export_current_Anumber

    Maximum current that the power supply can output in Ampere

  • max_import_current_Anumber

    Maximum current that the power supply can sink in Ampere

  • max_export_power_Wnumber

    Maximum export power that the power supply can output in Watt

  • max_import_power_Wnumber

    Maximum import power that the power supply can sink in Watt

PlugTemperature number
number

Temperature in degree celsius

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