P1IB API:s

RESTful API

Endpoint /meterData (GET)

{
  "d": {
    "1-0:32.7.0": [234.6, 234.4, 234.4, 234.8, 234.7, 234.3, 233.6, 234, 234.8, 234.7],
    "1-0:52.7.0": [234.8, 234.6, 234.6, 234.9, 235, 234.5, 233.5, 234.2, 234.7, 234.7],
    "1-0:72.7.0": [236.5, 236.3, 236.4, 236.7, 236.6, 236.3, 235.6, 236, 236.6, 236.6],
    "1-0:31.7.0": [3.5, 3.5, 3.5, 3.6, 3.5, 3.6, 3.6, 3.6, 3.5, 3.6],
    "1-0:51.7.0": [3.5, 3.5, 3.7, 3.7, 3.4, 3.7, 4.1, 3.5, 4, 4],
    "1-0:71.7.0": [-0.5, -0.5, -0.6, -0.5, -0.5, -0.6, -0.7, -0.7, -0.7, -0.6],
    "1-0:21.7.0": [0.824, 0.818, 0.815, 0.823, 0.825, 0.829, 0.82, 0.829, 0.823, 0.834],
    "1-0:41.7.0": [0.667, 0.747, 0.715, 0.739, 0.692, 0.789, 0.846, 0.882, 0.827, 0.83],
    "1-0:61.7.0": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "1-0:1.8.0": [88163.092, 88163.092, 88163.115, 88163.115, 88163.115, 88163.115, 88163.115, 88163.115, 88163.14, 88163.14],
    "1-0:2.8.0": [19527.292, 19527.292, 19527.292, 19527.292, 19527.292, 19527.292, 19527.292, 19527.292, 19527.292, 19527.292],
    "1-0:3.8.0": [8908.43, 8908.43, 8908.43, 8908.43, 8908.43, 8908.43, 8908.43, 8908.43, 8908.43, 8908.43],
    "1-0:4.8.0": [13595.775, 13595.775, 13595.782, 13595.782, 13595.782, 13595.782, 13595.782, 13595.782, 13595.789, 13595.789],
    "1-0:1.7.0": [1.436, 1.437, 1.501, 1.528, 1.433, 1.528, 1.565, 1.414, 1.45, 1.555],
    "1-0:2.7.0": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "1-0:3.7.0": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "1-0:4.7.0": [0.734, 0.726, 0.8, 0.703, 0.705, 0.789, 0.783, 0.777, 0.772, 0.743],
    "1-0:22.7.0": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "1-0:42.7.0": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "1-0:62.7.0": [0.065, 0.062, 0.059, 0.056, 0.052, 0.049, 0.116, 0.115, 0.109, 0.107]
  },
  "last_ok_interval": 9999,
  "info": {
    "ip": "192.168.1.118",
    "mac": "B0:B2:1C:A0:0A:68",
    "uptime": 1734200547,
    "mqtt_state": "Connected",
    "rssi": -50,
    "tx": 44,
    "wifi_conn_cnt": 1,
    "failCnt": 1,
    "okCnt": 173396,
    "resetCnt": 173398,
    "meter": "Aidon",
    "mode": "Mode-E"
  }
}

Last updated meter value is last item (index 9) in the arrays per OBIS code.

MQTT Topics

OBISTopicJSON keyExplanationExample value
0-0.1.0.0p1ib/p1ib_clock_date/statep1ib_clock_dateP1IB time and date (NTP). Used for HA to determine time of last telegram received2025-03-10T21:17:10Z
1-0:1.8.0p1ib/p1ib_h_active_imp_q1_q4/statep1ib_hourly_active_import_q1_q4Cumulative hourly active import
energy (A+) (Q1+Q4)
5754.570
1-0:2.8.0p1ib/p1ib_h_active_exp_q2_q3/statep1ib_hourly_active_export_q2_q3Cumulative hourly active export
energy (A-) (Q2+Q3)
0.000
1-0:3.8.0p1ib/p1ib_h_reactive_imp_q1_q2/statep1ib_hourly_reactive_import_q1_q2Cumulative hourly reactive import
energy (R+) (Q1+Q2)
63.667
1-0:4.8.0p1ib/p1ib_h_reactive_exp_q3_q4/statep1ib_hourly_reactive_export_q3_q4Cumulative hourly reactive export
energy (R-) (Q3+Q4
566.080
1-0:1.7.0p1ib/p1ib_active_power_p_q1_q4/statep1ib_active_power_plus_q1_q4Momentary Active power+ (Q1+Q4)1.083
1-0:2.7.0p1ib/p1ib_active_power_m_q2_q3/statep1ib_active_power_minus_q2_q3Momentary Active power – (Q2+Q3)0.000
1-0:3.7.0p1ib/p1ib_reactive_power_p_q1_q2/statep1ib_reactive_power_plus_q1_q2Momentary Reactive power +
(Q1+Q2)
0.000
1-0:4.7.0p1ib/p1ib_reactive_power_m_q3_q4/statep1ib_reactive_power_minus_q3_q4Momentary Reactive power –
(Q3+Q4)
0.076
1-0:21.7.0p1ib/p1ib_active_power_p_l1/statep1ib_active_power_plus_l1Momentary Active power+ (L1)0.674
1-0:41.7.0p1ib/p1ib_active_power_p_l2/statep1ib_active_power_plus_l2Momentary Active power+ (L2)0.184
1-0:61.7.0p1ib/p1ib_active_power_p_l3/statep1ib_active_power_plus_l3Momentary Active power+ (L3)0.225
1-0:22.7.0p1ib/p1ib_active_power_m_l1/statep1ib_active_power_minus_l1Momentary Active power – (L1)0.000
1-0:42.7.0p1ib/p1ib_active_power_m_l2/statep1ib_active_power_minus_l2Momentary Active power – (L2)0.000
1-0:62.7.0p1ib/p1ib_active_power_m_l3/statep1ib_active_power_minus_l3 Momentary Active power – (L3)0.000
1-0:23.7.0p1ib/p1ib_reactive_power_p_l1/statep1ib_reactive_power_plus_l1Momentary Reactive power+ (L1)0.000
1-0:43.7.0p1ib/p1ib_reactive_power_p_l2/statep1ib_reactive_power_plus_l2Momentary Reactive power+ (L2)0.000
1-0:63.7.0p1ib/p1ib_reactive_power_p_l3/statep1ib_reactive_power_plus_l3Momentary Reactive power+ (L3)0.081
1-0:24.7.01ib/p1ib_reactive_power_m_l1/statep1ib_reactive_power_minus_l1Momentary Reactive power – (L1)0.146
1-0:44.7.0p1ib/p1ib_reactive_power_m_l2/statep1ib_reactive_power_minus_l2Momentary Reactive power – (L2)0.011
1-0:64.7.0p1ib/p1ib_reactive_power_m_l3/statep1ib_reactive_power_minus_l3Momentary Reactive power – (L3)0.000
1-0:32.7.0p1ib/p1ib_voltage_l1/statep1ib_voltage_l1Momentary RMS Phase voltage L1235.400
1-0:52.7.0p1ib/p1ib_voltage_l2/statep1ib_voltage_l2Momentary RMS Phase voltage L2237.900
1-0:72.7.0p1ib/p1ib_voltage_l3/statep1ib_voltage_l3Momentary RMS Phase voltage L3238.500
1-0:31.7.0p1ib/p1ib_current_l1/statep1ib_current_l1Momentary RMS Current phase L13.000
1-0:51.7.0p1ib/p1ib_current_l2/statep1ib_current_l2Momentary RMS Current phase L20.900
1-0:71.7.0p1ib/p1ib_current_l3/statep1ib_current_l3Momentary RMS Current phase L31.000
p1ib/p1ib_power_l1/stateMomentary Active power+ (L1) minus
Momentary Active power – (L1)
0.674
p1ib/p1ib_power_l2/stateMomentary Active power+ (L2) minus
Momentary Active power – (L2)
0.184
p1ib/p1ib_power_l3/stateMomentary Active power+ (L3) minus
Momentary Active power – (L3)
0.225
p1ib/p1ib_rssi/statep1ib_rssiReceived Singal Strength Indicator-47
p1ib/p1ib_firmware_sha1p1ib_firmwareFirmware version. Published once with retain flag54aa555
p1ib_ipIP of P1IB192.168.1.118
p1ib_meterMeter model. Published once with retain flagKAM5
p1ib_telegrams_crc_okNumber of telegrams that have passed CRC check66
p1ib_wifi_macb0b21ccb78d0
p1ib/sensor_statePublished once with retain flag when
“MQTT JSON state” is not activated.
When “MQTT JSON state” is
activated all the other topics are
published once with retain flag and
only this topic is published
thereafter.
JSON data container