RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.75k stars 361 forks source link

Device shows wrong temperature after updating from 12.12.4 --> 12.12.5 #2262

Closed Gandalf8266 closed 6 months ago

Gandalf8266 commented 6 months ago

I have a ESP8266 microcontroller with a DHT22 connected. Device works fine so far, but on every update it shows wrong temperature (-99°C) and humidity (0%).

It happens on every update, but now, I made screenshots bevor und after update. It's easy to fix, I only disconnect from power and connect again, but this is annoying.

The config is here: {"c":{"o":0},"a":[{"t":24,"b":[],"n":2,"g":2}]}

I have attached screenshots bevor und after update. 60B4C2C2-883E-49BD-BABF-5D34BF610072_1_105_c F040EF1D-E3D7-43E1-89E9-D2D261DC7670_1_105_c 3982D7D4-4354-4433-AC18-F88CB375CC4F_1_105_c 68446734-B470-4665-BAFA-72240B0F9BD0_1_105_c

RavenSystem commented 6 months ago

It is hardware related. GPIO 2 is pulled up and high at boot. This can not be changed by firmware. Better, use other GPIO. https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/

vsidlu commented 2 months ago

Hi, @RavenSystem I get this -99 also on GPIO 14.

config - {"c":{"io":[[[14],2],[[2],2,1]],"l":2,"n":"t_bathroom","i":1,"b":[{"g":0}]},"a":[{"t":25,"s":5,"g":14,"0":{"h":[{"h":"10.0.1.8","p":5556,"m":1,"u":"characteristics", "c":"{\"characteristics\":[{\"aid\":2,\"iid\":9,\"value\":false}]}"}]},"1":{"h":[{"h":"10.0.1.8","p":5556,"m":1,"u":"characteristics", "c":"{\"characteristics\":[{\"aid\":2,\"iid\":9,\"value\":false}]}"}]},"3":{"h":[{"h":"10.0.1.8","p":5556,"m":1,"u":"characteristics", "c":"{\"characteristics\":[{\"aid\":2,\"iid\":9,\"value\":true}]}"}]},"5":{"a":0}}]}

The wires are soldered and changing gpio will be painfull. Any other options I can do?

vsidlu commented 2 months ago

Strange, but sometimes it shows the correct reading, but sometimes -99. What could this be related to?

vsidlu commented 1 month ago

I replaced all DHT22 temperature sensors. I no longer encounter this issue.