Illustrated title card for the guide: Victron Venus OS to Home Assistant via MQTT or Modbus TCP
integrations

Victron Venus OS to Home Assistant via MQTT or Modbus TCP

Connect Victron Venus OS to Home Assistant with the built-in MQTT integration, or use Modbus TCP to poll a specific register. See both setups.

Use Home Assistant’s built-in Victron GX integration over MQTT to discover supported sensors. Use Modbus TCP if you want to poll specific Venus OS registers and define each sensor yourself. Both setups use the GX device on your local network. Home Assistant Victron GX · Home Assistant Modbus

MQTT with Victron GXModbus TCP
Setup in Home AssistantAdd Victron GX from Devices & services.Add a TCP hub and a sensor for each reading in configuration.yaml.
How readings arriveGX pushes values via MQTT. Home Assistant may briefly delay fast-changing readings, depending on the metric.Home Assistant uses the sensor’s unit ID and register address when polling.
When to choose itYou want Home Assistant to create entities for supported equipment, such as a battery monitor or solar charger.You want an explicit register mapping and control over the polling interval.

Home Assistant Victron GX · Home Assistant Modbus

Connect over MQTT

  1. In the Cerbo GX console, open Settings → Integrations → MQTT Access and enable MQTT Access. Note the GX IP address under Settings → Connectivity → Ethernet or Wi-Fi, whichever the GX uses. Victron Cerbo GX configuration
  2. In Home Assistant, open Settings → Devices & services and select the discovered Victron GX entry if it appears. Otherwise select Add Integration, choose Victron GX, and enter the GX hostname or IP address when prompted. Home Assistant introduced this integration in version 2026.5. Home Assistant Victron GX setup
  3. For a GX using the Secured profile, select port 8883 and enable SSL if entering the connection details manually. For the Unsecured profile, use port 1883, disable SSL, and leave the username and password blank. The Weak and Secured profiles require a password configured on the GX. Home Assistant tries TLS first for discovered devices and falls back to unencrypted MQTT on 1883 if TLS is unavailable. Home Assistant Victron GX setup
  4. If Home Assistant asks you to pair, open Settings → Integrations → MQTT Devices → Pairing mode on the GX. Enable pairing and select Submit in Home Assistant within 120 seconds. For manual setup on a secured GX without token pairing, leave the username blank on a standard installation and enter the local GX password when prompted. Home Assistant Victron GX setup

Open the Victron GX integration and select Entities. Look for battery state of charge, solar power, or another reading your equipment provides. If setup succeeds but no entities appear, confirm MQTT Access is enabled and check Settings → System → Logs in Home Assistant. Home Assistant Victron GX entities and troubleshooting

Connect over Modbus TCP

  1. On a Cerbo GX, open Settings → Integrations → Modbus TCP Server and turn on Enable Modbus TCP Server. For a read-only setup, select read-only under Access permissions. Victron introduced this option in Venus OS 3.70. Victron Cerbo GX configuration · Venus OS 3.70 release notes
  2. Open Available services in the same menu to find the unit ID for a particular device. For whole-system readings, Victron specifies unit ID 100 for com.victronenergy.system. Victron Cerbo GX configuration · Victron GX Modbus-TCP Manual
  3. Add the hub below to Home Assistant’s configuration.yaml. Replace IP_ADDRESS with the GX IP address. If you already have a top-level modbus: list, add the new hub to that list. Home Assistant Modbus setup · Cerbo GX network ports

Victron maps system battery state of charge to register 843 as an unsigned 16-bit percentage with a scale factor of one. This example reads it as a holding register. Victron Modbus register definitions · Victron GX Modbus-TCP Manual

modbus:
  - name: victron_gx_modbus
    type: tcp
    host: IP_ADDRESS
    port: 502
    sensors:
      - name: "Victron System Battery Charge"
        device_address: 100
        address: 843
        input_type: holding
        data_type: uint16
        unit_of_measurement: "%"
        scan_interval: 15

Check the YAML configuration and restart Home Assistant. The example polls the register every 15 seconds. Home Assistant configuration guide · Home Assistant Modbus setup

For another register, match its data type and conversion. For example, Victron’s system battery voltage register 840 uses a divisor of ten. Use scale: 0.1 and precision: 1 in Home Assistant to convert that reading to volts with one decimal place. Victron Modbus register definitions · Home Assistant Modbus sensor options

Verify the battery reading

As a Home Assistant administrator, go to Settings → Tools → States and filter for the battery state-of-charge entity. For MQTT, use the reading from the battery monitor selected on the GX. For the Modbus example, look for Victron System Battery Charge. Compare the percentage with the Cerbo GX Overview screen once the reading has updated. Home Assistant States tool · Victron Cerbo GX battery state of charge

  • The GX also has no battery percentage. On a Cerbo GX, check the selected source under Settings → System Setup → Batteries → Battery monitor. The GX gets state of charge from a connected device. Victron Cerbo GX battery state of charge
  • Modbus connects but the register read fails. Check the unit ID and register together. Victron’s 0x02 response means the unit ID exists but at least one requested register does not. Victron GX Modbus-TCP Manual
  • MQTT setup reports an authentication error. Verify the GX Local Network Security Profile under Settings → General. Use the password configured on the GX for password-based local setup. Home Assistant Victron GX troubleshooting

Evidence and limits. Documentation was checked on November 26, 2026. The procedure follows the Cerbo GX manual, the Venus OS 3.70 release notes for Modbus read-only access, and the Home Assistant 2026.11.3 documentation. No hardware test was performed.

Sources

  1. Home Assistant Victron GX integration
  2. Victron Cerbo GX manual, Configuration
  3. Victron Cerbo GX manual, Troubleshooting
  4. Victron Venus OS 3.70 release notes
  5. Victron GX Modbus-TCP Manual
  6. Victron GX Modbus TCP register definitions
  7. Home Assistant Modbus integration
  8. Home Assistant configuration.yaml guide
  9. Home Assistant Tools

Related guides

Illustrated title card for the guide: Read Battery SoC in Node-RED on Venus OS Large
setup

Read Battery SoC in Node-RED on Venus OS Large

Switch a Cerbo GX or Ekrano GX to Venus OS Large, open the local Node-RED editor, and read battery state of charge in a two-node Debug flow.

Illustrated title card for the guide: Set Up Victron VRM Remote Monitoring on Cerbo GX
setup

Set Up Victron VRM Remote Monitoring on Cerbo GX

Set up Victron VRM on an online Cerbo GX. Find the Portal ID, verify live updates and logged readings, and set up an email alert for missing data.

Illustrated title card for the guide: Cerbo GX vs Cerbo-S GX vs Ekrano GX: Buying Guide
hardware

Cerbo GX vs Cerbo-S GX vs Ekrano GX: Buying Guide

Compare Victron GX controllers by CAN ports, sensor inputs and display options. Check Cerbo revisions and find the right fit before you buy.