MQTT Constant Disconnects and Reconnects After Reboot
On each startup I find HASS Agent isn't communicating over MQTT. Looking at the status it flips rapidly between connected and reconnected.
Looking at the Mosquito MQTT Broker logs, the previously used ID is showing as still connected, as though it didn't disconnect cleanly.
The only thing I can spot in the HASS Agent logs is the connection confirmations several times per second.
I can work around this for now, by updating the ID for the MQTT session in the HASS Agent config.
Solution
I think @Amadeo was on to something. I had a prior issue which I used task scheduler to start HASS agent as admin. I never deleted that after resolving my other issue...