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
Add Sensirion SHT4x I²C Temperature and Humidity sensor #4590
Comments
Have you already tried if it may -by accident- work with the SHT1x or SHT3x plugins? |
No, but the library/driver of SHT4x seems to be different from SHT3x. |
The same request was already posted in the forum, and it is on my local TODO list (though I haven't reserved a plugin ID for it yet), so no ETA. |
Yes, I see the first request to add this family of sensors is dated December 2021. |
A SHT41 sensor board should arrive soon and so I can help for testing. |
I have reserved PluginID |
Great!!! |
@iz8mbw I've created a PR for this sensor series (SHT40/SHT41/SHT43/SHT45), available from this Actions run, once that's finished. |
Hi @tonhuisman many thanks. |
Hi @tonhuisman I'm still waiting for delivery, I'll write you when I receive the SHT41 sensor and I'll test it. |
Hi @tonhuisman. I can read the sensors without any issues. But I notices some problems depending on the configuration. About the "Heater" setting in "Startup Configuration", when I select it (all Heater combinations) the sensor reports a high temperature value and a low humidity value (ok this make sense due to Heater) but after that no more values are returned, so it hangs at: About Resolution, the sensor works well at High Resolution (default), but there are some combinations between "Startup Configuration" and "Normal Configuration" that make sensor unreadable and on the log I have; Here the combinations between "Startup Configuration" and "Normal Configuration" that generates the read errors Startup Configuration: High / Normal Configuration: Low Many thanks! |
That's never done on any plugin as far as I can remember. |
@iz8mbw How long is the wiring between the sensor and the ESP? |
@tonhuisman 20 centimeters |
Hi @tonhuisman did you have time to give a look at the issues when Heater is enabled and when some combinations between "Startup Configuration" and "Normal Configuration" generates read errors? |
No, I've been busy with a different project, sorry. Will pick it up soon, though. |
@iz8mbw I've added PR #4698 to fix the checksum error issue when using the heater as a Startup configuration. Can you please test that once this GH Actions run is completed? |
Hi @tonhuisman just tested and it works very well! Thanks! |
@iz8mbw I've also tried to implement reporting |
@tonhuisman YES!!!! It works as expected! Now it returns Thanks! |
In my opinion reporting |
I do agree, but..... |
Sorry but if I have a 25 C of temperature and for some reason the I2C cable is cutted and ESPEasy reports 125 C of temperature (instead of 25 C) do you think it makes sense? Better NaN that let's the user understand that there is a problem instead to report a wrong (and no sense) value |
Also in Documentation can be specified that ESPEasy reports NaN in case of Read errors instead to reports no sense values such ss 0 C or 125 C or other no sense values |
Like I said, it for sure makes sense to allow for proper error signalling. Just as an example of what may happen on installed setups. |
I get your point and I want to add if NaN is reported then no values are sent to MQTT and for sure this is an advantage |
We are already working on some more generic solution, but there are some caveats in implementing it right away for all. |
Thanks 👍 |
Hi!
Is it possible to add Sensirion SHT4x (SHT40, SHT41, SHT45) I2C Temperature and Humidity sensor in ESPEasy?
Libraries and docs:
https://github.com/Sensirion/arduino-sht
https://github.com/Sensirion/embedded-sht
https://github.com/Sensirion/arduino-i2c-sht4x
https://github.com/adafruit/Adafruit_SHT4X
https://github.com/UncleRus/esp-idf-lib
https://github.com/ArtronShop/ArtronShop_SHT45
http://www.esp32learning.com/code/sht40-digital-humidity-sensor-and-esp32-board-example.php
Datasheet: https://sensirion.com/media/documents/33FD6951/640B22DB/Datasheet_SHT4x.pdf
Many thanks!
The text was updated successfully, but these errors were encountered: