MQTT
- Why and When to Use MQTT Topics Beginning with $
- Also explains topics and wildcards
Message broker
Moquitto
- Website
- Mosquitto docs
- Recommende by zigbee2mqtt
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
- GitHub
- Chart in charts/mqtt-exporter/
- Published chart: geek-cookbook/mqtt-exporter helm chart
- Container images
MQTT_TOPICandMQTT_IGNORED_TOPICSexample- Downside: The
Metrics conversion example
shows that different label values of the same MQTT payload are converted into individual Prometheus metrics. This not
great for certain situations (i.e. where you need
latitudeandlongitudetogether for a Grafana GeoMap)
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