Hassio WIreless config

Did you update to the correct SSID and Password?

Change “My Awesome Wifi Ssid” to the SSID of your wireless network and “super_secret_wifi_password” to be the correct WiFi password in the example i gave above.

The only other thing I can think of is are you using wpa-psk as your security on your WiFi?

Yes. I got it working. It was just surprising to me that it could not be done from an ssh terminal. Sorry for the late reply. Thanks for the assistance.

Hello,

I had the same issue and I solved it in 2 hours.
I tried all solutions above, what helped was:

  • formatted the SD card (I use 128GB) again in FAT on my macbook
  • i ejected the same hassio to the SD card
  • entered my wifi and passwort like mentioned above

i did this three times and then it worked …

hope this helps…I can also only enter the file by the IP: 192.168.2.109:8123 which I got out of my router

Hi all, I can’t login with wifi, configuration as above. Are there any resin logs? I haven’t found yet, but they would help very much. Is there any chance to change the wifi without always moving the sd card from raspbian to pc (like https://docs.resin.io/deployment/network/2.x/#changing-the-network-at-runtime)? It takes very long just to try if parameter tweaks have any effect.

It’s working for me, but I found out that Hassio drops the WiFi connection as soon/as long as there is a LAN cable connected.

Thank you , I was trying to figure out why the wifi card wasn’t being displayed using ifconfig.

I was able to connect to wifi using the NetworkManager interface at the command line while booted in the pi. Key was to have my pi connected to a keyboard and monitor rather than through ssh. When it boots, login as “root” to get to the HASSIO application, then at the hassio prompt, type “login” and it will dump you to the shell prompt of the OS.

Once there, you can connect to a wifi access point via:

nmcli d wifi connect <WiFiSSID> password <WiFiPassword>

that will connect you and generate a file /etc/NetworkManger/system-connections/ all filled in for you

14 Likes

Thanks @baharris18 for the assist. I wanted to change my SSID and password as well, without editing the SD card and found the network manager command to work, with a slight tweak: `nmcli d wifi connect “my ssid” password “my_password” . I had a terminal and keyboard already set up so it was easy to access the PI command line from the terminal console.

4 Likes

thanks, edited my post (didn’t check how it rendered with braces <> first… doh)

Once wifi is setup can ethernet still be used? Is there a way to set connection preference? Can I use both at the same time?

I’m looking for the ability to go wired or wireless if I need to relocate the rPI for configuration w/o needing to login and change anything.

hello @baharris18 will you please help me out i’m getting below error when i try this

Nmcli d wifi connect MYSSID password MYPASSWORD

it shows error: connection activation failed: (7) Secrets were required, but not provided.

2 Likes

This is a great thing to find! Thanks!

Now, the interesting problem.

I’ve been testing/settting up home-assistant at my apartment in preparation for moving it (and me) aboard my sailboat. The SSID that I will be connecting to on the boat is not available here at the apartment, and I don’t have a keyboard/monitor available at the boat.

When you run the “nmcli d wifi connect”, it assumes that the wireless network is available at the time that you run the command… (sigh).

Any ideas on how to configure this without the SSID being available?

Can you set the ssid at the boat?

Why so serious?

Enter

nmtui

and have Fun

3 Likes

I just tried the nmcli solution and had the following message:

Error: connection activation failed: (7) Secrets were required, but not provided

and I don’t connect…what am I missing???

2 Likes

I am having the same error but i dont have the fiels you are talking about to change the wifi.
Error: connection activation failed: (7) Secrets were required but i do not have a

system-connections/resin-sample to edit nor the directory Ideas?

image

You can create the following folder structure directly on the SD card: CONFIG\network and add the file my_network with the content as specified above, adapted with your ssid, password , etc.
At least that works for me.

Fastender,

Your suggestion is the cream of the crop! The nmtui command beats every other guide when wanting to configure a WIFI network when already connected to cable!

Worked for me as well, but I used the following file structure in the boot partition: CONFIG/network/my-network (according to article https://www.home-assistant.io/hassio/installation/) and placed the contents of your script into this ‘my-network’ file. Worked for me, thanks Per4merKC!

2 Likes

Very helpful, thanks mate, got me out of a bind just now (at least, in as easy a way as possible).