Hi everyone,
Yesterday I noticed that Switchbot-Mqtt is no longer connecting to Mosquitto, or rather, the connection is being rejected.
Unfortunately, I can’t quite make sense of the error message. ![]()
Switchbot-Mqtt:
11:19:38 fail: HomeAssistantAddOn.Mqtt.MqttService[0] ConnectingFailed null MQTTnet.Adapter.MqttConnectingFailedException: Connecting with MQTT server failed (NotAuthorized). at MQTTnet.Client.MqttClient.Authenticate(IMqttChannelAdapter channelAdapter, MqttClientOptions options, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.ConnectInternal(IMqttChannelAdapter channelAdapter, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.ConnectAsync(MqttClientOptions options, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.ConnectAsync(MqttClientOptions options, CancellationToken cancellationToken) at MQTTnet.Extensions.ManagedClient.ManagedMqttClient.ReconnectIfRequiredAsync(CancellationToken cancellationToken)
What I understand is that the connection failed (unauthorized). The username and password are correct, though.
What I understand is that the connection failed. Mosquitto writes:
2025-12-27 11:23:18: Client SwitchBotMqttApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null disconnected, not authorized.
PublickeyToken=null ???
It would be really great if someone could help me. I can also share further settings if needed. ![]()