API for EVerest API clients implementing powermeter.
default local MQTT
The ID of the module as defined in the EVerest config file.
Request to reply.
This operation is used to handle the request to start a new transaction on the powermeter (for signed metering according to German Eichrecht).
Available only on servers:
Accepts the following message:
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.
{
"headers": {
"replyTo": "string"
},
"payload": {
"evse_id": "string",
"transaction_id": "string",
"identification_status": "ASSIGNED",
"identification_level": "NONE",
"identification_flags": [
"RFID_NONE"
],
"identification_type": "NONE",
"identification_data": "string",
"tariff_text": "string"
}
}
Dynamically defined channel. Used to reply to a start_transaction message.
Request to reply.
This operation is used to handle the request to start a new transaction on the powermeter (for signed metering according to German Eichrecht).
Available only on servers:
Accepts the following message:
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.
Return value when a transaction is started.
{
"status": "OK",
"error": "string",
"transaction_min_stop_time": "2019-08-24T14:15:22Z",
"transaction_max_stop_time": "2019-08-24T14:15:22Z"
}
Request to reply.
This operation is used to handle the request to stop the transaction on the powermeter and ask for the signed metering information in a reply.
Available only on servers:
Accepts the following message:
The stop transaction request message contains the transaction id to stop the corresponding transaction.
{
"headers": {
"replyTo": "string"
},
"payload": {
"transaction_id": "string"
}
}
Dynamically defined channel. Used to reply to a stop_transaction message.
Request to reply.
This operation is used to handle the request to stop the transaction on the powermeter and ask for the signed metering information in a reply.
Available only on servers:
Accepts the following message:
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.
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.
{
"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"
}
Direction: Module to EVerest
This operation is used to send a dataset of measured values. The timestamp and the imported energy (in Wh) are required. Other values are optional.
Available only on servers:
Accepts the following message:
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.
Measured dataset (AC or DC)
{
"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
}
}
Accepts the following message:
Provide the public key used to sign the OCMF data
The public key as string used to sign the OCMF data
THE_KEY
Accepts the following message:
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Heartbeat
Accepts the following message:
Signal to EVerest that communication is good or check shall be stopped
Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'
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.
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.
Return value when a transaction is started.
The stop transaction request message contains the transaction id to stop the corresponding transaction.
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.
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.
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.
Measured dataset (AC or DC)
Provide the public key used to sign the OCMF data
The public key as string used to sign the OCMF data
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Signal to EVerest that communication is good or check shall be stopped
Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'
General status for user assignment
Measured dataset (AC or DC)
The public key as string used to sign the OCMF data
Return value when a transaction is started.
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.
Temperature sensor expressed in C and a description (vendor specific) allowing to identify its purpose or meaning
Status of a start or stop transaction - used in start or stop transaction reply.
Unit types
Unit types signed
Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached