# Connect Home Assistant to the Device Hub

> Send the MQTT devices you already have in Home Assistant to TheBuilding.Cloud with a few lines in its Mosquitto add-on, then approve them in the Device Hub.

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

If you already run Home Assistant at the site, you can send everything it knows about to TheBuilding.Cloud in one go. You add a few lines to Home Assistant's own MQTT broker (the Mosquitto add-on). Nothing else changes in Home Assistant.

## What you need

- Home Assistant with the **Mosquitto broker** add-on installed and working.
- Devices that already work in Home Assistant through MQTT, for example Zigbee2MQTT, ESPHome or Tasmota devices.
- 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 **Home Assistant** 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 in Home Assistant

1. Open **Settings**, then **Add-ons**, then **Mosquitto broker**.
2. In its **Configuration**, turn on **customize**.
3. Create the file **/share/mosquitto/tbc-bridge.conf** and paste the lines from the **Connect devices** page with **Copy**.
4. Replace **&lt;your password&gt;** with your login's password and save the file.
5. Restart the Mosquitto add-on.

Your devices appear in TheBuilding.Cloud 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.

## 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**.
- **Some devices are missing**: only devices that use MQTT in Home Assistant come across. Devices Home Assistant reaches another way (its own integrations, Wi-Fi apps) don't.
- 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.
