Closed jjlawren closed 5 years ago
I can confirm one of the listed BSSIDs with an empty listed SSID is the network I'd like to connect to.
Enabling SSID broadcast on the AP allows the device to connect. However I don’t think this should be a requirement to work.
Coincidentally, I just sat down to report the same issue.
It won't connect if the SSID is hidden. Telling my AP to unhide it allows it to connect (no other changes). ESPEasy is able to connect to the same AP while the SSID is hidden. So I'm pretty sure there's a bug in esphomelib.
I haven't been able to figure out how the entire wifi stack works, but I was poking around in WiFiScanResult::matches(). I printed out this->ssid_ and it looks like hidden SSIDs are empty strings. So, ap.getssid() would never equal this->ssid if the SSID is hidden.
I think the way I'll solve it is by adding a new hidden
configuration option.
Workaround is: use BSSID
wifi:
networks:
- bssid: 46:D9:E7:91:1B:CC # replace
password: ...
Using bssid doesn’t work. The log on the ap doesn’t even show an attempt of connection. I am trying with a sonoff pow. I’ll try later on with a wemos to see if I can get more logging through the serial.
Btw fantastic project. Thanks for your work.
Same here, I can't connect to hidden ssid with d1mini. When I switch my ssid to be visible it can connect without problems. I am using latest docker image ottowinter/esphomeyaml. I agree with subzero79, great work. Thanks
Yeah, BSSID does not work for me either. "Wifi Connecting to ''..." then "Timeout while connecting to wifi"
Greetings,
Just upgraded to 1.10.0. Also experiencing the same issue, currently testing on NodeMCU.
Unable to connect to hidden wifi network, bssid
option also not working and I am running multiple AP's on same SSID name, so no luck on that option either.
Would it be possible to specify multiple BSSID so that the closest AP is used?
@oscar-b https://esphomelib.com/esphomeyaml/components/wifi.html#connecting-to-multiple-networks - but as said here using bssid
also doesn't work.
@OttoWinter I want it to connect to the same hidden SSID though, using the closest BSSID (APs), not different networks. I would have to specify the same network and password multiple times with the current implementation, as far as I can tell?
it works now. :+1:
Confirmed working to connect to hidden WiFi (NodeMCU)
For the sake of easy access, clarity, and those who just google to copy paste the correct configs...
To connect to hidden on 1.10.1
...
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret wifi_domain
fast_connect: true
...
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip
ESP (ESP32/ESP8266/Board/Sonoff):
esp8266 (nodemcu)
Affected component:
wifi (https://esphomelib.com/esphomeyaml/components/wifi.html)
Description of problem: After upgrading from a quite old version to 1.10, I can no longer connect to hidden SSIDs. The wifi component repeatedly scans the available wifi networks and fails with "No matching network found!".
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Note that 'myssid' above is a broadcasted SSID, and not the hidden one I'm trying to connect to.
Additional information: