mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Add requisites for gpio (#5659)
Since homeassistant user is required to be in gpio group in order to use them, let's fix this during installation!
This commit is contained in:
parent
c237639107
commit
1bcb2af724
@ -49,10 +49,10 @@ $ sudo apt-get install python3 python3-venv python3-pip
|
|||||||
```
|
```
|
||||||
|
|
||||||
Add an account for Home Assistant called `homeassistant`.
|
Add an account for Home Assistant called `homeassistant`.
|
||||||
Since this account is only for running Home Assistant the extra arguments of `-rm` is added to create a system account and create a home directory. The arguments `-G dialout` adds the user to the `dialout` group. This is required for using Z-Wave and Zigbee controllers.
|
Since this account is only for running Home Assistant the extra arguments of `-rm` is added to create a system account and create a home directory. The arguments `-G dialout,gpio` adds the user to the `dialout` and the `gpio` group. The first is required for using Z-Wave and Zigbee controllers, while the second is required to communicate with Raspberry's GPIO.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo useradd -rm homeassistant -G dialout
|
$ sudo useradd -rm homeassistant -G dialout,gpio
|
||||||
```
|
```
|
||||||
|
|
||||||
Next we will create a directory for the installation of Home Assistant and change the owner to the `homeassistant` account.
|
Next we will create a directory for the installation of Home Assistant and change the owner to the `homeassistant` account.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user