Wiki source code of Adding Mosquitto (MQTT) to my Home Automation
Last modified by Normann P. Nielsen on 2025/12/14 20:30
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | Very simple and basic with: [[https://hub.docker.com/r/ansi/mosquitto]](alternatives at [[https://hub.docker.com/search?q=mosquitto&type=image]]) |
| 2 | |||
| 3 | |||
| 4 | {{code}} | ||
| 5 | root@robin:~# docker pull ansi/mosquitto | ||
| 6 | Using default tag: latest | ||
| 7 | latest: Pulling from ansi/mosquitto | ||
| 8 | 32802c0cfa4d: Pull complete | ||
| 9 | da1315cffa03: Pull complete | ||
| 10 | fa83472a3562: Pull complete | ||
| 11 | f85999a86bef: Pull complete | ||
| 12 | 366651916f62: Pull complete | ||
| 13 | 80ae6f7b2d0c: Pull complete | ||
| 14 | 8b3df2ba5b2d: Pull complete | ||
| 15 | 365b81036652: Pull complete | ||
| 16 | 8bc62da4a90c: Pull complete | ||
| 17 | 7391832c4a5f: Pull complete | ||
| 18 | Digest: sha256:52682d5a0ac8eb18e46e0a54d0e7911027d92338e719e80bcd71dea3c5ef441a | ||
| 19 | Status: Downloaded newer image for ansi/mosquitto:latest | ||
| 20 | root@robin:~# sudo docker run -p 1883:1883 --name mqtt -d ansi/mosquitto | ||
| 21 | 0d84be978de76c5157426694ecda1e9ce5d070228813d1dc6ca3440785877cd2 | ||
| 22 | root@robin:~# | ||
| 23 | {{/code}} | ||
| 24 | |||
| 25 | Testing: | ||
| 26 | |||
| 27 | [[image:Screenshot 2019-05-31 at 18.17.32.png||height="250"]] | ||
| 28 | |||
| 29 | The plan is to enable my [[Zensehome - Hit or Shit>>Main.familien.zensehome-hit-or-shit]] as I did with [[openHAB>>Main.information-technology.openhab]] in [[OpenHAB with Zensehome>>Main.information-technology.openhab-with-zensehome]] |