SONOFF does not read from DTH22

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 531
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

SONOFF does not read from DTH22

#1 Post by mackowiakp » 08 Jul 2018, 09:45

I install ESP_Easy_mega-20180625_hard_SONOFF_POW.bin on SONOFF Basic (1 relay). Available GPIO14 I use as digital, optoisolated via transoptor. Original LED was cut off and new one LED is solder now directly to relay coil. So now GPIO13 is available for other purposes. So GPIO13 is use as input for DTH22 temperature and humidity sensor. The problem is that after 5-6 hours SONOFF does stop to read DTH. No errors in logs. But in normal operation if DTH is disconnected (for test) from GPIO, logs shows "DTH22 read error". If DTH is connected, in normal state, logs shows readings from DTH. But after several hours logs does not shows any errors or readings from DTH. But relay can be freely turn on/off from Domoticz via bash script using wget command. Even I can read state of DTH. The console output below:

Code: Select all

root@NanoPi-NEO:~# /usr/bin/wget --timeout=30 -q -O /dev/stdout "http://192.168.0.27/json?tasknr=1&view=sensorupdate"
{
"TaskValues": [
{"ValueNumber":1,
"Name":"Temperatura",
"NrDecimals":2,
"Value":"nan"
},
{"ValueNumber":2,
"Name":"Wilgotność",
"NrDecimals":2,
"Value":"nan"
}],
"TTL":60000,
"TaskEnabled":"true",
"TaskNumber":1
}
Software reboot does not resolve the problem. Only hardware reset (power on.off) helps.
Any idea what to do? Or what I an doing wrong?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 84 guests