Setup Wifi after start on raspberry pi

For some to find one complete answer to this fairly simple question is not that easy. Hope this will help many.

First you Home Assistant (from now on we will call it ha) will start from ha command line. Here you cannot enter “normal linux commands”.

  1. To connect to wifi press alt + right arrow and it will ask you to login to Home Assistant enter

root followed by enter

2.Now you can easily connect to your wifi by entering:

nmcli device wifi connect “YOUR_SSID” password “YOUR_WIFI_PASSWORD”

After this it should confirm your connected

  1. Check what ip address the interface got by typing

ip addr show wlan0

  1. Use the ip to connect from any other system to your Home assistant by:

entering “ipaddress:8123” in a browser