Web Interface
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
ESPHome can serve a small built-in web page directly from the board, letting you view and control entities from any browser at http://<board-ip>. On the WiFi Fan Controller this web server is disabled by default, so nothing listens on port 80 and a browser will report ERR_CONNECTION_REFUSED.
This page explains why it is off, and how to turn it on in your own ESPHome configuration.
Why it is off by default
Section titled “Why it is off by default”The firmware ships secure-by-default. The built-in web server is left out for two reasons:
- Security. Without authentication, the web interface is an open control surface: anyone on your network can reach
http://<board-ip>and change fan speeds or read sensor data. Shipping it enabled by default would expose that surface on every board without the owner’s consent. - Resources. The web server component uses a significant amount of RAM and flash. Leaving it out keeps the default firmware lean, which matters on the ESP32-S2 used by Rev 2.0 and later.
You don’t need the web server for normal use. Home Assistant talks to the board over the encrypted ESPHome native API, which is fully independent of port 80. All fan control, sensors, and automations work whether or not the web interface is enabled.
The one exception is running the board fully standalone, without Home Assistant at all. There, the web server is the control surface rather than a redundant one. See Standalone Usage for that case.
Enabling the web interface
Section titled “Enabling the web interface”The web server is a standard ESPHome component. Add it to your own device configuration (the YAML you edit in the ESPHome Dashboard / add-on), then install the update over the air.
-
Add credentials to
secrets.yamlweb_server_username: "admin"web_server_password: "choose-a-strong-password" -
Add the
web_servercomponent to your device configurationweb_server:port: 80auth:username: !secret web_server_usernamepassword: !secret web_server_password -
Install the update
Save and click Install in the ESPHome Dashboard to flash the board over the air. Once it reboots, open
http://<board-ip>in a browser and log in with the credentials above.
Configuration options
Section titled “Configuration options”The most useful web_server options for this board. See the ESPHome web_server documentation for the complete list.
| Option | Default | Description |
|---|---|---|
port | 80 | TCP port the interface listens on. Use 80 for the standard http://<board-ip>. |
auth | none | username / password block that gates access. Strongly recommended — always set it. |
version | 2 | Web UI version. 3 is the newest and adds entity grouping (sorting_groups); 2 is the well-tested default. |
include_internal | false | When true, also shows entities marked internal (for example the per-fan RGB LEDs on Rev 3.x). |
local | false | Serve the UI’s JS/CSS from the board instead of a CDN, so it works without internet access. Uses more flash. |
ota | (platform) | OTA over the web moved to its own web_server OTA platform. Set ota: false here to disable web OTA; the standard ESPHome Dashboard OTA is unaffected. |
Related
Section titled “Related”- ESPHome web_server component — full option reference
- Home Assistant Integration — the primary, encrypted control path (no web server needed)
- Troubleshooting — other common issues