Well done au190 the setup method has changed since I done my setup , it didnt require a usb stick.
So I do apologize.
In my defense the instructions werent very clear about the usb stick, it seems to have been updated now.
Im glad you managed to get it going , theres nothing more frustrating than a decent piece of tech that you cant get to work.
I hope you enjoy it.
what was very important on my raspi beside this whole network/my-network file on the usb stick.
The name of the usb-stick must be CONFIG ā¦ tooked me hours to figure that out (even if it is mentioned somewhere on 3rd link of the install page )
Does line endings really matter? I watched Juanās YouTube video (here https://www.youtube.com/watch?v=qnCRcGTznXs&t=1m40s) and he used Window Notepad with nothing else. Iāve tried everything (I think) except what actually works, which is elusive.
What doesnāt get stated is that the USB drive MUST BE formatted using (MS-DOS) FAT32 or it will not be read by Hassio. I had been trying with a USB drive formatted in EXT32 and it would not work.
I got the same issue, google search bring me here, the config file is definitely nothing wrong with it.
Hooked my Pi to TV, and see bunch of logs, e.g:
wlan0: link is not ready
Not sure I have to set my Wifi routers to use 2.4GHz or 5Ghz, changing from WPA2 PSK to less secure WPA, but non of them works.
Any recommendation about the wifi network setting in router?
Thank you!
You can now create a folder āCONFIGā on the boot partition instead of using a USB stick. Then, create the
folder ānetworkā, and place the āmy-networkā file inside of that. It did take me a while to find the boot partition as for some reason I could only see 4 out of the 8 partitions in the file manager after using Etcher, so I manually mounted it after finding it with fdisk (it was /dev/mmcblk0p1).
/CONFIG/network/my-network
Alternatively, if you use Hassbian, create a file on the boot partition:
wpa_supplicant.conf
with the following formatting (change the country as well):
Maaaan, thank you so much! Spend endless time trying to figure out the installation via official documentationā¦ pointless.
Your guide finally solved it! Iām super happy that it has finally worked! And indeed i needed to follow your instructions step by step, since i also used etcher under ubuntu and it didnāt auto-mount boot partition, which yielded me to do it manually.
Legend!
I just did what @wutr suggested (Thanks!!), and now, after a long time of wired connection, I am on a wireless one without the USB stick.
@chils41 probably itās better to start with a wired connection, check if all is working, then you can take out the SD card from RPi, put in a PC and do what @wutr said before.
Hi there, thanks @wutr for the great advice.
I got soooo close! Iāve installed a dual boot of Linux on my pc so I can see whatās on the SD card but it is read only! I can see the system connections folder but canāt do a thing with it.
Please help if you can, Iām trying everything to get this Pi Zero running on WiFi (works on LAN, hass.io installed)
Thanks
Iām not sure what you mean with the āsystem connections folderā (is it on one of the partitions?), but if the boot partition on the SD card is already mounted, it might be as simple as remounting that partition as read+write. I donāt know the partition naming scheme for your Linux distribution, but the command would be something like this:
sudo mount -o remount,rw /dev/mmcblk0p1 /mount/point
you can find out the partition identifier and where it is currently mounted (as read-only) with this command:
Itās supposed to need a USB stick named CONFIG with a folder named network and a file (e.g. my-network) with these settings in:
[connection]
id=hassos-network
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
type=802-11-wireless
[802-11-wireless]
mode=infrastructure
ssid=MY_SSID
# Uncomment below if your SSID is not broadcasted
#hidden=true
[802-11-wireless-security]
auth-alg=open
key-mgmt=wpa-psk
psk=MY_WLAN_SECRET_KEY
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
Having tried that to no avail I thought I would attempt to add the file directly in the boot folder but it seems the Hass.io system is read only (presumably to stop people like me f@#&ing with it!).
I have reflashed the SD card again as I lost LAN connection too the 1st time round. That works again now but WiFi is the goal!
If there are any other ways to solve this or even the ways Iāve already tried but correct, I would really appreciate hearing about them.
If my info is insufficient, Iāll happily divulge all files, settings, web page sources etc, just no bank details!
Unless Iām reading something wrong here, you should be looking for the boot partition, not the folder. (If writing the my-network file to the SD card directly). Mounting read-only is done by certain distributions when auto mounting file systems, thereās probably a reason for it but in this case itās fine to remount in read+write mode.
Have a go at finding the Hass.io boot partition (using fdisk), mounting it in read+write mode (which is standard if you manually mount I believe) and creating the folder CONFIG/network on that boot partition. It shouldnāt take you much over 20 minutes if youāre new to it all. You have to learn at some point, might as well be now. Double check you are working with the SD card and not a local drive and there isnāt much to go wrong.
Also, you probably already found out, but Linux and its filesystems are case-sensitive.
If you want, can you paste the output of sudo fdisk -l /dev/sdcardpointer (substitute the actual device name of the SD card of course) so someone can reply with the correct mount command.
Hi again,
I used the partition identifier and it returned the following:
kevin@kevins-linux:~$ mount -v | grep ā^/ā | awk ā{print "\nPartition identifier: " $1 "\n Mountpoint: " $3}ā
I canāt see sdc1 as that is the fat16 partition (hassos-boot) which is the only 1 visible in windows. In there I tried creating a CONFIG/network/my-network file also with config/network/my-network. I tried CONFIG/network/hassos-network (also lower case) as that is the id in the second line of the file.
All failed.
I am not sure which of the remaining 7 of the 8 partitions I should enter the CONFIG into to achieve a WiFi connection.
I have also tried the USB stick again with the various formats of the file, no joy.
Could it have anything to do with the UUID? Iām not sure.
Okay all, Iām a bloody idiot! Iāve spent the past few days tearing my hair out over this WiFi setup and have just realised that the speck of dirt on my screen by the file ānetworkā was actually ā and thanks to the small view on my display, I didnāt see my mistake!
Only on a different folder view in linux was I able to realise the error of my ways.
The Pi ZeroW is ticking along nicely now and downloading what it needs, phew!
Many thanks and apologies to @wutr for all the help. It looks like Iām off to a real rocky start with home assistant but on the plus side it can only get better! (I hope!)
Thanks again all, sure it wonāt be the last question I have but hopefully the rest wonāt be so schoolboy error orientated!