Open chrismetcalf opened 2 years ago
Same here. Had the issue for a while now, but just kinda forgot about it.
My logs:
[20:37:04][I][app:102]: ESPHome version 2021.12.2 compiled on Dec 26 2021, 10:33:51
---
[20:37:04][C][dht:017]: DHT:
[20:37:04][C][dht:018]: Pin: GPIO4
[20:37:04][C][dht:024]: Model: DHT22 (or equivalent)
[20:37:04][C][dht:027]: Update Interval: 60.0s
[20:37:04][C][dht:029]: Temperature 'Bathroom Temperature'
[20:37:04][C][dht:029]: Device Class: 'temperature'
[20:37:04][C][dht:029]: State Class: 'measurement'
[20:37:04][C][dht:029]: Unit of Measurement: '°C'
[20:37:04][C][dht:029]: Accuracy Decimals: 1
[20:37:04][C][dht:030]: Humidity 'Bathroom Humidity'
[20:37:04][C][dht:030]: Device Class: 'humidity'
[20:37:04][C][dht:030]: State Class: 'measurement'
[20:37:04][C][dht:030]: Unit of Measurement: '%'
[20:37:04][C][dht:030]: Accuracy Decimals: 0
---
[20:37:45][W][dht:167]: Requesting data from DHT failed!
[20:37:45][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
[20:37:45][D][sensor:113]: 'Bathroom Temperature': Sending state nan °C with 1 decimals of accuracy
[20:37:45][D][sensor:113]: 'Bathroom Humidity': Sending state nan % with 0 decimals of accuracy
Also running the AM2302 off 3v3, with a 4k7 resistor between data and 3v3.
In previous versions of ESPHome, I've had the same issue, but I'd occasionally get a different error.
[11:26:41][W][dht:167]: Falling edge for bit 40 failed!
[11:26:41][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
Edit: #2553 might be relevant
Hey there @ottowinter, mind taking a look at this issue as it has been labeled with an integration (dht
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Had the same problem Resolved by using GPIO3 not GPIO2 Works a treat now
sensor:
The problem
I have a handfull of AM2302/DH22 sensors wired up to ESP01 boards around my house. They work great after a hard power cycle (remove USB power and plug back in) but after awhile, or after I do an
esphome run
to upload an updated program over OTA, they start reporting:I've tried various other options for
model
but none seem to make a difference. And it works great on first boot. The AM2302s and ESP01 are powered off of 3.3v via a little step-down board.Which version of ESPHome has the issue?
2021.12.2
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
2021.12.4
What platform are you using?
ESP32
Board
ESP01
Component causing the issue
AM2302
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response