added i2c group to homeassistant user (#9731)

* added i2c group to homeassistant user

this change should ease user experience

* ✏️ Tweak
This commit is contained in:
qqgg231 2019-06-30 11:04:19 +02:00 committed by Franck Nijhof
parent f205c30c23
commit d91a1c08c9

View File

@ -49,10 +49,10 @@ $ sudo apt-get install python3 python3-venv python3-pip libffi-dev libssl-dev
``` ```
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,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. 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,i2c` adds the user to the `dialout`, `gpio` and the `i2c` 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,gpio $ sudo useradd -rm homeassistant -G dialout,gpio,i2c
``` ```
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.