I have a DHT22 temp/hum sensor on my PI that publishing its readings via MQTT to HA. It was working well when I first got it. Now it seems to be random in the results its sending to HA. My script polls the sensor every 10 seconds
Take a look at the results on the graph I’m getting in HA and via Grafana. Anyone got much experience with these things as to why its all over the place? Im glad the graphing is showing this up as I wouldnt notice it otherwise unless I was staring at the HA screen 24hrs a day to see these quick dips.
Maybe I’m polling to often? But I wouldn’t have thought that would cause it to provide an inaccurate reading
More than likely a faulty sensor. Do you have a replacement you can swap it out with ?
The first DHT22 I had I could not get to report humidity anything other than ‘1’. I thought I must be doing something wrong and spent WAY too much time fault finding my setup.
Luckily for me my dogs ate that sensor .
I bought another with some spares and they all work perfectly.
Hello and welcome to the forum. All the necessary information are on this page. Correct wiring is required. Good luck and have fun with Home Assistant.
I am using orange pi plus 2e, installed armbian and hassio. I was trying DHT sensor but got error:
`Unable to install package Adafruit-DHT==1.4.0: ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ieioqk85 --python-tag cp37
cwd: /tmp/pip-install-6nynn8de/Adafruit-DHT/
Complete output (1 lines):
Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively.
----------------------------------------
ERROR: Failed building wheel for Adafruit-DHT
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-05l85rae/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-6nynn8de/Adafruit-DHT/
Complete output (1 lines):
Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6nynn8de/Adafruit-DHT/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-05l85rae/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.`