module

HomeconnectLocal

HomeConnect Local (minimal protocol client)

Focus: AES mode first (ws://host:80/homeconnect) with custom AES+HMAC framing. TLS-PSK mode is supported via OpenSSL TLS 1.2 + PSK callback.

Constants

SERVICE_DOMAIN = "_homeconnect._tcp.local"
VERSION = "0.1.0"

Class methods

decode_urlsafe_b64(s : String) : Bytes
Source
discover_devices(timeout : Time::Span = 2.seconds, service_domain : String = SERVICE_DOMAIN) : Array(DiscoveredDevice)

Discover Home Connect devices on the local network using mDNS.

The resolver flow is:

  • PTR: _homeconnect._tcp.local -> instance service names
  • SRV: instance -> target host + port
  • A/AAAA: target host -> IP addresses
Source
secure_compare(a : Bytes, b : Bytes) : Bool

constant-time compare

Source
urlsafe_b64_no_pad(bytes : Bytes) : String
Source

Nested types