Esphome web server version 2 not working

Hello everybody,
Today, after upgrading my esphome to version 2022.10.0, I am not able to see the device’s page from the web browser.

# Example configuration entry
web_server:
  local: true

If a change the parameter “local” to false, the web server works.
The documentation says:

  • local (Optional, boolean): Include supporting javascript locally allowing it to work without internet access. Defaults to false.

What has changed in this last update?
Thnak you very much for your feedback.

Don’t have an answer for you but I have the same problem!

It might be solved with this pull request: fix web_server javascript when in strict mode / local files by ferbar · Pull Request #2270 · esphome/esphome-docs · GitHub

Hi @Max_Q. Thanks for the info. I am no esphome expert so I just downgrade the version to the previous one. :slight_smile:

1. copy the css and js from esphome website to local pc

  curl https://esphome.io/_static/webserver-v1.min.css -O webserver-v1.min.css
  curl https://esphome.io/_static/webserver-v1.min.js -O webserver-v1.min.js

2. copy css and js from local pc to home assistant esphome folder

/config/esphome/dependencies/webserver/
dependencies/webserver/ are folders that I created

3. add the local files to yaml

web_server:
  port: 80
  css_include: "../esphome/dependencies/webserver/webserver-v1.min.css"
  css_url: ""
  js_include: "../esphome/dependencies/webserver/webserver-v1.min.js"
  js_url: ""