-
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
Add Support for AHT30 Temperature and Humidity Sensor #19922
Conversation
Support for AHT30 added. Fixed command for loading factory calibrated data and reset command, added needed delay after read command and increased measurement period to reduce heating of sensor.
In addition to the datasheet, did you TEST if your changes work? I see you also change AHT1x reset command. Did you test AHT1x functionality? |
I tested the code on two ESP32 boards: |
The reset command is aligned with the AHT10/20/30 datasheet.
The reset command in my code did not match the AHT10/20/30 datasheets. I have corrected it. However, the reset function is not used in the driver, so the error did not affect the driver. Apparently, the initialization function is sufficient for the sensor to work. |
This PR also fixes work with AHT20+BMP280 module from aliexpress. |
Very good! I'm just waiting for the AHT20+BMP280 to be delivered. |
Translated Dew Point to russian Точка росы for sensors
Added Russian translation of untranslated element "Dew point" for AHTxx sensors. |
I tested the code to ESP32 boards: |
@dadaweb77 how have you connected the sensor to the "Sonoff Extreme mini R4"? Thanks! |
Simple: Use this template |
The code changes need to be tested with an AHT25 too. Furthermore all language translation files has to be included in the PR (providing all not known languages in English) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. Can you please check the questions?
Will go to separate PR
Partial translation update
Update ru_RU.h
This PR has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge as-is, but I would largely prefer a future version that unifies ATH10/20/30 into a single code base, and dynamic selection
To make a universal driver that will work for all versions of this sensor seems realistic to me. But it will be possible to distinguish only AHT10, because it has a different code for sending a command. The other versions of AHT I do not know how to distinguish from each other programmatically. Anyway, I'll give it a try. |
Will this feature be merged and available? I would like to use the AHT30 as well. :) |
is there a test bin somewhere? i can't seem to find a workflow creation from PR |
This PR has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions. |
* Update xsns_63_aht1x.ino Support for AHT30 added. Fixed command for loading factory calibrated data and reset command, added needed delay after read command and increased measurement period to reduce heating of sensor. * Update xsns_63_aht1x.ino * Update xsns_63_aht1x.ino The reset command is aligned with the AHT10/20/30 datasheet. * Update ru_RU.h Translated Dew Point to russian Точка росы for sensors * Delete tasmota/language/ru_RU.h Will go to separate PR * Add files via upload * Update ru_RU.h Partial translation update * Add files via upload
Description:
Implemented sensor detection, initialization, and data reading based on both the AHT20 and the AHT30 datasheet specifications.
Configured the sensor polling interval to 10 seconds to prevent sensor heating.
Checklist: