Connect your devices
Connect Homie devices
Devices and bridges that follow the Homie convention describe themselves over MQTT: their name, what they measure and what can be switched. TheBuilding.Cloud reads that description, so they appear by themselves once their messages reach us through a few bridge lines in the site's MQTT server.
What you need
- A device or bridge that sends Homie (version 3, 4 or 5), and its settings page or configuration file.
- An MQTT server at the site that the device can reach on its own network: Home Assistant's Mosquitto broker add-on, or Mosquitto on a small always-on computer.
- 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
- Open Device Hub in the menu and click Connect devices.
- 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.
- Copy the password straight away with Copy password. It is shown only once.
- Under 2 · What do you have?, click the Home Assistant tile. Homie devices use the same bridge lines: copy them from the tile's steps with Copy.
Keep this page open: you copy from it in the next step.
Steps on the device: Homie settings
- In the device's MQTT settings, type the site's MQTT server, its port (usually 1883) and that server's user name and password.
- Leave the base topic as homie/ (the usual setting). Each device keeps its own device id under it.
- Save and restart the device.
- Add the bridge lines from the Connect devices page to the site's MQTT server. Home Assistant: Settings, then Add-ons, then Mosquitto broker; turn on customize and create the file /share/mosquitto/tbc-bridge.conf with the lines. Mosquitto on its own computer: add the lines to its configuration file.
- Replace <your password> with your login's password and restart the MQTT server.
The bridge sends everything under your user name, so nothing else needs changing.
Approve it in TheBuilding.Cloud
- Go back to Connect devices. Under 3 · Devices found, new devices show Approve within a minute of connecting.
- Click the device. Under New device: approve it to use it, check the Name, choose the Building and click Approve.
- 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.
- True/false values show as sensors, or as switches when the device says they can be set. Numbers show with their unit; text shows as it is sent.
Not working?
- Nothing received yet: check the bridge lines, the user name and the password. They must match the Connect devices page exactly, and the MQTT server must be restarted after the change.
- The device is missing: check the base topic is homie/ and the device has finished starting up. A value sent before the device's description is skipped until the next one.
- 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.
- No Device Hub in your menu? It has to be switched on for your organisation. Email help@thebuilding.cloud.