.. _everest_api_external_energy_limits_consumer_API: ####################################### external\_energy\_limits\_consumer\_API ####################################### .. container:: everest-api overview .. raw:: html
Specification: external_energy_limits_consumer_API.yaml · pionix:de:everest:external_energy_limits_consumer_API
default mqtt
default local MQTT
localhost:1883everest_api/1/external_energy_limits_consumer/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
everest_api/1/external_energy_limits_consumer/{module_id}/m2e/set_external_limitsapplication/jsonMessage send_set_external_limits
External energy limits
Payload
Example
{
"schedule_import": [
{
"timestamp": "2019-08-24T14:15:22Z",
"limits_to_root": {
"total_power_W": {
"value": 0,
"source": "string"
},
"ac_max_current_A": {
"value": 0,
"source": "string"
},
"ac_min_current_A": {
"value": 0,
"source": "string"
},
"ac_max_phase_count": {
"value": 0,
"source": "string"
},
"ac_min_phase_count": {
"value": 0,
"source": "string"
},
"ac_supports_changing_phases_during_charging": true,
"ac_number_of_active_phases": 1
},
"limits_to_leaves": {
"total_power_W": {
"value": 0,
"source": "string"
},
"ac_max_current_A": {
"value": 0,
"source": "string"
},
"ac_min_current_A": {
"value": 0,
"source": "string"
},
"ac_max_phase_count": {
"value": 0,
"source": "string"
},
"ac_min_phase_count": {
"value": 0,
"source": "string"
},
"ac_supports_changing_phases_during_charging": true,
"ac_number_of_active_phases": 1
},
"conversion_efficiency": 1,
"price_per_kwh": {
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"currency": "str"
}
}
],
"schedule_export": [
{
"timestamp": "2019-08-24T14:15:22Z",
"limits_to_root": {
"total_power_W": {
"value": 0,
"source": "string"
},
"ac_max_current_A": {
"value": 0,
"source": "string"
},
"ac_min_current_A": {
"value": 0,
"source": "string"
},
"ac_max_phase_count": {
"value": 0,
"source": "string"
},
"ac_min_phase_count": {
"value": 0,
"source": "string"
},
"ac_supports_changing_phases_during_charging": true,
"ac_number_of_active_phases": 1
},
"limits_to_leaves": {
"total_power_W": {
"value": 0,
"source": "string"
},
"ac_max_current_A": {
"value": 0,
"source": "string"
},
"ac_min_current_A": {
"value": 0,
"source": "string"
},
"ac_max_phase_count": {
"value": 0,
"source": "string"
},
"ac_min_phase_count": {
"value": 0,
"source": "string"
},
"ac_supports_changing_phases_during_charging": true,
"ac_number_of_active_phases": 1
},
"conversion_efficiency": 1,
"price_per_kwh": {
"timestamp": "2019-08-24T14:15:22Z",
"value": 0,
"currency": "str"
}
}
],
"schedule_setpoints": [
{
"timestamp": "2019-08-24T14:15:22Z",
"setpoint": {
"ac_current_A": 0,
"total_power_W": 0,
"frequency_table": [
{
"frequency_Hz": 0,
"total_power_W": 0
}
],
"priority": 1000,
"source": "string"
}
}
]
}
everest_api/1/external_energy_limits_consumer/{module_id}/m2e/capabilities/get$message.header#/replyTo as receive_reply_get_capabilities.application/jsonMessage send_request_get_capabilities
Request the most recently published (latched) Capabilities.
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/external_energy_limits_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
replyTo address from the request's headers.
Answers send_request_get_capabilities.application/jsonMessage receive_reply_get_capabilities
The most recently published Capabilities.
Payload
Exactly one of:
Configured/rated maximum limits of an energy node
Example
{
"max_current_A": 0,
"max_phase_count": 0,
"nominal_voltage_V": 1,
"total_power_W": 0
}
everest_api/1/external_energy_limits_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
application/jsonMessage receive_capabilities
Capabilities of the energy node
Payload
Configured/rated maximum limits of an energy node
Example
{
"max_current_A": 16,
"max_phase_count": 3,
"nominal_voltage_V": 230,
"total_power_W": 11040
}
External Limits data type
Additional properties allowed.
Energy import/limits time series. The first entry is special as it will be active already now even if the timestamp is in the future, so it is good practice to set the first entry to current time. The time series can have arbitrary time difference between entries and all timestamps are absolute points in time. The last entry is valid for any time after the schedule ends.
Energy export/limits time series. The first entry is special as it will be active already now even if the timestamp is in the future, so it is good practice to set the first entry to current time. The time series can have arbitrary time difference between entries and all timestamps are absolute points in time. The last entry is valid for any time after the schedule ends.
Setpoints time series. The first entry is special as it will be active already now even if the timestamp is in the future, so it is good practice to set the first entry to current time. The time series can have arbitrary time difference between entries and all timestamps are absolute points in time.
A point of a frequency-watt curve
Additional properties allowed.
The frequency in Hz
The total power in W
Simple number type with source information
Additional properties allowed.
Value
Source of the value
Energy flow limiting object request (Evses to EnergyManager)
Additional properties allowed.
Total power limit in Watt. Can be used for DC or as additional limit for AC.
Max current limit (per phase) in Ampere. AC only.
Min AC current limit per phase in Ampere. Values below that value indicate the device will not work properly, i.e. it will not charge below 6 amps. AC only.
Limit to number of phases. Omit if number of phases are not limited.
Minimal number of phases. Omit if number of phases are not limited.
Indicate whether phase switching is allowed during charging or not
Number of phases currently offered to the vehicle (1ph or 3ph mode)
Energy flow limiting object Result (Energy manager to Evses)
Additional properties allowed.
Total power limit in Watt. Can be used for DC or as additional limit for AC. Negative numbers mean export to grid direction.
Max current limit (per phase) in Ampere. AC only. Negative numbers mean export to grid direction.
Limit to number of phases. Omit if number of phases are not limited.
Simple number type with source information
Additional properties allowed.
Value
Source of the value
Price information for this timepoint
Additional properties allowed.
Absolute timestamp for this sample in RFC3339 format
Price per kWh (cost)
Currency in 3 digit ISO 4217
One entry for the time series (request)
Additional properties allowed.
Absolute timestamp for this sample in RFC3339 format
Limit for this timestamp, for the root facing side
Limit for this timestamp, for the leaves facing side
Conversion efficiency from root to leaves side (e.g. AC/DC efficiency). Defaults to one if not specified.
One entry for the time series (result)
Additional properties allowed.
Absolute timestamp for this sample in RFC3339 format
Limit for this timestamp, for the root facing side
One entry for the time series (setpoint request)
Additional properties allowed.
Absolute timestamp for this sample in RFC3339 format
Defines a setpoint
Additional properties allowed.
The target value in amps per phase for either charging or discharging depending on the sign. Positive values indicate charging, while negative values indicate discharging. Do not set ac_current_A, total_power_W and frequency_table properties simultaneously.
The target value for the total power for either charging or discharging depending on the sign. Positive values indicate charging, while negative values indicate discharging. Do not set ac_current_A, total_power_W and frequency_table properties simultaneously.
Frequency table for the setpoint. When used it must contain at least two coordinates to specify a power-frequency table to use during this period. If the array is empty, no frequency setpoint is set. Do not set ac_current_A, total_power_W and frequency_table properties simultaneously.
If multiple conflicting setpoints are specified in the tree, the priority selects which one is used. Highest priority is 0, lowest priority is 1000.
Source of the setpoint
Configured/rated maximum limits of an energy node
Additional properties allowed.
Max current limit (per phase) in Ampere.
Number of phases covered by this fuse
Nominal AC voltage between a single phase and neutral in Volt
Total power limit in Watt. For AC energy nodes, this usually is: nominal_voltage_V x max_current_A x max_phase_count
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