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