You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **log** (*Optional*, boolean): Turn on or off the log feature inside webserver. Defaults to ``true``.
70
+
- **ota** (*Optional*, boolean): Explicitly disable OTA updates through the web server interface. Only accepts ``false``.
71
+
This option is typically used when you have both ``web_server`` and ``captive_portal`` configured, and you want
72
+
OTA updates to be available only through the captive portal. Since ``captive_portal`` automatically loads the
73
+
web server OTA platform, setting this to ``false`` prevents OTA access through the regular web interface while
74
+
maintaining it for captive portal access. To enable OTA for web server, use the ``web_server`` OTA platform instead.
70
75
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
71
76
- **local** (*Optional*, boolean): Include supporting javascript locally allowing it to work without internet access. Defaults to ``false``.
72
77
- **version** (*Optional*, string): ``1``, ``2`` or ``3``. Version 1 displays as a table. Version 2 uses web components and has more functionality. Version 3 uses HA-Styling. Defaults to ``2``.
@@ -85,6 +90,7 @@ interface are hosted by esphome.io. If you want to use your own service, use the
85
90
**OTA Updates via Web Interface**
86
91
87
92
The ``ota`` option has been moved from the ``web_server`` component to its own OTA platform.
93
+
88
94
To enable OTA updates through the web interface, use the new ``web_server`` OTA platform:
89
95
90
96
.. code-block:: yaml
@@ -93,6 +99,18 @@ interface are hosted by esphome.io. If you want to use your own service, use the
93
99
ota:
94
100
- platform: web_server
95
101
102
+
To explicitly disable OTA updates for the web server while keeping them enabled for captive portal
103
+
(useful when captive portal is configured since it automatically enables web server OTA):
104
+
105
+
.. code-block:: yaml
106
+
107
+
# Disable OTA updates for web_server only
108
+
# Captive portal will still have OTA access since it auto-loads the web server OTA platform
109
+
web_server:
110
+
ota: false
111
+
112
+
captive_portal: # This component automatically enables OTA
113
+
96
114
See :doc:`/components/ota/web_server` for more information.
97
115
98
116
Example configurations:
@@ -126,6 +144,19 @@ No internet/intranet required on the clients (all assets are inlined, compressed
126
144
web_server:
127
145
local: true
128
146
147
+
Disabling OTA updates for web server while using captive portal (common security setup):
148
+
149
+
.. code-block:: yaml
150
+
151
+
# Example configuration entry
152
+
web_server:
153
+
port: 80
154
+
ota: false # Disables OTA through regular web interface
155
+
156
+
# Captive portal automatically enables web server OTA platform
157
+
# OTA will only be accessible when captive portal is active
0 commit comments