.. _everest_api_external_energy_limits_consumer_API: ####################################### external\_energy\_limits\_consumer\_API ####################################### .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestexternal energy limits
.. container:: lead EVerest API definition for external energy limits API to allow EVerest API clients to set energy limits. .. raw:: html

Specification: external_energy_limits_consumer_API.yaml · pionix:de:everest:external_energy_limits_consumer_API

send the client publishes, EVerest consumes (3) receive EVerest publishes, the client consumes (2)
Servers ======= .. container:: everest-api .. raw:: html

default mqtt

default local MQTT

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

The ID of the module as defined in the EVerest config file.

Operations ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_external_energy_limits_consumer_API_op_send_set_external_limits: send\_set\_external\_limits ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send external energy limits
Topic
everest_api/1/external_energy_limits_consumer/{module_id}/m2e/set_external_limits
.. raw:: html
Message Send external energy limits application/json

Message send_set_external_limits

External energy limits

Payload

object ExternalLimits

External Limits data type

Definition of ExternalLimits

Example

Set enforced limits
{
        "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_external_energy_limits_consumer_API_op_send_request_get_capabilities: send\_request\_get\_capabilities ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Request current Capabilities
Topic
everest_api/1/external_energy_limits_consumer/{module_id}/m2e/capabilities/get
Reply
Sent to $message.header#/replyTo as receive_reply_get_capabilities.
Request the most recently published (latched) Capabilities. 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. .. raw:: html
Message Request current Capabilities application/json

Message send_request_get_capabilities

Request the most recently published (latched) Capabilities.

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}"
        }
      }
.. _everest_api_external_energy_limits_consumer_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/external_energy_limits_consumer/{module_id}/m2e/communication_check
.. raw:: html
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

CommunicationCheck
true
EVerest to client ----------------- .. _everest_api_external_energy_limits_consumer_API_op_receive_reply_get_capabilities: receive\_reply\_get\_capabilities ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Reply to get Capabilities request
Topic
Dynamic: the replyTo address from the request's headers. Answers send_request_get_capabilities.
.. raw:: html
Message Reply to get Capabilities request application/json

Message receive_reply_get_capabilities

The most recently published Capabilities.

Payload

oneOf

Exactly one of:

Example

Minimal payload generated from the schema generated
{
        "max_current_A": 0,
        "max_phase_count": 0,
        "nominal_voltage_V": 1,
        "total_power_W": 0
      }
.. _everest_api_external_energy_limits_consumer_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/external_energy_limits_consumer/{module_id}/e2m/heartbeat
.. raw:: html
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 ======== .. container:: everest-api .. raw:: html
MessageSummaryUsed by
send_set_external_limits
Send external energy limits

External energy limits

send_set_external_limits
receive_capabilities
Receive energy node capabilities

Capabilities of the energy node

not used by an operation
send_request_get_capabilities
Request current Capabilities

Request the most recently published (latched) Capabilities.

send_request_get_capabilities
receive_reply_get_capabilities
Reply to get Capabilities request

The most recently published Capabilities.

receive_reply_get_capabilities
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
Message Receive energy node capabilities application/json

Message receive_capabilities

Capabilities of the energy node

Payload

object CapabilityLimits

Configured/rated maximum limits of an energy node

Definition of CapabilityLimits

Example

Example 1
{
        "max_current_A": 16,
        "max_phase_count": 3,
        "nominal_voltage_V": 230,
        "total_power_W": 11040
      }
Schemas ======= .. container:: everest-api .. raw:: html
ExternalLimits object
object

External Limits data type

Additional properties allowed.

FrequencyWattPoint object
object

A point of a frequency-watt curve

Additional properties allowed.

IntegerWithSource object
object

Simple number type with source information

Additional properties allowed.

LimitsReq object
object

Energy flow limiting object request (Evses to EnergyManager)

Additional properties allowed.

LimitsRes object
object

Energy flow limiting object Result (Energy manager to Evses)

Additional properties allowed.

NumberWithSource object
object

Simple number type with source information

Additional properties allowed.

PricePerkWh object
object

Price information for this timepoint

Additional properties allowed.

ScheduleReqEntry object
object

One entry for the time series (request)

Additional properties allowed.

ScheduleResEntry object
object

One entry for the time series (result)

Additional properties allowed.

ScheduleSetpointEntry object
object

One entry for the time series (setpoint request)

Additional properties allowed.

SetpointType object
object

Defines a setpoint

Additional properties allowed.

CapabilityLimits object
object

Configured/rated maximum limits of an energy node

Additional properties allowed.

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