# Connect a Victron battery and solar system

> Show Victron GX batteries, solar chargers, inverters, meters and tanks in TheBuilding.Cloud, read only, through a small Mosquitto box at the site.

Source: https://thebuilding.cloud/help/connect-devices/device-hub-victron
Last updated: 2026-11-15

Victron systems with a GX device can show their batteries, solar chargers, inverter/chargers, meters and tanks in TheBuilding.Cloud. It is read only: nothing changes on the Victron system.

## What you need

- A Victron GX device on the site's network.
- A small always-on box at the site with Mosquitto, for example Home Assistant's Mosquitto add-on. It passes the readings on.
- The organisation account. Only the organisation can make site logins and approve devices.
- **Device Hub** in your menu. If it isn't there, email help@thebuilding.cloud to have it switched on.

## Get your login in TheBuilding.Cloud

1. Open **Device Hub** in the menu and click **Connect devices**.
2. Under **1 · Which site?**, click the site's login. No login yet? Click **+ New site login**, choose the **Site**, type a **Name for this login** and click **Create login**.
3. Copy the password straight away with **Copy password**. It is shown only once.
4. Under **2 · What do you have?**, click the **Victron** tile. Its steps already have your **Server address**, **Port (secure)** and **User name** filled in: copy each one from the tile's steps with **Copy**.

Keep this page open: you copy from it in the next step.

## Steps on the device: the GX device and Mosquitto

1. On the GX device open **Settings**, then **Services**, and turn **MQTT on LAN** on.
2. On the always-on box, add the lines from the **Connect devices** page to Mosquitto's configuration.
3. In those lines, put in the GX device's IP address and your login's password, then restart Mosquitto.

Batteries, solar chargers, inverters and meters appear within a minute.

## Approve it in TheBuilding.Cloud

1. Go back to **Connect devices**. Under **3 · Devices found**, new devices show **Approve** within a minute of connecting.
2. Click the device. Under **New device: approve it to use it**, check the **Name**, choose the **Building** and click **Approve**.
3. Something you don't need? Click **Ignore**. It stays hidden and its changes aren't kept.

Until a device is approved, TheBuilding.Cloud only reads it: it can't open or switch anything.

## Check it works

- Under **1 · Which site?** the login shows **Sending now** while messages arrive.
- Open the device: **What it does** shows each part and its state, and **Recent activity** lists what changed.
- Approved devices are listed on the building's **Device Hub** tab, with one quick button where the device can be switched.
- Readings such as battery charge and solar power show on each device's page.

## Not working?

- **Nothing received yet**: check the server address, the secure port shown there (**8883**) with TLS (SSL) switched on, the user name and the password. All four must match the **Connect devices** page exactly.
- **Lost the password**: click **New password** on the login. Every device that used the old one stops until you give it the new one.
- **Turned off**: click **Turn this login on**.
- **Nothing from the GX device**: check **MQTT on LAN** is on and the box can reach the GX device's IP address.
- No **Device Hub** in your menu? It has to be switched on for your organisation. Email help@thebuilding.cloud.

Still stuck? Email help@thebuilding.cloud.
