esphome / issues

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

is there a glitch with esphome and AM2302s i keep getting -3,200c or 0.2c readings #4217

Open comet424 opened 1 year ago

comet424 commented 1 year ago

The problem

hi i have had no issues before but i bought a month or so ago and returned them the am2302 thermometers... and i just got one today... and it does it again.. when the temp gets to 0.0c it will jump to -3,200c and or sticks at 0.2c and just constantly reads that.. is there a bad batch of am2302s going around or is there a glitch in the esphome thatds causing it? anyone know?

happens on esp32 boards and esp8266

Which version of ESPHome has the issue?

2023.2.3

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

wroom boards or the esp8626

Component causing the issue

No response

Example YAML snippet

sensor:
  - platform: dht
    model: am2302
    pin: D2
    temperature:
      name: "Outside Temperature"
    humidity:
      name: "Outside Humidity"
    update_interval: 6s

Anything in the logs that might be useful for us?

logs just report   like -3,200c and or just 0.2c in the logs

12:22:46    [D] [dht:048]   
Got Temperature=0.2°C Humidity=0.2%
12:22:46    [D] [sensor:126]    
'Outside Temperature': Sending state 0.20000 °C with 1 decimals of accuracy
12:22:46    [D] [sensor:126]    
'Outside Humidity': Sending state 0.20000 % with 0 decimals of accuracy
12:22:52    [D] [dht:048]   
Got Temperature=0.2°C Humidity=0.2%

and it just repeats.. both humidity and temps are 0.2c and just repeats or ill get the -3200c so not sure if esphome cant read it or wahts going on now this be teh 5th one it cant read right now



### Additional information

_No response_
nettle-m commented 1 year ago

had similar issue https://github.com/esphome/issues/issues/1744 was not solved, i have this bug/glitch still present , as workaround i use this filter: filters:

comet424 commented 1 year ago

@nettle-m ah ok i currently returned it as no one replied so i didnt wanna be stuck with it. from amazon.. as it would just constantly read -0.2 humidity and temperature

and now the one i have in my car i dunno which update of esphome but it broke it as well now if it goes to 0.2c temp is ok lower so 0.1 0.0 -0.1 esphome home reports it as NAN and then comes up -0.2c i not sure which esphome update broke that now