Skip to content

Add user to gpio group #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions source/_components/binary_sensor.rpi_gpio.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<p class='note warning'>
If you are not running Raspbian Jessie, you will need to run Home Assistant as root.
</p>
Ensure that the user who is running Home Assistant is in the gpio group. Eg. for the user `hass`:

<p class='note warning'>
To avoid having to run Home Assistant as root when using this component, run a Raspbian version released at or after September 29, 2015.
</p>
```bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test RPi.GPIO on other operating systems?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. I've only tested it on Raspbian GNU/Linux 8 (jessie)

$ Ensure that the user who is running Home Assistant is in the gpio group. Eg. for the user `hass`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate content. Looks like a copy-&-paste error.


```bash
$ sudo adduser hass gpio
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you removing this warning? Was the fix backported to older Rabian and made available?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix is not made for older versions of raspbian and cant be patched with just a package upgrade.
rapsbian user created in later versions of raspbian are part of the gpio group and any new user will need to be added to this specific group.

```

```