.. _everest_api_powermeter_API: ############### powermeter\_API ############### .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for powermeters API for EVerest API clients implementing powermeter. .. raw:: htmlSpecification: powermeter_API.yaml · pionix:de:everest:powermeter_API
default mqtt
default local MQTT
localhost:1883everest_api/1/powermeter/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
replyTo address from the request's headers.
Answers receive_request_start_transaction.application/jsonMessage start_transaction_reply
The start transaction reply message contains the request status. It indicates whether the transaction could be started successfully or not. Further values may be added to the message depending on the value of the status.
Payload
Return value when a transaction is started.
Example
{
"status": "OK",
"error": "string",
"transaction_min_stop_time": "2019-08-24T14:15:22Z",
"transaction_max_stop_time": "2019-08-24T14:15:22Z"
}
replyTo address from the request's headers.
Answers receive_request_stop_transaction.application/jsonMessage stop_transaction_reply
The stop transaction reply message contains the request status. It indicates whether the transaction could be stopped successfully or not. If successful the signed meter value report must be provided in this message too.
Payload
Report returned when a signed transaction is requested to stop. If successful, includes the signed meter value object. In case of an error, an additional error message can be provided.
Example
{
"status": "OK",
"signed_meter_value": {
"signed_meter_data": "string",
"signing_method": "string",
"encoding_method": "string",
"public_key": "string",
"timestamp": "2019-08-24T14:15:22Z"
},
"error": "string"
}
everest_api/1/powermeter/{module_id}/m2e/powermeter_valuesapplication/jsonMessage send_powermeter_values
The send powermeter values message contains the measured dataset. It requires a timestamp and the imported energy in Wh at least. Other values are optional.
Payload
Example
{
"current_A": {
"L1": 0,
"L2": 0,
"L3": 0,
"N": 0
},
"energy_Wh_import": {
"L1": 0,
"L2": 0,
"L3": 0,
"total": 0
},
"frequency_Hz": {
"L1": 50.099517822265625,
"L2": 50.099517822265625,
"L3": 50.099517822265625
},
"meter_id": "THE_POWERMETER",
"phase_seq_error": false,
"power_W": {
"L1": 0,
"L2": 0,
"L3": 0,
"total": 0
},
"timestamp": "2024-09-27T07:21:14.127Z",
"voltage_V": {
"L1": 228.47914123535156,
"L2": 228.47914123535156,
"L3": 228.47914123535156
}
}
everest_api/1/powermeter/{module_id}/m2e/public_key_ocmfapplication/jsonMessage send_public_key_ocmf
Provide the public key used to sign the OCMF data
Payload
The public key as string used to sign the OCMF data
Example
"THE_KEY"
everest_api/1/powermeter/{module_id}/m2e/capabilitiesapplication/jsonMessage send_capabilities
Capabilities of the power meter, e.g. the minimum current above which the meter measures within its accuracy class (required by the German Calibration Law, Eichrecht). Publish at least once during start up and on every change if supported. Absence of individual fields means no restriction.
Payload
Capabilities of this power meter. All fields are optional; an absent field means no restriction / not supported.
Example
{
"min_import_current_A": 10,
"min_export_current_A": 10
}
everest_api/1/powermeter/{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/powermeter/{module_id}/e2m/start_transaction$message.header#/replyTo as send_reply_start_transaction.application/jsonMessage start_transaction_req
The start transaction request message contains the required input parameter for starting an OCMF transaction. These values will be included in the signed OCMF packet of the stop transaction reply.
Payload
Additional properties allowed.
The topic to which to send the reply. If this information is missing, the command will still be accepted, but no response will be sent.
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"evse_id": "string",
"transaction_id": "string",
"identification_status": "ASSIGNED",
"identification_flags": [
"RFID_NONE"
],
"identification_type": "NONE"
}
}
everest_api/1/powermeter/{module_id}/e2m/stop_transaction$message.header#/replyTo as send_reply_stop_transaction.application/jsonMessage stop_transaction_req
The stop transaction request message contains the transaction id to stop the corresponding transaction.
Payload
Additional properties allowed.
The topic to which to send the reply. If this information is missing, the command will still be accepted, but no response will be sent.
The transaction id from the start transaction request, as a plain JSON string. An empty string stops all open transactions; EVerest sends it at start-up.
Examples
{
"headers": {
"replyTo": "everest_api/1/powermeter/pm/m2e/reply/0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0"
},
"payload": "55f31fea-548b-4d41-9887-bfb964141a5e"
}
{
"headers": {
"replyTo": "everest_api/1/powermeter/pm/m2e/reply/0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0"
},
"payload": ""
}
everest_api/1/powermeter/{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
Capabilities of this power meter. All fields are optional; an absent field means no restriction / not supported.
Additional properties forbidden.
Minimum current in Ampere in import direction (charging) the meter can measure within its accuracy class (e.g. required by German Calibration Law).
Minimum current in Ampere in export direction (discharging) the meter can measure within its accuracy class.
RFID_NONERFID_PLAINRFID_RELATEDRFID_PSKOCPP_NONEOCPP_RSOCPP_AUTHOCPP_RS_TLSOCPP_AUTH_TLSOCPP_CACHEOCPP_WHITELISTOCPP_CERTIFIEDISO15118_NONEISO15118_PNCPLMN_NONEPLMN_RINGPLMN_SMSNONEHEARSAYTRUSTEDVERIFIEDCERTIFIEDSECUREMISMATCHINVALIDOUTDATEDUNKNOWNNONEDENIEDUNDEFINEDISO14443ISO15693EMAIDEVCCIDEVCOIDISO7812CARD_TXN_NRCENTRALCENTRAL_1CENTRAL_2LOCALLOCAL_1LOCAL_2PHONE_NUMBERKEY_CODEGeneral status for user assignment
ASSIGNEDNOT_ASSIGNEDMeasured dataset (AC or DC)
Additional properties allowed.
Timestamp of measurement in RFC3339 format
A (user defined) meter id (e.g. id printed on the case)
AC only: true for 3 phase rotation error (ccw)
Imported energy in Wh (from grid)
Additional properties allowed.
DC / AC Sum value (which is relevant for billing)
AC L1 value only
AC L2 value only
AC L3 value only
Exported energy in Wh (to grid)
Additional properties allowed.
DC / AC Sum value (which is relevant for billing)
AC L1 value only
AC L2 value only
AC L3 value only
Instantaneous power in Watt. Negative values are exported, positive values imported Energy.
Additional properties allowed.
DC / AC Sum value
AC L1 value only
AC L2 value only
AC L3 value only
Voltage in Volts
Additional properties allowed.
DC voltage
AC L1 value only
AC L2 value only
AC L3 value only
Reactive power VAR
Additional properties allowed.
VAR total
VAR phase A
VAR phase B
VAR phase C
Current in ampere
Additional properties allowed.
DC current
AC L1 value only
AC L2 value only
AC L3 value only
AC Neutral value only
Grid frequency in Hertz
Additional properties allowed.
AC L1 value
AC L2 value
AC L3 value
Imported energy in Wh (from grid)
Additional properties allowed.
DC / AC Sum value (which is relevant for billing)
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L1 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Exported energy in Wh (to grid)
Additional properties allowed.
DC / AC Sum value (which is relevant for billing)
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L1 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Instantaneous power in Watt. Negative values are exported, positive values imported Energy.
Additional properties allowed.
DC / AC Sum value
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L1 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Voltage in Volts
Additional properties allowed.
DC voltage
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L1 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Reactive power VAR
Additional properties allowed.
VAR total
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
VAR phase A
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
VAR phase B
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
VAR phase C
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Current in ampere
Additional properties allowed.
DC current
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L1 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC Neutral value only
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Grid frequency in Hertz
Additional properties allowed.
AC L1 value
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L2 value
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
AC L3 value
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Signed collection of instantaneous meter values if supported by the meter. This is intended for meters that only support signing a collection of meter values.
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
An array of temperature sensors expressed in C, their definition and meaning is product specific
Temperature sensor expressed in C and a description (vendor specific) allowing to identify its purpose or meaning
The public key as string used to sign the OCMF data
Return value when a transaction is started.
Additional properties allowed.
Response status that indicates whether the transaction start request could successfully be performed.
OKNOT_SUPPORTEDUNEXPECTED_ERRORIf status is not OK, a verbose error message.
Earliest point in time the started transaction can be stopped again (if a minimum duration is required by the meter); yields a RFC3339 timestamp.
Deadline for the transaction to be stopped again (if a minimum duration is required by the meter); yields a RFC3339 timestamp.
The signed meter value report for start of transaction. Only set if the meter provides separate values for start and stop.
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
Additional properties allowed.
Id of this EVSE
OCPP transaction UUID
OCMF Identification Status (IS): General status for user assignment
ASSIGNEDNOT_ASSIGNEDOCMF Identification Level (IL): Encoded overall status of the user assignment
NONEHEARSAYTRUSTEDVERIFIEDCERTIFIEDSECUREMISMATCHINVALIDOUTDATEDUNKNOWNOCMF Identification Flags (IF): Detailed statements about the user assignment, represented by one or more identifiers
RFID_NONERFID_PLAINRFID_RELATEDRFID_PSKOCPP_NONEOCPP_RSOCPP_AUTHOCPP_RS_TLSOCPP_AUTH_TLSOCPP_CACHEOCPP_WHITELISTOCPP_CERTIFIEDISO15118_NONEISO15118_PNCPLMN_NONEPLMN_RINGPLMN_SMSOCMF Identification Type (IT): Type of identification data
NONEDENIEDUNDEFINEDISO14443ISO15693EMAIDEVCCIDEVCOIDISO7812CARD_TXN_NRCENTRALCENTRAL_1CENTRAL_2LOCALLOCAL_1LOCAL_2PHONE_NUMBERKEY_CODEOCMF Identification Data (ID): The actual identification data e.g. a hex-coded UID according to ISO 14443.
A textual description used to identify a unique tariff. This field is intended for the tariff designation in "Direct Payment" use case.
Report returned when a signed transaction is requested to stop. If successful, includes the signed meter value object. In case of an error, an additional error message can be provided.
Additional properties allowed.
Response status that indicates whether the transaction stop request could successfully be performed.
OKNOT_SUPPORTEDUNEXPECTED_ERRORThe signed meter value report for start of transaction. Needs to be filled if meter provides separate values for start and stop.
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
The signed meter value report of the stopped transaction. Must be provided if status is OK and a specific transaction was stopped; it is absent when an empty transaction id cancelled all transactions. A meter that does not sign transactions replies NOT_SUPPORTED.
Additional properties allowed.
Signed meter data (encoded in a string representation with eg. Base64)
Method used to create the signature
Method used to encode the meter values before signing them
Public key (encoded in a string representation with eg. Base64)
Timestamp of measurement in RFC3339 format
If status is not OK, a verbose error message.
Temperature sensor expressed in C and a description (vendor specific) allowing to identify its purpose or meaning
Additional properties allowed.
The temperature of the sensor measured in C
A (vendor specific) ID if required
Location of the measurement
Status of a start or stop transaction - used in start or stop transaction reply.
OKNOT_SUPPORTEDUNEXPECTED_ERRORUnit types
Unit types signed
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