[web_server] Self contained AP mode: embedded interface served as a captive portal (#18517)

This commit is contained in:
J. Nick Koston
2026-10-12 07:46:11 -10:00
committed by GitHub
parent 99b61760c3
commit af8a0739f0
22 changed files with 600 additions and 145 deletions
@@ -0,0 +1,18 @@
# STA with AP fallback plus local: true opts the fallback into captive AP mode; exercises
# the runtime start (fallback branch in wifi loop) and end (on STA connect, and when the
# provisioning window closes) paths.
provisioning:
timeout: 1min
api:
encryption:
wifi:
ssid: MySSID
password: password1
ap:
ssid: "ESPHome-Test"
password: "Test1234!"
web_server:
local: true
@@ -0,0 +1,9 @@
# AP mode: with a WiFi access point and the interface embedded in the firmware, web_server
# runs its own captive portal (DNS server, unknown URLs redirect to the page).
wifi:
ap:
ssid: "ESPHome-Test"
password: "Test1234!"
web_server:
local: true
@@ -0,0 +1,2 @@
packages:
web_server: !include common-ap-fallback.yaml
@@ -0,0 +1,2 @@
packages:
web_server: !include common-ap-mode.yaml
@@ -0,0 +1,2 @@
packages:
web_server: !include common-ap-mode.yaml