I had an old DHT11 sensor so I thought id hook it directly to my Pi3 to give me a rough means to monitor the ambient temperature around all my media gear. Here is the entry in my config
sensor:
platform: dht
name: 'DHT11 sensor'
sensor: DHT11
pin: 4
monitored_conditions:
- temperature
- humidity
But im getting errors in my log and the sensor does not show?
2017-12-10 23:37:29 ERROR (MainThread) [homeassistant.components.sensor] Error on device update!
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 217, in async_add_entity yield from entity.async_device_update(warning=False)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/dht.py", line 125, in update self.dht_client.update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 306, in wrapper result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/dht.py", line 160, in update self.sensor, self.pin)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/common.py", line 94, in read_retry humidity, temperature = read(sensor, pin, platform)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/common.py", line 81, in read return platform.read(sensor, pin)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/Raspberry_Pi_2.py", line 34, in read raise RuntimeError('Error accessing GPIO.')
RuntimeError: Error accessing GPIO.
2017-12-10 23:37:29 ERROR (MainThread) [homeassistant.components.sensor] Error on device update!
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 217, in async_add_entity
yield from entity.async_device_update(warning=False)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/dht.py", line 125, in update
self.dht_client.update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 306, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/dht.py", line 160, in update
self.sensor, self.pin)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/common.py", line 94, in read_retry
humidity, temperature = read(sensor, pin, platform)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/common.py", line 81, in read
return platform.read(sensor, pin)
File "/srv/homeassistant/lib/python3.5/site-packages/Adafruit_DHT/Raspberry_Pi_2.py", line 34, in read
raise RuntimeError('Error accessing GPIO.')
RuntimeError: Error accessing GPIO.
2017-12-11 02:48:30 ERROR (Thread-35) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 02:48:30 ERROR (Thread-26) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 04:30:13 ERROR (Thread-25) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 04:30:15 ERROR (Thread-34) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 05:30:11 ERROR (Thread-5) [homeassistant.components.sensor.speedtest] Error executing speedtest: Command '['/srv/homeassistant/bin/python3', '/srv/homeassistant/lib/python3.5/site-packages/speedtest.py', '--simple']' returned non-zero exit status 1
2017-12-11 06:00:08 ERROR (Thread-26) [pychromecast.socket_client] Error reading from socket.
2017-12-11 06:00:08 ERROR (Thread-35) [pychromecast.socket_client] Error reading from socket.
2017-12-11 06:00:38 ERROR (Thread-26) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 06:00:38 ERROR (Thread-35) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 06:00:47 ERROR (Thread-25) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-12-11 12:00:11 ERROR (Thread-14) [homeassistant.components.sensor.speedtest] Error executing speedtest: Command '['/srv/homeassistant/bin/python3', '/srv/homeassistant/lib/python3.5/site-packages/speedtest.py', '--simple']' returned non-zero exit status 1