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:
hitokiri8x 2018-07-04 20:22:03 +02:00 committed by Franck Nijhof
parent c237639107
commit 1bcb2af724

View File

@ -49,10 +49,10 @@ $ sudo apt-get install python3 python3-venv python3-pip
```
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
$ 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.