Skip to content

MQTT

Message broker

Moquitto

Config

listener 1883
allow_anonymous false
password_file auth.conf

Generate password file:

podman run --rm -it -v /tmp:/tmp docker.io/eclipse-mosquitto mosquitto_passwd -c /tmp/auth.conf mqtt

Bridges

Zigbee2MQTT

mqtt-exporter

mqtt2prometheus

  • GitHub
  • MQTT to Prometheus gateway
  • Stale: Last release 2023-01

Cli

Install:

pamac install mqtt-cli-bin

Test the server:

mqtt test -h SERVER

See all topics: Subscribe to #:

mqtt sub -t '#'

TUI

  • mqttui
    • "Subscribe to a MQTT Topic or publish something quickly from the terminal"

Example:

mqttui mqttui --username mqtt --password $(rbw get 'mqtt.c.varac.net|user-pw|mqtt')  -b mqtt://casita