Update to add support for AHT30 sensor#826
Open
jimmyjon711 wants to merge 6 commits intoKalicoCrew:mainfrom
Open
Update to add support for AHT30 sensor#826jimmyjon711 wants to merge 6 commits intoKalicoCrew:mainfrom
jimmyjon711 wants to merge 6 commits intoKalicoCrew:mainfrom
Conversation
aade4ce to
65d9433
Compare
4 tasks
65d9433 to
2d29d71
Compare
|
This PR fixed the issue I was having with the humidity sensor (it uses AHT10.py) that I have in my QIDI Box (MMU unit). |
2d29d71 to
5c2ed14
Compare
garethky
reviewed
Mar 6, 2026
|
|
||
| def _send_init(self): | ||
| self.i2c.i2c_write(CMD_INIT_AHT1X) | ||
| self.reactor.pause(self.reactor.monotonic() + 0.040) |
Contributor
There was a problem hiding this comment.
I have a comment on one of my PR's about this not actually being effective. This is one of those developer cookbook topics that we should write up.
garethky
reviewed
Mar 6, 2026
|
|
||
| # Backwards compatibility alias | ||
| pheater.add_sensor_factory("AHT10", AHT1x) | ||
|
|
Contributor
There was a problem hiding this comment.
nit: blank line not needed
garethky
reviewed
Mar 6, 2026
|
|
||
|
|
||
| class AHT1x(AHTBase): | ||
| model = "aht1x" |
Contributor
There was a problem hiding this comment.
This is fine. Personally I would have made this a constructor argument so it would be obvious that its required and that it needs validating validated.
garethky
reviewed
Mar 6, 2026
Contributor
garethky
left a comment
There was a problem hiding this comment.
Overall this looks like a good refactor
kageurufu
approved these changes
Apr 19, 2026
Member
kageurufu
left a comment
There was a problem hiding this comment.
Needs rebase then it's good to merge
Signed-off-by: Lev Voronov <minicx@disroot.org>
Split into three classes with proper init commands: - AHT1x: 0xE1 (AHT10, AHT15) - AHT2x: 0xBE (AHT20, AHT21, AHT25) - AHT3x: auto-cal (AHT30) Signed-off-by: Lev Voronov <minicx@disroot.org>
Signed-off-by: Lev Voronov <minicx@disroot.org>
5c2ed14 to
2645a1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AHT30 sensor is used in BTT ViViD filament changer, this update is needed so that AFC can support ViViD with kalico.
Picture below shows sensors working correctly:

Cherry-picked commits from the following PR:
Klipper3d/klipper#7118
Checklist