esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

DHT22 reporting wrong temperature when below 32F #5395

Open xlogic11 opened 5 months ago

xlogic11 commented 5 months ago

The problem

When the temperature goes below 32F the sensor reports the wrong temperature. If the Temp goes above everything is normal

Which version of ESPHome has the issue?

2023.12.7

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.1.3

What platform are you using?

ESP32

Board

KeeYees ESP32S ESP32

Component causing the issue

DHT22

Example YAML snippet

No response

Anything in the logs that might be useful for us?

[10:42:23][C][dht:018]:   Pin: GPIO33
[10:42:23][C][dht:020]:   Auto-detected model: DHT22
[10:42:23][C][dht:027]:   Update Interval: 60.0s
[10:42:23][C][dht:029]:   Temperature 'Temperature'
[10:42:23][C][dht:029]:     Device Class: 'temperature'
[10:42:23][C][dht:029]:     State Class: 'measurement'
[10:42:23][C][dht:029]:     Unit of Measurement: '°C'
[10:42:23][C][dht:029]:     Accuracy Decimals: 1
[10:42:23][C][dht:030]:   Humidity 'Humidity'
[10:42:23][C][dht:030]:     Device Class: 'humidity'
[10:42:23][C][dht:030]:     State Class: 'measurement'
[10:42:23][C][dht:030]:     Unit of Measurement: '%'
[10:42:23][C][dht:030]:     Accuracy Decimals: 0
[10:42:23][C][captive_portal:088]: Captive Portal:
[10:42:23][C][mdns:115]: mDNS:
[10:42:23][C][mdns:116]:   Hostname: garage
[10:42:23][C][ota:097]: Over-The-Air Updates:
[10:42:23][C][ota:098]:   Address: 192.168.0.72:3232
[10:42:23][C][ota:101]:   Using Password.
[10:42:23][C][api:139]: API Server:
[10:42:23][C][api:140]:   Address: 192.168.0.72:6053
[10:42:23][C][api:142]:   Using noise encryption: YES
[10:42:30][D][dht:048]: Got Temperature=-3276.4°C Humidity=44.9%
[10:42:30][D][sensor:094]: 'Temperature': Sending state -3276.40015 °C with 1 decimals of accuracy
[10:42:30][D][sensor:094]: 'Humidity': Sending state 44.90000 % with 0 decimals of accuracy
[10:43:30][D][dht:048]: Got Temperature=-3276.5°C Humidity=45.0%
[10:43:30][D][sensor:094]: 'Temperature': Sending state -3276.50000 °C with 1 decimals of accuracy
[10:43:30][D][sensor:094]: 'Humidity': Sending state 45.00000 % with 0 decimals of accuracy

Additional information

No response

ssieb commented 5 months ago

Most likely related to https://github.com/esphome/esphome/pull/6074. Can you enable very_verbose logging and paste the dht logs?

AwokenByMyFears commented 5 months ago

I am having the same issue.

ssieb commented 5 months ago

So same request to you too. :-)

AwokenByMyFears commented 5 months ago

This is probably more than you want. But I don't know what you're looking for.

[22:35:45][C][sen5x:238]: sen5x:
[22:35:45][C][sen5x:239]:   Address: 0x69
[22:35:45][C][sen5x:262]:   Productname: SEN55
[22:35:45][C][sen5x:263]:   Firmware version: 2
[22:35:45][C][sen5x:264]:   Serial number 01.56.51
[22:35:45][C][sen5x:266]:   Auto cleaning interval 604800 seconds
[22:35:45][C][sen5x:271]:   Low RH/T acceleration mode
[22:35:45][C][sen5x:281]:   Update Interval: 10.0s
[22:35:45][C][sen5x:286]:   Temperature 'Outside Temperature'
[22:35:45][C][sen5x:286]:     Device Class: 'temperature'
[22:35:45][C][sen5x:286]:     State Class: 'measurement'
[22:35:45][C][sen5x:286]:     Unit of Measurement: '°C'
[22:35:45][C][sen5x:286]:     Accuracy Decimals: 2
[22:35:45][C][sen5x:286]:     Icon: 'mdi:thermometer'
[22:35:50][V][sensor:043]: 'Outside Temperature': Received new state 326.165009
[22:35:50][D][sensor:093]: 'Outside Temperature': Sending state 326.16501 °C with 2 decimals of accuracy
ssieb commented 5 months ago

This is not the same issue. It's not even the same sensor. That issue is https://github.com/esphome/issues/issues/5365 which is fixed in dev with https://github.com/esphome/esphome/pull/6082. You can use that PR as an external component until the next release.

AwokenByMyFears commented 5 months ago

Sorry about that. I was told it was a DHT22 inside the SEN55 but it turns out it's an SHT40. Thanks for the link.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.