From 1570b07deeb4fd9a9ddcb266d85079b9915b7777 Mon Sep 17 00:00:00 2001 From: Jett Whitaker Date: Wed, 31 Aug 2016 00:59:22 -0700 Subject: [PATCH] Add user to gpio group --- .../_components/binary_sensor.rpi_gpio.markdown | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source/_components/binary_sensor.rpi_gpio.markdown b/source/_components/binary_sensor.rpi_gpio.markdown index 235a91981899..ad0f6298e63d 100644 --- a/source/_components/binary_sensor.rpi_gpio.markdown +++ b/source/_components/binary_sensor.rpi_gpio.markdown @@ -39,10 +39,13 @@ Configuration variables: For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#GPIO_connector) about the Raspberry Pi. -

-If you are not running Raspbian Jessie, you will need to run Home Assistant as root. -

+Ensure that the user who is running Home Assistant is in the gpio group. Eg. for the user `hass`: -

-To avoid having to run Home Assistant as root when using this component, run a Raspbian version released at or after September 29, 2015. -

+```bash +$ Ensure that the user who is running Home Assistant is in the gpio group. Eg. for the user `hass`: + +```bash +$ sudo adduser hass gpio +``` + +```