homebridge / homebridge-raspbian-image

Official Homebridge Raspberry Pi Image based on Raspberry Pi OS Lite.
http://homebridge.io
BSD 3-Clause "New" or "Revised" License
1.07k stars 64 forks source link

Homebridge WiFi Setup doesn't work (RPi Zero W/WH) #75

Closed crmne closed 2 years ago

crmne commented 2 years ago

Describe The Bug: I'd like to install Homebridge on my RPi Zero W (or on the WH), but the last three version I've tried (1.0.28-1.0.30) failed to connect to my home WiFi network.

I'm sure the password is correct, and that my network works well. I have a lot of HomeKit devices connected very successfully.

To Reproduce:

Expected behavior:

Environment:

h0lz commented 2 years ago

Wifi Country set via raspi-config? (Not sure if required in image install.)

crmne commented 2 years ago

Hi @h0lz,

thanks for the suggestion.

I tried to:

  1. login via ssh and set up Wireless LAN via raspi-config, setting up the country correctly. (it's Germany, even though my 2.4GHz WiFi is on channel 6 so it shouldn't be a problem). Rebooted and still got the WiFi Setup captive portal
  2. manually writing the /etc/wpa_supplicant/wpa_supplicant.conf file with country, ssid and password. Rebooted and still got the captive portal
  3. After both steps above, also tried to input the ssid and password in the captive portal, same behaviour.

Any other ideas?

I also think that if the WiFi setup needs it, it should ask the country before asking for which SSID it should connect to.

benKenob1 commented 2 years ago

I have the same Problem with the same hardware. Created a wpa_supplicant.conf in the boot partition because this works in Raspberry PI OS Lite. But it didn't work. I was wondering how you you get a ssh connection when there is no working wifi connection? Is there a workaround?

NTohan commented 2 years ago

I am also having the same issue while setting up homebridge (1.0.27-1.0.30) on Pi Zero W.

Has anyone tried hoobs as an alternative?

NTohan commented 2 years ago

rolling back to 1.0.22 does work...

crmne commented 2 years ago

@NTohan didn't work for me unfortunately :(

Danos0100 commented 2 years ago

Hey! I'm on a Raspi 3 and running into the same problem:

Running journalctl --unit=wpa_supplicant brings up the following (among other entries):

wlan0: Trying to associate with SSID 'FRITZ!Net 1.5.0' wlan0: WPA: Failed to select authenticated key management type wlan0: WPA: Failed to set WPA key management and encryption suites

The network I am trying to connect to is an AVM FRITZ!Box 6951 Cable with a separate SSID for 5 GHz (which is the one I am trying to connect to).

If I run sudo hb-config, and enter networking options, I can however change the Network entry: NetworkingEdit a connection → <choose the Wi-Fi network's entry> → change Security from WPA3 Personal to WPA & WPA2 Personal.

So to conclude, there seems to be a problem related the Raspi 3 trying to connect using WPA3. If I choose WPA & WPA2, everything works fine. (And another reboot to get the interface at http://homebridge.local, until then, it still shows the WiFi Setup Assistant)

This workaround however is not very user-friendly, so we definitely have to change something here…

oznu commented 2 years ago

Users can now also setup WiFi connections via the Raspberry Pi Imager Tool by clicking the cog icon before flashing.

This will configure WiFi using standard networking stack that ships with vanilla Raspberry Pi OS.