#Cannot have dual MQTT authentication with HASPone and Home Assistant

1 messages · Page 1 of 1 (latest)

wild goblet
#

I can get one to auth, but not the other. So the HASPone either authenticates using the password I created, or the Home Assistant can authenticate, but not both at once. I even tried the whole pwfile approach in /config as per instructions I found. If I do it that way I can get Home Assistant to connect to the MQTT Devices/Integrations part, but then passworded auth is no longer an option for any other device at all.

Help?

#

I even tried doing this with a standalone docker MQTT installation, same problem.

#

logins:

  • username: homeassistant
    password: <mygeneratedpw>
    require_certificate: false
    certfile: fullchain.pem
    keyfile: privkey.pem
    customize:
    active: false
    folder: mosquitto

2025-04-05 09:16:03: mosquitto version 2.0.20 starting
2025-04-05 09:16:03: Config loaded from /etc/mosquitto/mosquitto.conf.
2025-04-05 09:16:03: Loading plugin: /usr/share/mosquitto/go-auth.so
2025-04-05 09:16:03: Warning: Mosquitto should not be run as root/administrator.
2025-04-05 09:16:03: ├── Username/password checking enabled.
2025-04-05 09:16:03: ├── TLS-PSK checking enabled.
2025-04-05 09:16:03: └── Extended authentication not enabled.
2025-04-05 09:16:03: Opening ipv4 listen socket on port 1883.
2025-04-05 09:16:03: Opening ipv6 listen socket on port 1883.
2025-04-05 09:16:03: Opening websockets listen socket on port 1884.
2025-04-05 09:16:03: mosquitto version 2.0.20 running
2025-04-05 09:16:03: New connection from ::1:51320 on port 1883.
2025-04-05 09:16:03: Client <unknown> disconnected due to protocol error.
[09:16:03] INFO: Successfully send discovery information to Home Assistant.
[09:16:03] INFO: Successfully send service information to the Supervisor.
2025-04-05 09:16:18: New connection from 172.30.32.1:59049 on port 1883.
2025-04-05 09:16:18: Client 3Bsqq0fT2jXZphX0E2r2Yh disconnected, not authorised.
2025-04-05 09:17:45: New connection from 172.30.32.2:45016 on port 1883.
2025-04-05 09:17:45: Client <unknown> closed its connection.
2025-04-05 09:19:45: New connection from 172.30.32.2:58978 on port 1883.
2025-04-05 09:19:45: Client <unknown> closed its connection.
2025-04-05 09:21:45: New connection from 172.30.32.2:50504 on port 1883.
2025-04-05 09:21:45: Client <unknown> closed its connection.
2025-04-05 09:21:52: New connection from 172.30.32.1:55907 on port 1883.
2025-04-05 09:21:52: Client 1bgjpOKQkV77DQlkEjaF6u disconnected, not authorised.
2025-04-05 09:22:03: New connection from 192.168.1.165:56519 on port 1883.
2025-04-05 09:22:03: New client connected from 192.168.1.165:56519 as plate01-4855190a953 (p2, c1, k30, u'homeassistant').

165 is my HASPone

172.30 stuff seems to be the local auth from the device/integration setup