Skip to content

Cannot connect to MQTT broker with TLS - esp-tls select() timeout #162

@fritzrichter

Description

@fritzrichter

Hi,
I'm unable to connect EAS to my MQTT broker via TLS and would appreciate some help diagnosing the issue.

Setup:

  • MQTT Broker: Mosquitto (Home Assistant Addon)
  • Broker host: ha.home (local DNS via UniFi)
  • Port: 8883 (TLS)
  • Certificate: Self-signed for local domain ha.home with SAN IP:10.0.1.50, DNS:ha.home
  • TLS cannot be disabled in EAS as far as I can tell

What works:

  • Successfully connecting to the broker on port 8883 with TLS enabled using MQTT Explorer ✅
  • Certificate was accepted without issues in MQTT Explorer ✅

What doesn't work:
EAS cannot connect to the same broker

EAS Log output:

22:06:55 Error  esp-tls: [sock=55] select() timeout
22:06:55 Error  mqtt_client: Error transport connect
22:06:55 Error  mqtt: tls error 0x8006, stack error 0x0, errno 0 (Success)

Questions:

Does EAS support self-signed certificates? If so, how do I provide the CA certificate?
Is there a way to disable TLS verification (tls_insecure) in EAS?
Could the select() timeout indicate a network reachability issue rather than a certificate problem?
Is there any way to disable TLS entirely in EAS?

Additional info:

The broker IP 10.0.1.50 is reachable from the network segment where EAS is located
EAS firmware version: [20260317]

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions