-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tasmota 8.1.0.7: DHT11 Temp =NULL & Humid = NULL #7717
Comments
You can flash a firmware with the needed driver via OTA. Easiest ist to go back to the version before. |
Hallo,
Thanks for the info…
I tried to update again via OTA Url = http://thehackbox.org/tasmota/archive/20200210-180027-7d0577e-tasmota.bin
But after restarting, it keeps on version 8.1.0.7, (not reverted back to 8.1.0.6) ….. and the DHT11 Temp & Humid still = NULL
Regards,
Antonius
From: Jason2866 [mailto:notifications@github.com]
Sent: Tuesday, 11 February, 2020 04:39 PM
To: arendst/Tasmota
Cc: adharyanto; Author
Subject: Re: [arendst/Tasmota] Tasmota 8.1.0.7: DHT11 Temp =NULL & Humid = NULL (#7717)
You can flash a firmware with the needed driver via OTA. Easiest ist to go back to the version before.
The main reason for jump to 8.1.0.7 was the optimized DHT drivers.
Just OTA this file: http://thehackbox.org/tasmota/archive/20200210-180027-7d0577e-tasmota.bin
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#7717?email_source=notifications&email_token=ALLUYK7RSWTML5QYUTICYFTRCJW2HA5CNFSM4KS263T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLX6JI#issuecomment-584548133> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALLUYK4OCURJMHAKJTL7RBDRCJW2HANCNFSM4KS263TQ> .
|
Hi, |
Going back to 8.1.0.6 solves your issue? |
In order to flash back to 8.1.0.6, I have to dismantle the device, open the compartment, and flash manually the esp8266, which is a bit complicated, and I try to avoid this.
I need to do this OTA, but the link given by Jason2866 (http://thehackbox.org/tasmota/archive/20200210-180027-7d0577e-tasmota.bin) did not work, it keeps on version 8.1.0.7 after restarting, and the issue is still there…
If you have some other ways to flash back to 8.1.0.6, (= via OTA =), please inform me….and I will try again…
|
Just OTA with a tasmota-minimal.bin and then try the bins in http://thehackbox.org/tasmota/archive/ from most recent to older until the issue vanishes. |
First I tried to update:
- http://thehackbox.org/tasmota/tasmota-minimal.bin
then I choose one of the archive (20200207):
- http://thehackbox.org/tasmota/archive/20200207-140026-1a074da-tasmota.bin
It works, and it switches back to 8.1.0.6, and the Temperature & Humidity are back to normal value, (not NULL).
Fyi; I tried also version 8.1.0.8, the result is the same as 8.1.0.7, Temp & Humid = NULL, so I will have to use the 8.1.0.6.
Thanks.
|
Going back to 8.1.0.6 have solved your issue? We need more information so as to properly address this issue. So far, all my DHTs works very reliable no matter if I use the new or the old driver. I have one of those outside at direct sunlight with a small roof for rain protection with half meter wires and connected to a nodemcu and this one with a harsh environment have never failed in 2 years. With the new driver it still works fine without hunging. So, are you sure that your DHT has enough power and proper wiring? |
Ok. Thanks for testing 👍 |
What do you think? What can be the issue with the new driver? |
Further testing on the archives:
http://thehackbox.org/tasmota/archive/20200210-190030-7339b56-tasmota.bin === (null value = v8.1.0.7)
http://thehackbox.org/tasmota/archive/20200210-180027-7d0577e-tasmota.bin === (null value = v8.1.0.7)
http://thehackbox.org/tasmota/archive/20200210-170025-edadaa2-tasmota.bin === (normal value = v8.1.0.7)
http://thehackbox.org/tasmota/archive/20200207-140026-1a074da-tasmota.bin === (normal value = v8.1.0.6)
So, in my case I can use v8.1.0.6 (any version) OR v8.1.0.7 with specific this version = (20200210-170025-edadaa2) but not the newer…
From: Adrian Scillato [mailto:notifications@github.com]
Sent: Thursday, 13 February, 2020 06:39 AM
To: arendst/Tasmota
Cc: adharyanto; Mention
Subject: Re: [arendst/Tasmota] Tasmota 8.1.0.7: DHT11 Temp =NULL & Humid = NULL (#7717)
@KrzysztofPrzygoda <https://github.com/KrzysztofPrzygoda>
What do you think? What can be the issue with the new driver?
So far we have some DHT that needs the old driver, some others that needs the new driver and some others that works with any driver.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#7717?email_source=notifications&email_token=ALLUYK47A5U4DIE67UNZWOTRCSCB3A5CNFSM4KS263T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELSZ5FA#issuecomment-585473684> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALLUYK4X5OACACN22UQ3HODRCSCB3ANCNFSM4KS263TQ> .
|
Sorry for introducing this subject again, but i would like to propose eliminating the high digital writes from the driver. As I explained a high is sustained by the pull up resistor, so the sensor and the esp only asserts low. The change is very simple the pin is always in input_pull and when a low is required you do pinmode digital write and pinmode again. The dhtprep method is empty because the pin is allways in input pullup. But I don't know what will happen with other setups. So I think this is a good opportunity to implement this in the new driver. I've modified the 8.1.0 with those changes and so far so good. What worked before work now and what not still don't BTW this change is important because it prevents a potentially dangerous situation when the esp output high and dht causing overcurrent. With the the new implementation this is harmless. Both ESPeasy and adafruit don't asserts highs. |
@PabloVogel If you have implemented that change, please do a PR for review. |
Add another new DHT driver based on ESPEasy. The old driver can still be used using define USE_DHT_OLD. The previous new driver can be used with define USE_DHT_V2 (#7717)
Pls try lates dev where the DHT driver has been replaced by the ESPEasy version. Great fun!!! |
Add a stripped DHT driver based on ESPEasy (#7717)
So far, this fourth version of the DHT driver also works fine in my devices. We need the confirmation from the people that have issues with these devices: @PabloVogel that this new driver in latest Tasmota (http://thehackbox.org/tasmota/) is working fine for them, in order to deprecate older drivers. |
testing ..... 10x Am2301 with 8.1.0.8 |
no issues with new driver |
V8.1.0.8 works fine on my DHT11 device, no issues…
Thank you…
|
11 hours, 10 sensors, no issues Thank you |
@OptimusGREEN did it ever work? Check your hardware connections and verify if it's a DHT11 after all. |
Wich is the candidate for the release? V4 or V3?. I find V3 much more clearer. |
V4 is a lot smaller while providing the same functionality. So V4 it is. |
Hi, yes it was working last night on whatever previous version I had. When I woke up this morning it said null and that's when I came across this issue so figured I'd update to the mentioned version in hope that it would fix the problem. |
@OptimusGREEN So, your DHT11 was not working before the update right? |
![2020-04-18_19-51-16](https://user-images.githubusercontent.com/47664171/79638694-12a1a780-81b1-11ea-9e7b-d47620a74179.jpg)
![2020-04-18_19-51-45](https://user-images.githubusercontent.com/47664171/79638699-1b927900-81b1-11ea-8ed8-41d01df6c37c.jpg)
Hallo,
I am using 8.2.0.3 as well, but using DHT11 module and it is ok, (not SI7021 module).
Just the humidity value is somewhat too high in my opinion, (always above 90%)…. but this has happened for quite some time already…
Some time ago was much lower, I do not know what the cause of this… but I neglect it for the meantime…
And btw, I am using Node-RED to control my system, and I use the Tasmota Console content information to process on the Node-RED, like this example below:
- {"Time":"2020-04-18T19:56:14","ANALOG":{"A0":17},"DHT11":{"Temperature":30.0,"Humidity":92.0,"DewPoint":28.6},"TempUnit":"C"}
Whenever there is Tasmota update, my Node-RED dashboard, especially this Temp & Humid sometimes becomes broken, the reason because the format of Console content has changed, for example; before there was no “DewPoint” but on the updated version there is. Since I am using a certain way inside my Node-RED (my own algorithm) to extract the temp & humid values from this Console report, if the Console report format has changed, this causing my Node-RED dashboard broken. So, I always need to modify my Node-RED to suit the new Console format.
This is my Tasmota with DHT11 sensor:
This is my Node-RED dashboard, (simplified with Temp Chart only):
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
@GiorgioRoma Have you installed the 4k7 Ohm resistor? The resistor is NOT on the PCB. |
really no, I knew he already had resistor. |
I don't know, if we will ever find the myth behind these sensors. Joerg |
The situation is strange. I'm running several tests. I am testing a sonoff basic rf, with the DHT22 temperature sensor, starts to provide null values after less than 24 hours (Tasmota firm 8.2.0.3). I am also testing a sonoff mini, always with the same type of DHT22 sensor and for 4 days reporting valid values. The difference between the two sonoff (as well as the model) is that on the sonoff mini (the one that works correctly) I have not enabled anything (mqtt, emulation, setOption19). Now also on this sonoff I have enabled these features, to check if it continues to work I'll update you in the next few days |
Hi, I am using Tasmota v8.2.0.4, DHT11 Sensor, it is fine…
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
Hi, I have an ESP01 connected to DTHT11 with last Tasmota v8.3.1.2 and after 24h is turning null all values. I moved the DHT11 to a sonoff basic and after to a sonoff POW, and with same tasmota version alwais after 24h +- the null arrives. Only a power cycle make returns the values. Waiting for solutions, is possible to have a full reset by console ? I tried with commands "restart 1", and does not work. With this and nodered I could program a reset when the problem comes. THanks |
Continuing on your request you've already find out that a power cycle solves yor issue. This cannot be programmed. The issue is your DHT11 which needs a power cycle, not Tasmota. |
Same problem here with sonoff & DHT11. after 12hours null :( |
Sorry to tell you arendst, but I have the same problem. When I run the physical same DHT11 on a Olimex DEV board, there is absolutly no problem, it can run for weeks, with the same version tasmota, right now it is 8.3.1, but when I run it on an sonoff basic it stops after about 12 hours. Again it is the same DHT11. So it is not the DHT11 but I think it has something to do with the power supply in the Sonoff basic. I tried decoupling the power supply with a 47 uf 16 volt capacitor, right on the sensor board, and after that it ran for almost 36 hours with no problem. So to me it looks like some spikes/dropouts in the power supply. |
A sonoff basic can not power anything but itself. It was not designed to power a sensor. If you want to use a sonoff basic with a sensor, you must add an extra power supply for your sensor. |
@ascillato So that isn't thrue as the ams1117 is capable of delevering 800 mA. |
Hi,
Just for your information; I am using Sonoff Basic, Tasmota 8.3.1.2 (855e054-tasmota), configured as Generic Module, and I modified = I add 3 more relays (total 4 relays), also add DHT11.
Take/tap the 5V/3.3V power from Sonoff Basic power supply itself, so far working fine…
The additional 3 relays, sometimes on/sometimes off, when the relay is on it will draw some current…
Attached the snapshot…..
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
Awsome! |
I saw the various DHT sensors I have inside and outside eventually start to fail (I use WemosD1Mini for my sensors, not a sonoff), even with different wiring methods, pull-ups, different pins, different models (DHT12 and DHT22 and DHT11) and different firmware. Different power sources too! It seemed simpler to me to just use a Bosch BME 280 sensor vs trying to power cycle. I also gained pressure and dewpoint values (with later Tasmota FW versions), to go along with Temp and Humidity, and the price for the sensor was cheaper than a relay/custom power cycle solution. It was also simpler to retrofit. I haven't tested the BME sensors for more than 3 weeks, but I have seen no glitches since then, and I like the additional data. If you want the additional data, be certain you get a true BME, not a BMP. BMP wont have pressure, although a BMP should be a cheaper sensor if you dont want pressure. Most ebay sellers dont know the difference, apparently. This is the best link for making sure you got the right one: We had to have stable mains power for a long time to see all of the sensors fail.. unfortunately being rural, we lost power often, and of course that resets everything. But eventually, all of my DHT based sensors have started showing NULLs. :( |
Please, search in old issues. That mod to a sonoff basic is outside the original design and also there are some batches of sonoff basics with very poor power supply. We made the version called TASMOTA-LITE.bin just because of these sonoffs basics!!! A full version of Tasmota uses more energy than can be provided by the power regulator of those devices. (most of those issues are grouped with a label "sonoff basic R2" so you can check them easily ) I'm just sharing with you the experience from older issues, not a random fact. It might work for your case and your actual device, but generally the case is that don't work reliable, so we don't recommend that. Please, DO NOT CONNECT SENSORS to a POW. It is very dangerous!!!! Your GND and 5v / 3.3v rail is directly connected to mains. If you or any member of your family touch that sensor, they can suffer an electroshock!!! There are BIG warnings in the TASMOTA DOCUMENTATION about that danger!!!! |
@ascillato Found the problem. |
Did anyone solve this issue of the DHT11s reporting back null? This seems to still be happening in v8.4.1. I have a ASAIR NADHT11 and all I get is null. I heard going back to the older firmware was a solution but I cannot locate old bin files in back as far as indicate in the archives. Is there another source? Am I doing something else wrong? Why was this ticket closed? Have 2 sensors of same type and both report same null value |
Please, do a full search in issues and you will find that this was extrensely worked. Several timings for these sensors were tested among a lot of users and there is a batch of DHT11 that don't work. Please, buy another sensor or change your sensor for DHT22 or any other newer one.
Because (as explained in the PRs) several tests were done and new drivers were tested, so the best that works in most brands of these sensors is now part of Tasmota.
A solution would be a better sensor, but if you want to try an older version of Tasmota just look in the releases (https://github.com/arendst/Tasmota/releases)
If you want you can also ask for support in the Tasmota Support Chat at Discord |
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
After upgrade OTA from 8.1.0.6 to 8.1.0.7, the DHT11 sensor gives Temp = NULL deg C, and Humidity = NULL %. I know that to use the old sensor must insert USE_DHT_OLD, but the problem; this insertion can not be done remotely (OTA).... need to go to the site, open the esp8266 compartment and flash manually... I am thinking that this additional (USE_DHT_OLD) should be done remotely (OTA) as well, no need to flash manually...
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: