HASSOS USB Thumb Drive wifi settings

Firtsly I have to say that… I AM A COMPLETE NOVICE/NEWBY and working on the principle of MONKEY SEE MONKEY DO… But I do have unlimited enthusiasm…

I am using a Macbook Pro to configure the SD card and the Thumb Drive for my Raspberry Pi 3 B+.

I am now successfully running Home Assistant on the Raspberry Pi using the ethernet and have configured it so I can see it on the Macbook Pro and My IPad Pro. (so far so good)

The problem is I can not work out the USB drive settings so that the Raspberry Pi will access the web using WIFI.

I have narrowed the problem down to configuration of the USB drive in as much as when writing the commands to the drive using the mac do I need to use “Atom” or is “Text Edit” powerful enough, or appropriate to do the job?

Here is what my USB drive looks like

Screen Shot 2019-06-11 at 12.50.23 pm

This is what my Network instructions are

[connection]
id=hassos-network
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
type=802-11-wireless

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

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

[ipv4]
method=auto

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

What am I doing wrong?

Thank you

Are you using Hass.io? Is the USB drive formatted in FAT32 format? The folder should be labeled as ‘network’, not ‘Network’. The name of the file should be ‘my-network’ without extension, not ‘network-connection’.

If you already have Home Assistant up and running on an wired connection and want to switch to wireless, I think you need to click the 'Import From USB" button in the Hassio tab when the USB drive is inserted.

The format is indeed in fat32… I will, of course, try changing the few points you mentioned but on an example I was following they said I could use any name for the network… I will do that now.
Thank you

Where is the “Import from USB button” ?

The changes have made no difference

I don’t think the name of the file matters, but it must be in a folder called ‘network’, which is in lowercase.

On my USB drive it’s formatted as FAT 32, is labelled ‘CONFIG’ and has a single folder called ‘network’ on the drive. I then have the file inside that called ‘wlan0’

It’s working for me at the moment and my file format looks to be the same as yours. I did create and save the file using notepad++ on windows as I read somewhere the line breaks at the end of the lines need to be in the correct format. to work.

I had hoped to get an answer to my question rather than guesses at what might work as I have exhausted all the options that I have read…

For anyone who wants to offer advice pls go back to my question which is detailed and covers all the relevant points…

For reference…

This is the information which I have been using as a guide so it seems to me that anything outside that must work and be based on fact…

  1. Only if you want to configure WiFi or a Static IP (requires USB stick):
  • Format a USB-Stick to FAT32 with volume-name CONFIG .
  • Create a folder named network in the root of the newly formatted USB-stick.
  • Within that folder create a file named my-network without extension.
  • Copy one of the examples to the my-network file and adjust accordingly.
  • Plug the USB-stick into the Raspberry Pi 3.

***The RELEVANT POINT about my question was around the FILE on the USB chip which is called “my-network” ***

Is that file written in “Atom” on a Mac or just a simple “Text Editor” ?

Hi Laurens

Yes this all seems correct.

Are you doing this when you install HASS or are you just plugging the USB in on a preinstalled Pi?

My understanding is that you need to do this when you are installing. It will look at the USB during install and setup the WiFi, then you can remove the USB and each time you boot it will still auto connect to the WiFi. If you have HASS already installed it’s a seperate set of instuctions, You need to SSH into your install and run some commands to setup the WiFi network.

Everything you are doing appears to be correct to me. If its still now working you must have changed something in the example incorrectly and the install process is not able to parse the file.

Thank you… Its been a while since I looked at this because I have a number of things that I play with and this one had my stymied… I am back and ready to start again…
I will keep your suggestion in mind for my renewed attack :slight_smile:

Hi, what is not clearly stated in all descriptions, put the USB drive in the RPi before you turn it on!
So turn the RPi off >> insert the USB drive into the RPi >> turn the RPi on and voila, it works.