Setting WiFi

Hello I’m trying to configure Hassio with WIFI on a Raspberry pi 2 using an edimax usb wifi adaptor.

I’m using a windows 10 PC to do the editing etc of the code and to burn the image files etc.

My problem is I’m following these instructions here https://www.home-assistant.io/hassio/installation/ which all work flawless except for the vague part on configuring wifi.

This is the bit I’m having issues with -
" * Optional - Setup the WiFi or static IP: On a USB stick, create the network/my-network file and follow the HassOS howto."

Let me explain what I’ve done so far -

I’ve configured a usb stick (tried both 64gb & 32gb in size as well as trying fat32 and NTFS) and called it CONFIG. I then created a folder called network and a file (with no filetype i.e no .txt) called my-network.

I then opened this file in visual studio code (tried also notepad++ and editpad lite) and put in these settings which I took from the link provided above.

[connection]
id=hassos-network
uuid=7fde0159-1d01-418d-aa72-e75c3223523c
type=802-11-wireless

[802-11-wireless]
mode=infrastructure
ssid=MyWiFiSSID

[802-11-wireless-security]
auth-alg=open
key-mgmt=wpa-psk
psk=MyWiFiPassword

[ipv4]
method=auto

[ipv6]
addr-gen-mode=stable-privacy
method=auto

I substituted the ssid for my wifi network that is 2.4Ghz and the psk for my wifi password.

I also changed the uuid from one i generated from https://www.uuidgenerator.net/version4

i then saved this and ejected the usb stick from my pc and inserted it into the raspberry pi.

I remove the LAN cable and plug in the power.

It attempts to boot but stops. From what I can see as the text roll up to quick for me to read precisely is that its not getting a network connection.

So can someone please explain to me where I’m going wrong.

Thank you

Plug in the network. I did all that to set a static IP, except unplugging the ethernet cable. Works here

Thanks for your help Stevemann but why do you suggest I should plug in the network cable when I need it to run solely on WiFi?

Just a guess from my Pi experience because my knowledge of HassOS is still in the toddler stage. I suspect there is something in the boot process that is expecting a network before the thumbdrive is read.

It can’t hurt to try.

Oh I see what you are referring to now - yes I have tried it with the LAN attached and it boots with the USB stick in however if I reboot it and remove the LAN it does not connect to WiFi.

I am a newbie, so if this is wrong information, just ignore me.

Let’s review the basics:

  1. Format a thumb drive (the smaller the better) as a FAT32 device with the name ‘CONFIG’
  2. Create a folder: ‘/network’
  3. In the /network folder, create a text file named ‘my-network’
  4. Put your network config into that file.
  5. Plug in the thumbdrive and reboot the Pi

If you want an example, here is my config for a static IP over Ethernet that works for me:

[connection]
id=hassos-network
uuid=d55162b4-6152-4310-9312-8f4c54d86afa
type=802-3-ethernet

[ipv4]
method=manual
address1=192.168.1.128/24,192.168.1.1
dns=8.8.8.8;8.8.4.4;

[ipv6]
addr-gen-mode=stable-privacy
method=auto

Hope this helps.

You don’t seem to have imported the file on hassio.