esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

SCD30 ambient pressure compensation causes spurious CO2 readings. #4448

Closed cortices closed 1 year ago

cortices commented 1 year ago

The problem

I tried setting the SCD30 device, with ambient pressure compensation for my location as per below.

This caused me to get CO2 values of 0 ppm continuously, and then after a forced calibration, 40000ppm continuously. Removing the ambient_pressure_compensation field returned it to normal behaviour.

Which version of ESPHome has the issue?

2023.4.0

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

seeed_xiao_esp32c3

Component causing the issue

scd30

Example YAML snippet

sensor:
  - platform: scd30
    co2:
      name: ...
    ambient_pressure_compensation: 1020

Anything in the logs that might be useful for us?

[23:05:04][D][scd30:206]: Performing CO2 force recalibration with reference 420ppm.
[23:05:04][D][scd30:208]: Force recalibration complete.
[23:05:12][D][scd30:181]: Got CO2=40000.00ppm temperature=21.64°C humidity=71.03%
...

Additional information

No response

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.