Hi all,
!'m currently testing a switch from ioBroker to Home Assistant. My first step is to integrate my Shelly switches, which I control via MQTT, into Home Assistant. To do this, I’ve installed and configured the Mosquitto add-on. As a special note, I’ve used port 1882 instead of the standard port. This setup has worked seamlessly in my previous ioBroker installation. However, in the MQTT integration of Home Assistant, I don’t see a single Shelly device.
While troubleshooting, I noticed that the configuration of the port in Mosquitto doesn’t seem to take effect. Here’s my configuration:
And here’s an excerpt from the Mosquitto protocol:
2024-01-25 21:28:18: mosquitto version 2.0.18 starting
2024-01-25 21:28:18: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-01-25 21:28:18: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-01-25 21:28:18: ├── Username/password checking enabled.
2024-01-25 21:28:18: ├── TLS-PSK checking enabled.
2024-01-25 21:28:18: └── Extended authentication not enabled.
2024-01-25 21:28:18: Opening ipv4 listen socket on port 1883.
2024-01-25 21:28:18: Opening ipv6 listen socket on port 1883.
2024-01-25 21:28:18: Opening websockets listen socket on port 1884.
2024-01-25 21:28:18: mosquitto version 2.0.18 running
2024-01-25 21:28:18: New connection from 127.0.0.1:50264 on port 1883.
2024-01-25 21:28:18: Client <unknown> disconnected due to protocol error.
2024-01-25 21:28:19: New connection from 192.168.178.50:55340 on port 1883.
2024-01-25 21:28:19: New client connected from 192.168.178.50:55340 as auto-A14B37AF-380F-C7EB-65C9-F1F74F14B226 (p2, c1, k60, u'mqtt').
[21:28:20] INFO: Successfully send discovery information to Home Assistant.
[21:28:20] INFO: Successfully send service information to the Supervisor.
2024-01-25 21:28:21: New connection from 192.168.178.156:11315 on port 1883.
2024-01-25 21:28:21: New client connected from 192.168.178.156:11315 as shellyplug-s-6977E5 (p2, c1, k60, u'mqtt').
2024-01-25 21:28:27: New connection from 192.168.178.155:22782 on port 1883.
2024-01-25 21:28:27: New client connected from 192.168.178.155:22782 as shellyplug-s-6A6506 (p2, c1, k60, u'mqtt').
2024-01-25 21:28:28: New connection from 192.168.178.36:17320 on port 1883.
2024-01-25 21:28:28: New client connected from 192.168.178.36:17320 as shelly1-B926C6 (p2, c1, k60, u'mqtt').
2024-01-25 21:28:29: New connection from 192.168.178.50:49105 on port 1883.
2024-01-25 21:28:29: New client connected from 192.168.178.50:49105 as 19gFTHuDBOIUr9ZGO6BOh4 (p2, c1, k60, u'mqtt').
2024-01-25 21:28:29: New connection from 192.168.178.61:3901 on port 1883.
2024-01-25 21:28:29: New client connected from 192.168.178.61:3901 as shelly1-E09806963789 (p2, c1, k60, u'mqtt').
It seems to me that Mosquitto is still listening on the default port 1883.
I did not configure a mqtt-user within the add-on. I configured the same user as used by the shelly devices directly in home assistant.
Do you have any tips for me?
Thanks in advance,
Kuesel