[stcc4] Add driver for Sensirion STCC4 CO2 sensor#14037
Open
will-tm wants to merge 2 commits intoesphome:devfrom
Open
[stcc4] Add driver for Sensirion STCC4 CO2 sensor#14037will-tm wants to merge 2 commits intoesphome:devfrom
will-tm wants to merge 2 commits intoesphome:devfrom
Conversation
Contributor
|
To use the changes from this PR as an external component, add the following to your ESPHome configuration YAML file: external_components:
- source: github://pr#14037
components: [stcc4]
refresh: 1h(Added by the PR bot) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #14037 +/- ##
==========================================
- Coverage 74.11% 74.08% -0.03%
==========================================
Files 55 55
Lines 11588 11588
Branches 1577 1577
==========================================
- Hits 8588 8585 -3
- Misses 2598 2600 +2
- Partials 402 403 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3 tasks
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.
What does this implement/fix?
Add support for the Sensirion STCC4 miniature CO₂ sensor based on thermal conductivity measurement.
The STCC4 features a dedicated I²C controller interface for an onboard SHT4x sensor, providing
automatic temperature/humidity compensation and readings alongside CO₂ concentration. For boards
without an onboard SHT4x, external RHT compensation is supported via
temperature_sourceandhumidity_sourceconfiguration options.Implementation details aligned with the official Sensirion embedded driver.
Types of changes
Related issue or feature (if applicable):
Pull request in esphome-docs with documentation (if applicable):
Test Environment
Example entry for
config.yaml:Checklist:
tests/folder).If user exposed functionality or configuration variables are added/changed: