Skip to content

Update docs for xgzp68xx component. #5255

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

Open
wants to merge 7 commits into
base: next
Choose a base branch
from
Open

Conversation

ned14
Copy link

@ned14 ned14 commented Aug 19, 2025

Description:

Related issue (if applicable): fixes https://github.com/orgs/esphome/discussions/3286

Pull request in esphome with YAML changes (if applicable):

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/index.rst when creating new documents for new components or cookbook.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates documentation for the XGZP68xx component by replacing the existing documentation with V2-specific documentation that addresses confusion between different generations of the sensor. The key changes clarify that CFSensor produces multiple generations of sensors with identical model numbers but completely different I²C interfaces.

  • Replaces generic XGZP68xx documentation with V2-specific documentation
  • Adds detailed explanation of sensor generations and their differences
  • Includes comprehensive pressure range table with corresponding k_values
  • Adds calibration guidance and noise characteristics information

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
components/sensor/xgzp68xx_v2.rst New comprehensive documentation for V2 series sensors with detailed configuration and calibration guidance
components/sensor/xgzp68xx.rst Removes the original generic documentation file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- **temperature** (*Optional*): All options from :ref:`Sensor <config-sensor>`.
- **pressure** (*Optional*): All options from :ref:`Sensor <config-sensor>`.
- **oversampling** (*Optional*): One of ``256x``, ``512x``, ``1024x``, ``2048x``, ``4096x``, ``8192x``, ``16384x``, ``32768x``. It is not possible to disable oversampling. If not specified, this defaults to ``4096x``.
- **k_value** (*Optional*, int): The K value comes from the table above. It will default to 4096 if not specified.
Copy link
Preview

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default k_value of 4096 is inconsistent with the pressure range table above. According to the table, k_value 4096 corresponds to -2.5 kPa to +2.5 kPa range, but the table shows 16384 for the -0.5 kPa to +0.5 kPa range which seems more appropriate as a safe default.

Suggested change
- **k_value** (*Optional*, int): The K value comes from the table above. It will default to 4096 if not specified.
- **k_value** (*Optional*, int): The K value comes from the table above. It will default to 16384 if not specified.

Copilot uses AI. Check for mistakes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous default used by this component was 4096.

There is a strong argument to make this config option mandatory.

Copy link

netlify bot commented Aug 19, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit a438398
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/68a4dd132f66e200082f7b73
😎 Deploy Preview https://deploy-preview-5255--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 19, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 66f2f8e
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/68a4f696b6f8380008f6d5b8
😎 Deploy Preview https://deploy-preview-5255--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants