From 1bcb2af724cceb80f982d2cf1351a48d1405bac1 Mon Sep 17 00:00:00 2001 From: hitokiri8x Date: Wed, 4 Jul 2018 20:22:03 +0200 Subject: [PATCH] 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! --- source/_docs/installation/raspberry-pi.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/installation/raspberry-pi.markdown b/source/_docs/installation/raspberry-pi.markdown index d021e7041a0..0ee8868207c 100644 --- a/source/_docs/installation/raspberry-pi.markdown +++ b/source/_docs/installation/raspberry-pi.markdown @@ -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.