dc_external_derate_consumer_API¶
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
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_idin EVerest config file.
Operations¶
Client to EVerest¶
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.
Example
{
"max_export_current_A": 15
}
send_request_get_plug_temperature_C¶
- Topic
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/plug_temperature_C/get- Reply
- Sent to
$message.header#/replyToas 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
-
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
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
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
true
EVerest to client¶
receive_plug_temperature_C¶
- 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
0
receive_reply_get_plug_temperature_C¶
- Topic
- Dynamic: the
replyToaddress 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
Example
0
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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
ExternalDerating 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¶
Temperature in degree celsius
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