Hi, I’ve done a search and haven’t really found the answer to how to configure this.
I found @RobLitjens topic here which suggests it’s possible to do, but I’ve tried various settings and have failed to get it working.
Desired result:
Create local LAN based Home Assistant Dashboard which can display RUTX50 info using MQQT Topics (e.g. operator, connection, network etc) - if there’s a better protocol to use then I’m happy to try that.
Current known working:
Mosquito Add On / Integration in Home Assistant tested and working by publishing Topic from MQQT Explorer installed on local PC.
Current issue:
I can see connections coming from the RUTX50 in the Mosquito logs in Home Assistant, and I have created a user/pass in HA specifically for MQTT so it doesn’t clash with any default users. However, the connections are closed as the client is ‘not authorised’
I initially tried setting up the Publisher, Broker and Bridge MQTT settings in the RUTX50 interface, and have now also tried setting up the MODBUS MQTT (I didn’t see it to start with!) but no matter what settings I’ve tried I always get some variant of ‘not authorised’ in the Mosquito Log on HA.
This is all being done locally, the router and HA are on static IPs, the HA (11.11.11.150) is connected by ethernet to the router (11.11.11.1).
I haven’t created any certificates - but from what I’ve managed to understand this shouldn’t be necessary.
Any help greatly appreciated as I’m completely new to Home Assistant and MQTT so I’m hoping it’s just something simple.
This is the code from the log from Mosquito in Home Assistant when I start it up. It just loops the same error after that point.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[08:44:28] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[08:44:28] INFO: Starting NGINX for authentication handling...
[08:44:28] INFO: Starting mosquitto MQTT broker...
2025-03-18 08:44:28: Warning: Mosquitto should not be run as root/administrator.
2025-03-18 08:44:28: mosquitto version 2.0.20 starting
2025-03-18 08:44:28: Config loaded from /etc/mosquitto/mosquitto.conf.
2025-03-18 08:44:28: Loading plugin: /usr/share/mosquitto/go-auth.so
2025-03-18 08:44:28: ├── Username/password checking enabled.
2025-03-18 08:44:28: ├── TLS-PSK checking enabled.
2025-03-18 08:44:28: └── Extended authentication not enabled.
2025-03-18 08:44:28: Opening ipv4 listen socket on port 1883.
2025-03-18 08:44:28: Opening ipv6 listen socket on port 1883.
2025-03-18 08:44:28: Opening websockets listen socket on port 1884.
s6-rc: info: service legacy-services successfully started
2025-03-18 08:44:28: mosquitto version 2.0.20 running
2025-03-18 08:44:28: New connection from ::1:36890 on port 1883.
2025-03-18 08:44:28: Client <unknown> disconnected due to protocol error.
2025-03-18 08:44:28: New connection from 11.11.11.36:64639 on port 1883.
2025-03-18 08:44:28: New client connected from 11.11.11.36:64639 as mqtt-explorer-7dc28af6 (p2, c1, k60, u'**MY EDITED USERNAME**').
[08:44:28] INFO: Successfully send discovery information to Home Assistant.
2025-03-18 08:44:29: New connection from 11.11.11.1:38672 on port 1883.
error: received null username or password for unpwd check
2025-03-18 08:44:29: Client auto-3C5EAC40-EA81-A871-EBBB-C09450243E9E disconnected, not authorised.
2025-03-18 08:44:29: New connection from 11.11.11.1:38680 on port 1883.
[08:44:29] INFO: Successfully send service information to the Supervisor.
2025-03-18 08:44:30: Client <unknown> closed its connection.
2025-03-18 08:44:30: New connection from 11.11.11.1:38694 on port 1883.
error: received null username or password for unpwd check
2025-03-18 08:44:30: Client auto-AF4DB794-D85F-FFEC-F352-109581A94573 disconnected, not authorised.
2025-03-18 08:44:30: New connection from 11.11.11.1:38696 on port 1883.
2025-03-18 08:44:31: Client <unknown> closed its connection.
2025-03-18 08:44:31: New connection from 11.11.11.1:38712 on port 1883.
error: received null username or password for unpwd check
2025-03-18 08:44:31: Client auto-A2340CA4-5844-BD36-FB63-4ED8978EFBC2 disconnected, not authorised.
2025-03-18 08:44:31: New connection from 11.11.11.1:38718 on port 1883.
2025-03-18 08:44:32: Client <unknown> closed its connection.
2025-03-18 08:44:32: New connection from 11.11.11.1:38720 on port 1883.
error: received null username or password for unpwd check
2025-03-18 08:44:32: Client auto-36DF050F-CAB0-03F9-B6C3-FF6A99A890BD disconnected, not authorised.
2025-03-18 08:44:32: New connection from 11.11.11.1:38732 on port 1883.
2025-03-18 08:44:32: New connection from 11.11.11.150:50631 on port 1883.
2025-03-18 08:44:32: New client connected from 11.11.11.150:50631 as 5ZQ0ZkI5nhylz5zFg5DuP1 (p2, c1, k60, u'FNSMQTT').
2025-03-18 08:44:33: Client <unknown> closed its connection.
2025-03-18 08:44:33: New connection from 11.11.11.1:38738 on port 1883.```