Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network services does not work when WiFI fails to connect and revert to AP mode #4333

Open
beikeland opened this issue Mar 22, 2023 · 2 comments
Labels

Comments

@beikeland
Copy link

The problem

Network services like OTA, mDNS, web_server result in connection refused when trying to connect in fallback AP mode.

Services does work if ESPHome goes straight to AP mode when no networks are defined in yaml.

Tested on ESP32 and both Arduino and ESP-IDF.

Which version of ESPHome has the issue?

2023.4.0-dev

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

shelly, nodemcu

Component causing the issue

wifi

Example YAML snippet

wifi:
  ssid: "some-ssid-that-cant-be-connected-to"
  password: "somepassword"
  ap: {}

ota:

Anything in the logs that might be useful for us?

There was no log entries after 

I (4262) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.100

showing client connected, and client receiving

ERROR Connecting to 192.168.4.1:3232 failed: [Errno 61] 

with VERY_VERBOSE logging enabled.

Additional information

No response

@beikeland
Copy link
Author

mostly a duplicate #3956 and #3253 but it also appears to affect any network service like OTA and mDNS as well.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant