Closed wsw70 closed 2 years ago
I have never had this issue and just double checked the sonoff basic I'm using has the web server enabled and working fine. Maybe only certain hardware versions have the issue? Logs would probably be good here. If the logs don't show anything interesting I'd build with verbose and/or very_verbose logging level and see what we can learn.
Have you tried lowering the wifi power? ESPHome's default of 20 is pretty aggressive. Tasmota defaults to 17 which is what I use for all my devices. I've had issues with the captive portal crashing devices with wifi power 20 so who knows what other weird side effects might be caused.
Have you tried lowering the wifi power?
THANK YOU. I just flashed the same device with the power reduced to 17dB and, behold, it connected to the WiFi and exposed its web server! It also shows much better results on the AP ("connection quality", whatever it is, was 60 before, now 100)
I would have never found out without your help.
In the meantime, I was testing with the captive portal and it was extremely unstable. I will now simulate a WiFi loss and see if it works better.
EDIT: yes, the captive portal seems more stable as well.
Thank you again for this great help - I will envision to upgrade my switches with less stress and the family may very well still have lights tonight :)
Sweet, glad it worked!
The problem
Adding the component
web_server
and flashing a Sonoff Basic bricks the device (no connection to the defined WiFi, a rescue AP is created but it is impossible to connect to it).This is a follow-up to https://github.com/esphome/issues/issues/1688
Which version of ESPHome has the issue?
at least since
1.15.3
, including2022.10.1
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP8266
Board
Sonoff Basic
Component causing the issue
web_server
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
The configuration above works. It is adding the line
to the YAML configuration file that bricks the device (after a successful flashing from the esphome web interface).
I also tried to disable
captive_portal
in case it would conflict withweb_server
but the device is bricked as well.The device never connects to the WiFi network (confirmed on the AP) with
web_server
enabled.