{
  "spec_version": 1,
  "slug": "pylontech-force-h3x",
  "manufacturer": "Pylontech",
  "model": "Force H3X (battery stack with integrated PCS)",
  "category": "Home battery",
  "supplier_url": "https://en.pylontech.com.cn/products/forceh3xdc",
  "default_configuration": {
    "protocol": "modbus_tcp",
    "port": 502,
    "unit_id": 2,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst"
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [],
  "holding_registers": [
    {
      "address": 30010,
      "count": 8,
      "name": "Manufacturer",
      "data_type": "Ascii",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "16 ASCII characters, two per register, high byte first; the source falls back to \"Pylontech\" when it reads blank."
    },
    {
      "address": 30018,
      "count": 8,
      "name": "Model",
      "data_type": "Ascii",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "16 ASCII characters, two per register; the source falls back to \"Force H3X\" when it reads blank."
    },
    {
      "address": 30026,
      "count": 8,
      "name": "Serial number",
      "data_type": "Ascii",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "16 ASCII characters, two per register."
    },
    {
      "address": 30106,
      "count": 1,
      "name": "AC power factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30107,
      "count": 1,
      "name": "AC power factor direction",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30108,
      "count": 2,
      "name": "Grid power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Signed; the source adds it to PV power and battery power to obtain the load power."
    },
    {
      "address": 30117,
      "count": 1,
      "name": "Fault code",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30118,
      "count": 1,
      "name": "Warning code",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30119,
      "count": 1,
      "name": "PV1 input voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 1, mV per count at 0.1 V. The cited source takes the unit from its sensor description (V) and the factor from its decoder (0.1)."
    },
    {
      "address": 30120,
      "count": 1,
      "name": "PV1 input current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 1, 0.1 A per count. The source derives PV1 power by multiplying this and the voltage above, which is not seeded as a register of its own."
    },
    {
      "address": 30121,
      "count": 1,
      "name": "PV2 input voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 2, 0.1 V per count."
    },
    {
      "address": 30122,
      "count": 1,
      "name": "PV2 input current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 2, 0.1 A per count."
    },
    {
      "address": 30123,
      "count": 1,
      "name": "PV3 input voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 3, 0.1 V per count."
    },
    {
      "address": 30124,
      "count": 1,
      "name": "PV3 input current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "PV string 3, 0.1 A per count."
    },
    {
      "address": 30127,
      "count": 2,
      "name": "PV total power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30129,
      "count": 2,
      "name": "PV total energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30131,
      "count": 1,
      "name": "Grid voltage, phase R",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "0.1 V per count. The source withholds its average-grid-voltage value when a phase voltage reads 0 or 0xFFFF, which means the phase is absent rather than zero."
    },
    {
      "address": 30133,
      "count": 1,
      "name": "Grid voltage, phase S",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "0.1 V per count; see the phase R row for the 0 / 0xFFFF rule."
    },
    {
      "address": 30135,
      "count": 1,
      "name": "Grid voltage, phase T",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "0.1 V per count; see the phase R row for the 0 / 0xFFFF rule."
    },
    {
      "address": 30140,
      "count": 1,
      "name": "Grid frequency",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30146,
      "count": 1,
      "name": "Inverter ambient temperature",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30147,
      "count": 1,
      "name": "Inverter heatsink temperature",
      "data_type": "Int16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30148,
      "count": 2,
      "name": "Fault bit field",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "32-bit fault bit field; the source exposes it as a number and does not name its bits."
    },
    {
      "address": 30150,
      "count": 2,
      "name": "Warning bit field",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "32-bit warning bit field; the source exposes it as a number and does not name its bits."
    },
    {
      "address": 30152,
      "count": 1,
      "name": "Firmware update state",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30156,
      "count": 2,
      "name": "Grid import energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30158,
      "count": 2,
      "name": "Grid export energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30162,
      "count": 2,
      "name": "Battery power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Signed; the source does not print which direction is positive, but adds this value to PV and grid power to obtain the load power."
    },
    {
      "address": 30164,
      "count": 1,
      "name": "Battery voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30165,
      "count": 1,
      "name": "Battery current",
      "data_type": "Int16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30166,
      "count": 1,
      "name": "Charge-forbidden mask",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit mask; the source reads it to know which chargers may not charge and does not name the bits."
    },
    {
      "address": 30167,
      "count": 1,
      "name": "Discharge-forbidden mask",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit mask; the source reads it to know which loads may not discharge and does not name the bits."
    },
    {
      "address": 30168,
      "count": 1,
      "name": "Forced charge request",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30170,
      "count": 1,
      "name": "EPS voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30171,
      "count": 1,
      "name": "EPS frequency",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30172,
      "count": 2,
      "name": "EPS power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Signed; positive is output to the backup (EPS) loads."
    },
    {
      "address": 30174,
      "count": 2,
      "name": "Battery charge energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30176,
      "count": 2,
      "name": "Battery discharge energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30178,
      "count": 2,
      "name": "Battery charge energy from AC",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30180,
      "count": 2,
      "name": "EPS output energy",
      "data_type": "Float32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30182,
      "count": 1,
      "name": "State of charge",
      "data_type": "UInt16",
      "units": "%",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30626,
      "count": 2,
      "name": "Extended fault bit field",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "32-bit fault bit field of the extended block; the source does not name its bits."
    },
    {
      "address": 30628,
      "count": 2,
      "name": "Extended warning bit field",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "32-bit warning bit field of the extended block; the source does not name its bits."
    },
    {
      "address": 30631,
      "count": 1,
      "name": "Parallel slave state",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30632,
      "count": 2,
      "name": "Parallel system PV power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30634,
      "count": 2,
      "name": "Parallel system battery power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30649,
      "count": 1,
      "name": "Battery capacity",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R",
      "description": "Scaled by 0.01. This is the parallel system's capacity: the source uses it only when the PCS reports more than one parallel machine, and drops it rather than publish it as a single-system capacity otherwise."
    },
    {
      "address": 30650,
      "count": 2,
      "name": "Parallel system rated power",
      "data_type": "UInt32",
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    }
  ],
  "combined_registers": [
    {
      "id": "load-power-calculated",
      "label": "Load power (calculated)",
      "operator": "+",
      "operand_a": {
        "combined_id": "pv-plus-grid-calculated"
      },
      "operand_b": {
        "register_type": "holding_registers",
        "register_address": 30162
      },
      "units": "W",
      "scale_factor": 1,
      "offset": 0,
      "description": "PV power plus grid power plus battery power, all in W, which is how the cited source derives the home load power."
    },
    {
      "id": "pv-plus-grid-calculated",
      "label": "PV power plus grid power (calculated)",
      "operator": "+",
      "operand_a": {
        "register_type": "holding_registers",
        "register_address": 30127
      },
      "operand_b": {
        "register_type": "holding_registers",
        "register_address": 30108
      },
      "units": "W",
      "scale_factor": 1,
      "offset": 0
    }
  ],
  "notes": "Register map from the Home Assistant integration Pylontech-Research/HA-pylontech-force-H3X (same repository as github.com/pylontech-sw/HA-pylontech-force-H3X, both at commit 851eafc437cbf96969adb31ddf7155aa6e1bafed), files custom_components/pylontech_fh3x/protocol.py, const.py, sensor.py and api.py, retrieved 2026-11-23. It is NOT vendor-published: its implementation follows the manufacturer's PCS V1.36 and BMS V1.67 specifications, which it does not distribute - a secondary source. The H3X is an all-in-one - battery stacks with an integrated PCS (PV inputs, grid port, backup output, EMS) - serving two unit IDs on one Modbus TCP connection: the PCS at unit 2 and the BMS at unit 1 (const.py PCS_DEVICE_ID=2, BMS_DEVICE_ID=1, with a pause between them). This seed is the PCS at unit 2; the BMS half is the same Force block as pylontech-force-h1-h2-h3 (0x1000/0x1100/0x1400, unit 1, same scales), so a complete H3X is this page plus that. Port 502 is the source's default and Modbus TCP has to be enabled by the installer. Reads are holding registers with an input-register fallback (api.py tries holding, then input), so every row is a holding register at the wire address the decoder uses, and 32-bit values are high word first (protocol.py: high << 16 | low). No write register is seeded: the source states its writable controls are unvalidated on hardware and must stay disabled. Each unit comes from the sensor description in sensor.py and each factor from the decoder in protocol.py, which carries no units - so what it decodes without publishing a unit is left out, as are the software-version rows (four dotted bytes), the computed load power (added as a calculated row), the average grid values, and the per-module and per-cell BMS arrays. Where this source disagrees with the beolink Force map - 0x0A and 0x21 unsigned here and signed there, 0x23/0x25 rolling counters here against today counters there - the rows of pylontech-force-h1-h2-h3 say so."
}
