Run Your Own MQTT Broker for 60GHz Radar: An Apache Artemis Setup Guide
说明与用途
使用 Apache Artemis 配置 60 GHz 雷达、ESP32 网关和 Home Assistant 的 MQTT 代理,包括安装、用户配置、启用 1883 端口和连接验证。
问题
The radar setup guide requires an MQTT broker ready before configuring the radar, but it does not provide steps to stand one up.
结果
Apache Artemis is successfully configured as an MQTT broker on port 1883, allowing 60 GHz radar modules, an ESP32 gateway, and Home Assistant to publish and subscribe to the required topics.
工作流
- Install Java 17 and 1 GB RAM on a LAN machine
- Download Apache Artemis 2.50.0 and extract
- Run
artemis create /opt/radar-brokerand set console credentials, disable anonymous login - Start broker with
artemis runto verify - Install broker as a service with
artemis-service installandstart - Edit
/opt/radar-broker/etc/broker.xmlto add<acceptor name="mqtt">tcp://0.0.0.0:1883?protocols=MQTT</acceptor> - Restart broker and confirm listening on 1883 with
ss -ltnp | grep 1883 - Create users in
etc/artemis-users.propertiesand roles inetc/artemis-roles.propertiesfor radar, radar‑gw, and ha - Restart broker
- Configure radar modules with server address
tcp://<host>:1883, unique ClientID, and the corresponding username/password - Configure ESP32 gateway firmware with
mqtt_server,mqtt_port,mqtt_username,mqtt_passwordand unique ClientID - Add MQTT integration in Home Assistant with same host, port 1883, and ha credentials
- Verify connections in broker console, subscribe to
/Radar60SP/{DeviceID}/#,/Radar60FL/,/RadarHP/, and check Home Assistant states - Troubleshoot common issues such as missing acceptor, wrong port, duplicate ClientID, or firewall on 8161
证据
The broker has to be ready before the radar is configured
Apache Artemis 2.50.0
Stop the broker, edit /opt/radar-broker/etc/broker.xml, and add one acceptor inside <acceptors>
Create users in etc/artemis-users.properties and map them to roles in etc/artemis-roles.properties
Verify by subscribing to the model's report topic with any MQTT client — /Radar60SP/{DeviceID}/#
- 记录日期: 2026-10-23T00:11:42.159Z