So I have the device-discovery etc. part working, and ESPlorer shows Konnected trying to send updates when my sensors change - but the updates aren't "received" by HomeAssistant. My HA setup is TLS-enabled (using the DuckDNS addon) Doing a packet capture in the docker-container running HA, and filtering for the IP of the first Konnected device - I can see the TCP connection establish, and the SSL connection proceeds as expected:
=> Client Hello <= Server Hello <= Certificate, Server Key Exchange, Server Hello Done
And then, Konnected/NodeMCU's TLS implementation returns the following 'Decrypt Error' on the wire
Secure Sockets Layer TLSv1.2 Record Layer: Alert (Level: Fatal, Description: Decrypt Error) Content Type: Alert (21) Version: TLS 1.2 (0x0303) Length: 2 Alert Message Level: Fatal (2) Description: Decrypt Error (51)
I can obviously connect to HA using TLS from multiple browsers, and from the Linux 'openssl' command-line client. The relevant logs from the NodeMCU device are:
HTTP client: Disconnected with error: 46 HTTP client: Connection timeout Heap:33472 HTTP Call: -1 state 1 pin 2 E:M 528 HTTP client: Disconnected with error: 46 HTTP client: Connection timeout Heap:33288 HTTP Call: -1 state 0 pin 2 E:M 528 HTTP client: Disconnected with error: 46 HTTP client: Connection timeout Heap:33288HTTP Call:-1state1pin2
Any hints as to where to go next - I do know some lua, but I couldn't see if the Konnected scripts had any way to interrupt the boot process.