.. _everest_api_dc_external_derate_consumer_API: ################################### dc\_external\_derate\_consumer\_API ################################### .. container:: everest-api overview .. raw:: html
Specification: dc_external_derate_consumer_API.yaml · pionix:de:everest:dc_external_derate_API
default mqtt
default local MQTT
localhost:1883everest_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.
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/set_external_deratingapplication/jsonMessage 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
Derate DC power supply Capabilities from an external source.
Example
{
"max_export_current_A": 15
}
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/plug_temperature_C/get$message.header#/replyTo as receive_reply_get_plug_temperature_C.application/jsonMessage send_request_get_plug_temperature_C
Request the most recently published (latched) Plug Temperature C.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/dc_external_derate_consumer/{module_id}/m2e/communication_checkapplication/jsonMessage 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_api/1/dc_external_derate_consumer/{module_id}/e2m/plug_temperature_Capplication/jsonMessage receive_plug_temperature_C
Current temperature of the plug in degree celsius
Payload
Temperature in degree celsius
Example
0
replyTo address from the request's headers.
Answers send_request_get_plug_temperature_C.application/jsonMessage receive_reply_get_plug_temperature_C
The most recently published Plug Temperature C.
Payload
Example
0
everest_api/1/dc_external_derate_consumer/{module_id}/e2m/heartbeatapplication/jsonMessage 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
Derate DC power supply Capabilities from an external source.
Additional properties forbidden.
Maximum current that the power supply can output in Ampere
Maximum current that the power supply can sink in Ampere
Maximum export power that the power supply can output in Watt
Maximum import power that the power supply can sink in Watt
Temperature in degree celsius
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.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached