DHT 22 sensor GPIO access

Hello all-

I am having a great time learning about HA, thank you all for the great knowledge base. I am attempting to connect a DHT sensor to a GPIO pin, and am recieving the following error:
(sorry I don’t know how to format this)

Error while setting up platform dht
Traceback (most recent call last):
 File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)

File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/dht.py”, line 62, in setup_platform
DHTSensor(data, variable, SENSOR_TYPES[variable][1], name))
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/dht.py”, line 82, in init
self.update()
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/dht.py”, line 101, in update
self.dht_client.update()
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/util/init.py”, line 296, in wrapper
result = method(*args, **kwargs)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/dht.py”, line 127, in update
self.pin)
File “/home/hass/.homeassistant/deps/Adafruit_DHT/common.py”, line 90, in read_retry
humidity, temperature = read(sensor, pin, platform)
File “/home/hass/.homeassistant/deps/Adafruit_DHT/common.py”, line 77, in read
return platform.read(sensor, pin)
File “/home/hass/.homeassistant/deps/Adafruit_DHT/Raspberry_Pi_2.py”, line 34, in read
raise RuntimeError(‘Error accessing GPIO. Make sure program is run as root with sudo!’)
RuntimeError: Error accessing GPIO. Make sure program is run as root with sudo!

I already added my user(s) to GPIO using:
sudo adduser hass gpio

It appears the dependency needs to be updated? If so, how to I go about that? https://github.com/home-assistant/home-assistant/pull/2900

thank you so much for any pointers

This was included in the current dev version. You could either wait for it to be released ~this weekend or setup your own dev enviroment.

You could also just upgrade the component in question but I’m unsure of the command at the moment and will have to add that later.

Thank you. But shouldn’t I be able to get around this for now by running HA as root? If so how do I do that?

FYI I used the AiO installer… Should I manually install it for more ease of tinkering?

You could run HA as root but I would have to lookup the commands when I’m at HA instance. I really would recommend it. Didn’t have time yesterday to look at upgrading the component in question for your use but that should be easier.

In general I would never recommend running any process as root that’s not specifically designed with that in mind.