Addon - Raspberry Pi as hotspot in hass.io

hassio-hostapd

Raspberry Pi as hotspot in hass.io

Buy me a coffee

Link to github repository

This Hass.io Addon

This add-on allows you to use the Raspberry Pi a3s a hotspot to connect the different devices directly to the hass.io network without going through the router.

Installation

To use this repository with your own Hass.io installation please follow the official instructions on the Home Assistant website with the following URL:

https://github.com/davidramosweb/hassio-addons

Configuration

The available configuration options are as follows (this is filled in with some example data):

{
    "ssid": "WIFI_NAME",
    "wpa_passphrase": "WIFI_PASSWORD",
    "channel": "6",
    "address": "192.168.99.1",
    "netmask": "255.255.255.0",
    "broadcast": "192.168.99.254"
}

Note: This is just an example, don’t copy and paste it! Create your own!

Conflicts

To prevent the addon stop working after a few minutes, you must disable NetworkManager for wlan0.
You can use the SSH & Web Terminal addon with the option “Protection mode” disabled and run the following command:

nmcli dev set wlan0 managed no
1 Like

Is it able to route the traffic to another access point?
So that means to use the wlan0 as station and access point in the same time.

I think not with this addon :grimacing:

Hi David, congratulations for this, but I would like to have it going through the router, like a access point, can you show me how to do it? Thank you very much. :grin:

Hello again, I just installed it. The only problem is that after the reboot and connecting into the cable, I am no longer able to connect to the GUI. I tried cable and wifi, it saw in both cases it is reachable via ping but not from the browser.
I am not sure why this happened as the plugin was not started, unless it was set to start with the boot, but I am 100% sure I didn’t do it.
I had the chance to set the ssid and password but it is not broadcasting the SSID. Samba still works.
I wonder if this has something to do with the DNS plugin I also have installed.

Hello, the plug is not designed for devices connected to the hotspot have access to internet. Sorry.

Awesome, exactly what I was trying to do but failed :wink: thank you!

1 Like

Hi,
I got the following error during installation:

20-01-11 06:57:18 INFO (SyncWorker_8) [hassio.docker.addon] Start build 567c2022/armv7-addon-hassio-hostapd:1.0.2
20-01-11 06:57:25 ERROR (SyncWorker_8) [hassio.docker.addon] Can't build 567c2022/armv7-addon-hassio-hostapd:1.0.2: The command '/bin/bash -o pipefail -c apk update && apk add --no-cache bash jq iw hostapd networkmanager=1.18.1-r2 net-tools=1.60_git20140218-r2 sudo=1.8.27-r0 && rm -rf /var/cache/apk/*' returned a non-zero code: 2

Do you have any suggestion, how to fix it?

Hi,
Is it possible that you have a firewall that blocks some connections of the Raspberry pi?

Hi,

I found out that, the folowing line caused the issue:

RUN apk update && apk add --no-cache bash jq iw hostapd networkmanager=1.18.1-r2 net-tools=1.60_git20140218-r2 sudo=1.8.27-r0 && rm -rf /var/cache/apk/*

the issue was the version of networkmanager, and sudo.
I removed the version tag, and this part was fine.

Now I have other issue with run.sh:

[FATAL tini (6)] exec /run.sh failed: No such file or directory

it is because of first line #!/bin/bash

/bin/bash seems to missing in container. Don’t know yet, how to fix it. I am new in Docker.