Yesterday, I made 2 changes to my HA installation after which I noticed an issue. The odd thing about it though is that I had both of these changes with the otherwise exact same configuration in place already, days ago and had no issues then but now I suddenly did.
The 1st change I made was:
I cleared the Refresh Tokens on my HA account the way this post described.
The 2nd was:
I enabled port forwarding on my router again and started using HAs external URL on my browsers.
It seems like one of those things caused my Mosquitto broker
addon’s username and password to reset in HA. Because of that, the username and password in HA didn’t match the pair in HASS.Agent and thus no connection was established and the sensor values weren’t reported.
How could this happen?
Also, should I configure a new password again? How important is it, especially when there had been a recent malware attack?
The issue reappeared and I fixed it the exact same way as last time. Somehow Home Assistant did not remember the credentials I entered into it and somehow HASS.Agent didn’t either; their input-fields are blank in both softwares. This is very weird to me because I did not change anything about HA or HASS.Agent at the point in time when my sensor stopped reporting something.
Anyway, let me give you some further details on it:
I’m noticing that Mosquitto Broker keeps producing these log messages again and again:
1742925463: New connection from 172.30.32.2 on port 1883.
1742925463: Socket error on client <unknown>, disconnecting.
After this repeated itself countless times, I also saw this once:
1742925523: Saving in-memory database to /data/mosquitto.db.
By the way, I’m noticing that in the HASS.Agent MQTT settings it says “homeassistant.local” under “Broker IP Address or Hostname” even though I’ve switched to the server URL “https://somethingelse.duckdns.org:8123”, since I’m accessing HA from an external URL with https.
Is that a problem?
Using the following software versions, by the way:
Mosquitto Broker 6.0.1
HASS.Agent 2.1.1
Core2025.2.5
Supervisor2025.03.3
Operating System14.2
Frontend20250221.0
I decided to update Mosquitto Broker to 6.5 because my version is a bit outdated. Maybe this will solve the issue? But perhaps any of you guys has a more well-informed approach to solve this?