Help with Axioma W1 Water Meter and Mini Hub TBMH100 gateway

Can you help with packet decoder?
I see packets but how to decode?

“frm_payload”: “3Kz4aBAZAAAAQKn4aBkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=”,“decoded_payload”: {“bytes”: [220,172,248,104,16,25,0,0,0,64,169,248,104,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},

There is at least one topic with a link to the documentation from the manufacturer that explains the format.

To be clear, the device is documented and the forum has a link to that.

Please use search!

working decoder:


function decodeUplink(input) {
  const bytes = input.bytes || [];
  const port = input.fPort;

  function readUInt32LE(b, i) {
    return b[i] + (b[i + 1] << 8) + (b[i + 2] << 16) + (b[i + 3] << 24);
  }

  function decodeTimestamp(ts) {
    const date = new Date(ts * 1000);
    return date.toISOString();
  }

  const statusMap = {
    0x00: "No error",
    0x04: "Low battery",
    0x08: "Permanent error",
    0x10: "Temporary error",
    0x20: "Leakage",
    0x60: "Backflow",
    0xA0: "Burst",
    0x80: "Freeze"
  };

  const data = {};

  if (port === 100 && bytes.length === 9) {
    const currentTs = readUInt32LE(bytes, 0);
    data.current_datetime = decodeTimestamp(currentTs);

    const status = bytes[4];
    data.status_code = "0x" + status.toString(16).padStart(2, '0');
    data.status_description = statusMap[status] || "Unknown";

    const currentVolume = readUInt32LE(bytes, 5);
    data.current_volume_liters = currentVolume;
    data.current_volume_m3 = currentVolume / 1000;
  } else {
    data.error = `Unsupported port ${port} or length ${bytes.length}`;
  }

  return { data };
}

a my bad , i inserted payload formatter decoder in the left menu with green, but had to insert to device
with red
Now its working fine and decoding.

{
“current_datetime”: “2025-10-24T08:52:27.000Z”,
“current_volume_liters”: 25,
“current_volume_m3”: 0.025,
“status_code”: “0x10”,
“status_description”: “Temporary error”
}

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.