RAspberry PI5 HomeAssistant WIFI Setup with CLI

After a fresh install of HAOS (Home Assistant OS) I wanted to use it without attaching it to a physical ethernet connection. Therefore I had to setup connection to my local wifi network using the following commands.

  1. I first connect the monitor and keyboard to RPI5
  2. At the ha> prompt, enter login
  3. To assure wifi is functioning, enter: nmcli radio
  4. Scan available wifi access enter: nmcli device wifi rescan
  5. List available wifi access enter: nmcli device wifi
  6. Connect to your wifi (incude quotes) enter:
    nmcli device wifi connect “YOUR_SSID” password “YOUR_WIFI_PASSWORD”
    This will try to connect to your SSID and will generate a network profile for you if successfull.
  7. Show connections enter: nmcli con show