Guide: Connecting Pi with Home Assistant OS to wifi (or other networking changes)

If you scroll down you should see the Community Add-on repository with a whole section of other add-ons. But you should also see a search bar at the top of that page. What version of HA are you running? And supervisor version?

Home Assistant OS core-2021.1.4 on a Pi4 8GB
Supervisor-2021.01.5

That screen shot was from the iPad app, but from a Mac it’s similar. No Community Add-ons.

Nope- once wifi disconnects it seems to need a cable again. Investigating…

Thank you very much for your precious help, I´ve been suffering for the last 5 days trying to install home assistant on a Raspberry Pi Zero W, the problem was that my RP0W never connected to the wifi. I tried every webpage on Internet. The only thing that worked was:

  1. connect an usb keyboard, login in root and then login;
  2. use nmcli commands to config the my-network connection to use a static IP (nmcli automatically asks to set IP manually) + define manually the gateway IP address;
  3. reboot;
  4. still Home assistant wasnt able to autoconnect, I had to enter the root and login again and connect manually using nmcli connect command +SSID +password as described in the begining of the topic.
    Finally wifi connected and I could see the so expected http://IP:8123 HA preparing page!
    best regards,

Hello I am a complete newbie to Raspberry Pi and Home Assistant and having issues with WiFi setup, I am trying to set it up to move away from Wink. I understand WiFi is not the best option but for me to get it set up Wifi is my only option as switch ports are in teh basement. I can boot up the Raspeberry Pi4 on its OS and it did connect to WiFi fine but when I try to boot the Pi4 up on the Home Assistant memory card and using the USB stick with the wifi config on it, it never connects.

I want to try this process in this thread but I do not know where the repository is for the SSH and Web server config files. Can someone point me to it?

Thank You

Phil

Hi everyone,
I have set up duckdns url and can access HA over the internet using my duckdns url.

Recently I have also followed this guide and now my HA (on pi4) is connected to my home network via ethernet and to my mobile hotspot via wifi. Also, data is turned on and working on my phone.

But when my home network’s internet connection goes down, I can no longer access HA from its duckdns url.

How can I tell HA(or duckdns addon) to use the wifi network when internet of first network goes down?

If you don’t have internet, your duckdns address isn’t going to work. You would use your local ip address to connect locally. https://your_local_ip:8123

But internet is enabled on my phone. And HA is connected to my phone’s hotspot over wifi. But HA becomes disconnected from internet when home network’s (ethernet’s) internet goes down.

Hi 2000

Can you provide the exact first nmcli command please? I’m stuck with a RPI0W too for some days and can’t get it to connect…

Thanks

Hello,

I am new here and hope it is right place for my questions:

As I said, I am a beginner and do not want to spoil of the existing configuration.

I want to integrate an inverter, (SUN2000-HVxxxxxx) at which I know the IP address, in HA installed on Rpi3.
Currently Rpi is connected over ethernet

Answer of
nmcli wifi device:
is:

If I use the command:
nmcli device wifi connect "SUN2000-HVxxxxxxxxxxxx" password "YChangeme"
is it “safe” ??? Will the next HA restart be connected via the cable connection (ethernet)?
Will I have two connections?
Rpi -> cable -> router respectively Rpi -> wifi -> inverter

I try, and answer is:

Is it possible that the wifi wifi signal on the router is too weak (distance too long / obstacles) and the connection cannot be made?

All done, working

I am new here, and I havw trouble with …(7) Secrets… Please tell me what can I do, I didn’t quite understand what to do to keep the configuration after rebooting

Hi Mircea!

Assuming your problem is the same as mine (i.e. you filter your WiFI clients by their MAC address) - you need to have the fixed MAC address for your HA. “nmcli c modify wifi.cloned-mac-address” is something you can run once and it will configure the wifi adapter’s mac address to the value provided by you. Documentation: nmcli(1) — network-manager — Debian jessie — Debian Manpages. By the way, probably “mac” and “cloned-mac” would have the same result, I have not tried “mac” option.

K. Thank’s Nikolai.

It is a pity that “Supervisor> System> Host card” does not work to set up WIFI.
I want to set eth0 to 192.168.0.x
I want to set Wlan0 to 192.168.120.x
If I choose the correct WIFI device with the correct password, it still does not accept the connection.
If I apply the suggested solution, it will accept the settings and I can ping to 192.168.120.1
The only problem is when my Pi reboots the WIFI settings are lost.
Why are these settings not saved and why is it not possible with “Supervisor> System> Host card”?

I tried it for myself using the UI and it’s working fine here. I have to reboot in order for the WLAN changes to properly set. The settings were not lost.

I have a pi4 with ethernet using 192.168.1.116 and wlan using 192.168.2.117

Ii do the same without success. my ip addresses are:
eth0 = 192.168.0.5/24, gateway 192.168.0.1, DNS 192.168.0.1
wlan0 = 192.168.120.5, gateway 192.168.120.1, DNS 192.168.120.1
Am I doing something wrong?

no sure whether i am the only one. As long I do not have the ethernet cable connected, the wifi will stop working. The wifi will only be up if there is ethernet cable connected to Pi

Wifi is working. Used supervisor to set it up.

But at night the wifi accesspoint is down and the wifi does not reconnect. How can i solve this?

I want to have the wifi to reconnect to my huwaei solar inverter for modbus communication.

Is there a command i can use in automation to reconnect in the morning?

Help please :slight_smile:

I try to reconnect device SUN2000, but answer to "device wifi connect “SUN2000-xxxxxx” password “xxxxxx” is:
Error: Device ‘SUN2000-xxxxxxx’ not found.

I don’t remember to change password… but, it is some way to check if it is right pass or is changed???