Connect Hassio via Wifi

Connect Hassio via Wifi

Connect Hassio via Wifi

 

NOTE: This method assumes that you already have a working Ethernet connection. Also, wifi is much more unstable than Ethernet and is not recommended at all, but if you have no other option...

Summary:

  1. Install the SSH and web terminal plugin from the repository  from the community (thank you, @frenck! 102 )
  2. Disable protected mode for the plugin.
  3. Open a connection and use nmcli to connect to your SSID.

1. Install the plugin SSH and web terminal from the repository from the community (this will NOT work with the official SSH server plugin)

Set “Protection Mode” to off for the plugin (you can turn it back on when you are done using nmcli). You can also set “Show in Sidebar” to display the addon in your side panel.

image

Create a public and private username and password.

If you choose to use a username and password.

The ssl option is set to “true” by default. Change it to “false” if you are not using SSL.

Save and start the plugin. It may take a minute to get going. Look at the plugin log to see if there are any errors.

Connect with your preferred ssh client or click Open Web UI to use the web terminal.

2. Connect to wifi using nmcli. If you only want to configure a static IP for your current connection, skip to Static IP Settings below.

First, confirm that your wifi is enabled using:

nmcli radio

Connect Hassio via Wifi

Now scan and search for available wifi access:

nmcli device wifi rescan

nmcli device wifi

Connect Hassio via Wifi

Connect to Wi-Fi:

Use quotes around your ssid and password:

nmcli device wifi connect "SU_SSID" password "SU PASS DEL WIFI"

This will attempt to connect to your SSID and generate a network profile if successful.
The result will be similar to
"Device 'wlan0' successfully activated with...."

Then check your connections again:

nmcli con show

Connect Hassio via Wifi

You should see at least two profiles and both green.

If you are seeing some profiles that you want to delete, you can delete them using:

nmcli connection delete NOMBRE CONEXION

delete with

These may have two separate IP addresses on your network: one for ethernet, one for wifi.
You can check IP addresses using:

ip addr show

Now connect to http(s)://SU_WIFI_ip:8123in your browser

That is! You now have two connections that are configured correctly. You can edit them with additional use of nmcli (to set the static ip for example).

3. Configure a static IP with nmcli (optional):

nmcli connection show to show your connections

nmcli con show "Your Connection Name" to display the current properties of that connection

nmcli con edit "Your Connection Name" to enter edit mode for that connection

nmcli> print ipv4 will show you the ipv4 properties of that connection

To add your static IP address (select 'yes' for manual method);

nmcli> set ipv4.addresses 192.168.1.10/24
Do you also want to set 'ipv4.method' to 'manual'? [yes]:

If you want, you can also configure the DNS server and local gateway:

nmcli> set ipv4.dns 1.1.1.1
nmcli> set ipv4.gateway 192.168.1.1
nmcli> save
nmcli> quit

Finally, a hard reset is needed using

hassio ho reboot

And it should already be connected Hassio by wifi.

Leave your comment