[api] Add outgoing connections so the device can dial Home Assistant (or anything that implements native API) (#18919)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-10-07 16:22:14 +13:00
committed by GitHub
co-authored by pre-commit-ci-lite[bot]
parent f3f79c301b
commit 0e04b230fe
25 changed files with 1217 additions and 60 deletions
@@ -0,0 +1,11 @@
packages:
common: !include common.yaml
wifi:
ssid: MySSID
password: password1
# Outgoing connection on the lwip_sockets implementation used by LibreTiny
api:
outgoing_connection:
host: 192.168.1.2
@@ -0,0 +1,14 @@
packages:
common: !include common.yaml
wifi:
ssid: MySSID
password: password1
# Outgoing connection: the device dials out when no dial-back client is
# connected. Requires encryption so the peer is verified by key.
api:
outgoing_connection:
host: 192.168.1.2
port: 6054
delay: 60s
@@ -0,0 +1,11 @@
packages:
common: !include common.yaml
wifi:
ssid: MySSID
password: password1
# Outgoing connection on the raw lwip_tcp implementation used by ESP8266 and RP2040
api:
outgoing_connection:
host: 192.168.1.2
@@ -0,0 +1,9 @@
packages:
common: !include common.yaml
network:
# No host set: the device dials the last remembered Home Assistant address
api:
outgoing_connection:
delay: 30s
@@ -0,0 +1,11 @@
packages:
common: !include common.yaml
wifi:
ssid: MySSID
password: password1
# Outgoing connection on the raw lwip_tcp implementation used by ESP8266 and RP2040
api:
outgoing_connection:
host: 192.168.1.2