Getting Started โ
This guide walks you through the two most popular setups from start to finish, flashed from your browser and integrated with Home Assistant. No soldering, no development environment, about 15 minutes:
- Bluetooth sensors โ any ESP32 board reading thermometers, plant sensors, scales...
- RF devices (433/315/868/915MHz) โ a LILYGO LoRa32 board receiving weather stations, door sensors, PIR sensors...
Using another controller (OpenHAB, Node-RED...) or another technology (IR, LoRa)? Follow the same steps and take the detours linked along the way.
How the pieces fit together โ
OpenMQTTGateway (OMG) is a firmware for your board that translates signals from your devices (Bluetooth sensors, RF remotes, weather stations...) into MQTT messages, and the other way around:
The broker is the message hub; the controller is the home automation software where you see and use the data.
What you need โ
- A board โ for Bluetooth, any ESP32 development board. For RF, a LILYGOยฎ LoRa32 V2.1 or a Heltec LoRa V2 matching your devices' frequency โ 433MHz for most European devices, 915MHz in North America (no soldering needed). See the board guide for other cases, or get a pre-flashed Theengs Bridge and skip the flashing step.
- A data USB cable โ some cables are charge-only and won't work.
- An MQTT broker โ see Step 1.
- A device to observe โ e.g. a compatible Bluetooth sensor such as a Mi Flora, LYWSD03MMC, Govee or Inkbird thermometer, or any RF sensor around you (weather station, door or PIR sensor...).
Step 1 โ Set up the MQTT broker โ
If you use Home Assistant, the simplest option is the Mosquitto add-on:
- In Home Assistant go to Settings โ Add-ons โ Add-on store, install Mosquitto broker and start it.
- Install the MQTT integration (Settings โ Devices & services โ Add integration โ MQTT) if it isn't set up already.
- Create a dedicated user for the gateway in Settings โ People โ Users (e.g.
omgโ it doesn't need to be an administrator). The gateway will log in with it.
No Home Assistant? Install Mosquitto on any always-on machine, or see the broker page for alternatives.
Step 2 โ Flash the firmware from your browser โ
- Open the web installer in Chrome, Edge or Opera (Firefox and Safari don't support web flashing).
- Connect the board to your computer with the USB cable.
- Pick the firmware matching your board and use case โ the two most flashed:
- Bluetooth on a generic ESP32: esp32dev-ble
- RF on a LILYGO LoRa32: lilygo-rtl_433 (the radio frequency is configurable afterwards)
- Click Connect, select the board's USB port, and let the installer finish.
Prefer a desktop tool, or need a custom configuration? See the other upload options.
Step 3 โ Connect the gateway to your WiFi and broker โ
After flashing, the gateway starts its own WiFi access point:
- From your phone or computer, connect to the WiFi network named OpenMQTTGateway or starting with OMG_ (no password, except for Theengs devices โ see the portal page).
- A configuration page opens (on Android, accept "stay connected without internet"). Click Configure WiFi.
- Select your WiFi network and enter its password.
- Enter your broker's address as MQTT server (for the Home Assistant add-on,
homeassistant.localor the server IP), keep port1883, and fill in the MQTT username and password from Step 1. - Click Save. The gateway restarts and joins your network.
The full list of portal fields is described on the configuration portal page.
Step 4 โ Check that it works โ
- In Home Assistant, go to Settings โ Devices & services โ MQTT: after a minute you should see a device named OpenMQTTGateway, created automatically through MQTT discovery.
- Bluetooth: bring a compatible sensor nearby โ it appears as its own device with its measurements as entities. Some devices only advertise on an event: press a button or trigger a reading if nothing shows up.
- RF: supported devices appear automatically as soon as they transmit โ weather stations send every minute or two, door and PIR sensors on an event, so trigger one to see it arrive.
- You can also watch the raw messages with MQTT Explorer: connect to your broker and look for
home/OpenMQTTGateway/LWT=onlineand messages underhome/OpenMQTTGateway/.
Something not right? Head to the troubleshooting page or ask on the community forum.
Where to go next โ
- More RF options โ other compatible boards and firmwares, transmitting, frequency tuning, and protocol details in RF hardware setup and RF usage.
- Infrared โ wire an IR emitter/receiver following the IR hardware setup.
- Tune the gateway โ the WebUI and gateway commands let you configure it at runtime over MQTT.
- Other controllers โ OpenHAB, Node-RED, Jeedom, AWS IoT.
- Full Home Assistant details โ Home Assistant integration.