Skip to content

Raw Messages

The Raw messages in AIIDA are used to exchange data in a predefined format without changing the data much. The data is mapped to an internal AiidaRecord class which stores the timestamp when the message is received, its asset type, the user id, the data source id which provided the data and the actual data represent as a list of the AiidaRecordValue class. The raw messages are sent when the permission contains the schema - SMART-METER-P1-RAW.

Single Data Point

A single data point is represented as an AIIDA Record Value. It contains the following fields:

  • rawTag: Represents the raw identifier of the given data point this can be either the OBIS code, name or an id.
  • rawValue: Contains the actual value of the data point as received from the data source.
  • rawUnitOfMeasurement: It represents the unit of measurement for the given rawValue. E.g.: this can be kWh (kilo watt hour).
  • dataTag: This is our internal identifier, the OBIS code, for the given data point. This is mapped from the rawTag using the data source configuration.
  • value: It is the raw value adapted to the unit of measurement for the respective OBIS code.
  • unitOfMeasurement: Our internal unit of measurement for the respective OBIS Code. E.g. the data can be converted from Wh to kWh or from W to kW.

DataTag - OBIS Code

Currently, the following data tags (OBIS codes) are supported:

EnumValueTagUnit of MeasurementDescription
POSITIVE_ACTIVE_ENERGY1-0:1.8.0KILO_WATT_HOURImported active energy (total)
POSITIVE_ACTIVE_ENERGY_IN_PHASE_L11-0:21.8.0KILO_WATT_HOURImported active energy L1
POSITIVE_ACTIVE_ENERGY_IN_PHASE_L21-0:41.8.0KILO_WATT_HOURImported active energy L2
POSITIVE_ACTIVE_ENERGY_IN_PHASE_L31-0:61.8.0KILO_WATT_HOURImported active energy L3
NEGATIVE_ACTIVE_ENERGY1-0:2.8.0KILO_WATT_HOURExported active energy (total)
NEGATIVE_ACTIVE_ENERGY_IN_PHASE_L11-0:22.8.0KILO_WATT_HOURExported active energy L1
NEGATIVE_ACTIVE_ENERGY_IN_PHASE_L21-0:42.8.0KILO_WATT_HOURExported active energy L2
NEGATIVE_ACTIVE_ENERGY_IN_PHASE_L31-0:62.8.0KILO_WATT_HOURExported active energy L3
POSITIVE_ACTIVE_INSTANTANEOUS_POWER1-0:1.7.0KILO_WATTInstant active power import (total)
POSITIVE_ACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L11-0:21.7.0KILO_WATTInstant active power import L1
POSITIVE_ACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L21-0:41.7.0KILO_WATTInstant active power import L2
POSITIVE_ACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L31-0:61.7.0KILO_WATTInstant active power import L3
NEGATIVE_ACTIVE_INSTANTANEOUS_POWER1-0:2.7.0KILO_WATTInstant active power export (total)
POSITIVE_REACTIVE_INSTANTANEOUS_POWER1-0:3.7.0KILO_VOLT_AMPERE_REACTIVEInstant reactive power import
POSITIVE_REACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L11-0:23.7.0KILO_VOLT_AMPERE_REACTIVEInstant reactive power import L1
POSITIVE_REACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L21-0:43.7.0KILO_VOLT_AMPERE_REACTIVEInstant reactive power import L2
POSITIVE_REACTIVE_INSTANTANEOUS_POWER_IN_PHASE_L31-0:63.7.0KILO_VOLT_AMPERE_REACTIVEInstant reactive power import L3
NEGATIVE_REACTIVE_INSTANTANEOUS_POWER1-0:4.7.0KILO_VOLT_AMPERE_REACTIVEInstant reactive power export
POSITIVE_REACTIVE_ENERGY_IN_TARIFF1-0:3.8.1KILO_VOLT_AMPERE_REACTIVE_HOURImported reactive energy (T1)
NEGATIVE_REACTIVE_ENERGY_IN_TARIFF1-0:4.8.1KILO_VOLT_AMPERE_REACTIVE_HOURExported reactive energy (T1)
MAXIMUM_CURRENT1-0:11.6.0AMPEREMax current (since reset)
MAXIMUM_CURRENT_IN_PHASE_L11-0:31.6.0AMPEREMax current L1
MAXIMUM_CURRENT_IN_PHASE_L21-0:51.6.0AMPEREMax current L2
MAXIMUM_CURRENT_IN_PHASE_L31-0:71.6.0AMPEREMax current L3
APPARENT_INSTANTANEOUS_POWER1-0:9.7.0KILO_VOLT_AMPEREInstant apparent power (total)
INSTANTANEOUS_CURRENT1-0:11.7.0AMPEREInstant current (total)
INSTANTANEOUS_CURRENT_IN_PHASE_L11-0:31.7.0AMPEREInstant current L1
INSTANTANEOUS_CURRENT_IN_PHASE_L21-0:51.7.0AMPEREInstant current L2
INSTANTANEOUS_CURRENT_IN_PHASE_L31-0:71.7.0AMPEREInstant current L3
INSTANTANEOUS_CURRENT_IN_PHASE_NEUTRAL1-0:91.7.0AMPEREInstant current N
INSTANTANEOUS_POWER_FACTOR1-0:13.7.0NONEPower factor (total)
INSTANTANEOUS_POWER_FACTOR_IN_PHASE_L11-0:33.7.0NONEPower factor L1
INSTANTANEOUS_POWER_FACTOR_IN_PHASE_L21-0:53.7.0NONEPower factor L2
INSTANTANEOUS_POWER_FACTOR_IN_PHASE_L31-0:73.7.0NONEPower factor L3
INSTANTANEOUS_VOLTAGE1-0:12.7.0VOLTInstant voltage (total)
INSTANTANEOUS_VOLTAGE_IN_PHASE_L11-0:32.7.0VOLTInstant voltage L1
INSTANTANEOUS_VOLTAGE_IN_PHASE_L21-0:52.7.0VOLTInstant voltage L2
INSTANTANEOUS_VOLTAGE_IN_PHASE_L31-0:72.7.0VOLTInstant voltage L3
FREQUENCY1-0:14.7.0HERTZGrid frequency
DEVICE_ID_10-0:96.1.0NONEDevice ID
TIME0-0:1.0.0NONEDevice time
UPTIME0-0:2.0.0NONEDevice uptime
UNKNOWN0-0:0.0.0UNKNOWNUnknown/unsupported code
METER_SERIAL0-0:C.1.0NONEMeter serial number

Units of Measurement

Currently, the following units are supported:

EnumValueSymbol
WATTW
KILO_WATTkW
WATT_HOURWh
KILO_WATT_HOURkWh
VOLT_AMPERE_REACTIVEVAr
KILO_VOLT_AMPERE_REACTIVEkVAr
VOLT_AMPERE_REACTIVE_HOURVArh
KILO_VOLT_AMPERE_REACTIVE_HOURkVArh
AMPEREA
VOLTV
VOLT_AMPEREVA
KILO_VOLT_AMPEREkVA
HERTZHz
NONEnone
UNKNOWNunknown

Example Raw Message

json
{
  "timestamp": "2025-10-08T07:40:38.711Z",
  "asset": "CONNECTION-AGREEMENT-POINT",
  "userId": "138cace8-ab2a-439f-a878-1e0aa06ee214",
  "dataSourceId": "210e100f-7d5d-49d4-930d-8769672011db",
  "values": [
    {
      "rawTag": "1-0:1.7.0",
      "dataTag": "1-0:1.7.0",
      "rawValue": "995",
      "rawUnitOfMeasurement": "kW",
      "value": "995",
      "unitOfMeasurement": "kW",
    },
    {
      "rawTag": "1-0:1.8.0",
      "dataTag": "1-0:1.8.0",
      "rawValue": "1348",
      "rawUnitOfMeasurement": "kWh",
      "value": "1348",
      "unitOfMeasurement": "kWh",
    }
  ]
}