I’m trying to set up esp8266-midea-dehumidifier to work with Home Assistant. I’ve flashed the ESP8266 and have configured the WiFi and MQTT server details.
However, when it tries to connect to the Mosquitto broker, it says “Client disconnected, not authorised”. I’ve checked, and disabling authentication does allow it to connect correctly.
I’m not sure exactly where things could be going wrong here, as I’ve tried connecting to the broker from my PC with the same credentials, and it had no problems.
The code used for connecting to MQTT can be found here, if needed: esp8266-midea-dehumidifier/src/esp8266-midea-dehumidifier/esp8266-midea-dehumidifier.ino at 317e2295dde70d7b20d649d6f0dda061c608fb11 · Hypfer/esp8266-midea-dehumidifier · GitHub