The MQTT tab publishes the same readings to any broker. It serves anyone feeding a system other than Home Assistant, or anyone who prefers to feed Home Assistant through their own broker.
As with the native integration, the connection goes from your phone straight to your machine, without passing through our servers.
Enter the broker
Fill in Broker Address and Port. If the broker requires authentication, fill in User and Password as well.
Turn Use TLS (SSL) on when the broker is exposed outside your network. Use WebSocket and Base Path serve brokers behind a proxy.
Choose the protocol version
The MQTT 3.1.1 and MQTT 5.0 buttons select the version. When in doubt, choose 3.1.1, which is the more widely compatible.
Choose the format
MQTT format sets the shape of the topics and the format of each message. There are five options:
- Home Assistant Discovery: with automatic discovery, the entities are created on their own, with name, unit and icon.
- Homie 4.0: follows the Homie convention.
- Simple topics: one value per topic, with no extra structure. The easiest to consume from a script.
- Unified JSON: everything in a single message, on the topic you set.
- ThingsBoard: the ThingsBoard telemetry format.
Some formats have settings of their own, such as JSON payload (value + timestamp) on simple topics and Include timestamp on ThingsBoard.
Set the topic prefix
Topic Prefix is the root of everything the app publishes. Set the value at the start and avoid changing it later, because the change leaves the old topics orphaned on the broker.
Test before leaving
Tap Test Connection. The test confirms the address, the port, TLS and the credentials before you turn transmission on.
Turn transmission on and save
Turn Enable transmission on, set the Transmission interval and save with the floating button.
- Broker Address and Port
- Where the app publishes. Any broker serves: Mosquitto, EMQX, the add-on inside Home Assistant or a hosted service.
- Use TLS (SSL)
- Encrypts the connection to the broker. Recommended whenever it is exposed outside your network.
- Use WebSocket and Base Path
- Meant for brokers behind a reverse proxy.
- MQTT format
- Home Assistant Discovery, Homie 4.0, Simple topics, Unified JSON or ThingsBoard.
- Topic Prefix
- The root of the topics published. Changing it later leaves the old topics orphaned on the broker.
- User and Password
- The broker credentials, when it requires authentication.
- Test Connection
- Confirms the address, the port, TLS and the credentials before transmission is turned on.
- Transmission interval
- How often the snapshot of the live sensors is sent.
- Save button
- Stores the settings of the active tab and the sync mode.