-
Esphome uses the Paho Mqtt client in python that requires specifying websocket transport: https://github.com/eclipse/paho.mqtt.python
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
async-mqtt-client
📶 An Arduino for ESP8266 asynchronous MQTT client implementation (by OttoWinter)
That library in turn lives here: https://github.com/OttoWinter/async-mqtt-client
-
Good insight! Thanks for digging into the embedded code. Indeed, the library from which async-mqtt-client was forked has an outstanding issue to add wsMQTT support.
-
Thanks for digging into this! Based on your response and the response from u/antirobot, it appears neither the ESPHome server nor the embedded client support wsMQTT (makes sense because I was looking in vain for an option to specify the connection type). It appears HA only recently added support for wsMQTT, so I'm not too surprised.