Eclipse Mosquitto¶
 Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol.
I use it to extract devices from rtl_433.
 Config¶
  Web port: 9001
 Interface port: 1883
User: mosquitto
UID: 1883
Group: mosquitto
GID: 1883
compose.yaml
  mosquitto:
    image: eclipse-mosquitto:2.0.22
    container_name: mosquitto
    volumes:
      - ./mosquitto:/mosquitto
      - ./mosquitto/data:/mosquitto/data
      - ./mosquitto/log:/mosquitto/log
      - ./mosquitto/config:/mosquitto/config
      - /etc/localtime:/etc/localtime:ro
      - ./mosquitto/config/password.txt:/mosquitto/config/password.txt
    ports:
      - 1883:1883
      - 9001:9001
    restart: unless-stopped
    networks:
      - localnet
 Permissions¶
 By default, the eclipse-mosquitto Docker image is run using the mosquitto:mosquitto 1883:1883 user and group.
To be able to edit the config file using the current user on the host, the mosquitto group needs to be added to the host system and the host user needs to be added to the group.
 Setup Directories¶
    
 Credentials¶
 Generate username and password for mosquitto.
./mosquitto/config/password.txt
Check
Check that it's not running
 Home Assistant¶
 Note
The Broker should match the container name of Eclipse Mosquitto and the username and password should match the generated ones above.
Broker: mosquitto
Port: 1883
Username: username
Password: password