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 GX | Modbus TCP | |
|---|---|---|
| Setup in Home Assistant | Add Victron GX from Devices & services. | Add a TCP hub and a sensor for each reading in configuration.yaml. |
| How readings arrive | GX 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 it | You 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
- 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
- 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
- For a GX using the Secured profile, select port
8883and enable SSL if entering the connection details manually. For the Unsecured profile, use port1883, 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 on1883if TLS is unavailable. Home Assistant Victron GX setup - 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
- 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
- Open Available services in the same menu to find the unit ID for a particular device. For whole-system readings, Victron specifies unit ID
100forcom.victronenergy.system. Victron Cerbo GX configuration · Victron GX Modbus-TCP Manual - Add the hub below to Home Assistant’s
configuration.yaml. ReplaceIP_ADDRESSwith the GX IP address. If you already have a top-levelmodbus: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
0x02response 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.