A sensor can refuse a message server whose certificate does not match the one its owner configured. ESPHome adds encrypted MQTT connections on ESP8266 boards; MQTT carries sensor readings and commands, while TLS protects that traffic in transit.

Anton makes a first contribution to ESPHome with the feature, tested on an ESP8266 HUZZAH, an ESP-01S and a D1 mini running ratgdo. The secure session uses about 12 KB of working memory, leaving little spare space when a busy web server runs alongside it. Configurations without a fingerprint keep their existing unencrypted path.

Normal shutdowns also send an orderly disconnect instead of triggering the broker’s lost-connection alert. The regular shutdown message still marks the device offline; configurations that deliberately cleared shutdown_message lose that signal on a clean shutdown.