Closed KuePe closed 4 years ago
I had similar issues getting a "fresh from factory" one working. Since most of the configuration gets stored in the sensor non-volatile memory, I think the original author's testing had one that was already configured (probably by another library).
Can you try https://github.com/Sizurka/esphome/tree/scd30-fixes ? That contains the fixes I had to do get mine working, but with a sample size of one, it's not exactly conclusive.
Thank you for your answer. I will be happy to test the fix.
What should I do? Should I replace the two files "scd30.cpp" and "scd30.h" in the directory "/config/esphome/muutu_test_6/src/esphome/components/scd30?" What should I do with the file "sensor.py"? How do I download the files from GitHub?
The simplest way to test without a full development environment would be to override it with a custom component. So in this case, you would create: <YourConfigDirectory>/esphome/custom_components/scd30/
then put the four files in to that directory. That should make ESPHome use the overridden parts instead of the built in one the next time you compile/upload.
To download from github, you can either download the whole thing - the "Clone or download" button then "Download ZIP" will get the branch you have selected, so the above link should get you the right one - then extract the files from it (esphome-scd30-fixes/esphome/components/scd30/
). Alternatively you can navigate to the changed contents ( https://github.com/Sizurka/esphome/tree/scd30-fixes/esphome/components/scd30 ), click on the file, then click on the "Raw" button and save the result.
In either case, you should be able to verify that you've done it correctly by trying to set the new option for automatic self calibration. If ESPHome rejects it, then something went wrong. So only the updated one would accept something like:
sensor:
- platform: scd30
automatic_self_calibration: true
Thank you so much, it works. I tested two brand new SCD30 sensors. In the next few days I will continue to test and pass on the information. Great support.
I was also having this issue. Oddly enough, it worked fine on an ESP32, but not on the ESP8266 I had. With these fixes, no problems :).
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io, esphome ESP (ESP32/ESP8266, Board/Sonoff):
ESP32 WROOM32 DevKit Affected component:
SCD30 CO₂, Temperature and Relative Humidty Sensor https://esphome.io/components/sensor/scd30.html
Description of problem: Has anyone successfully tested the SCD30 integration (Sensirion CO2 sensor)? I only get the message "Data not ready yet!"
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: Other I2C sensors (such as the CS811) have been successfully tested.
Comment on API Description: Detailed Description «This class implements support for the Sensirion scd30 i2c GAS (VOC and CO2eq) sensors.» is not correct. The SCD30 is a CO2 Sensor and not a not a VOC and CO2eq Sensor
API Reference: https://esphome.io/api/scd30_8h.html https://esphome.io/api/classesphome_1_1scd30_1_1_s_c_d30_component.html#details
Interface Description Sensirion SCD30 Sensor Module https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/9.5_CO2/Sensirion_CO2_Sensors_SCD30_Interface_Description.pdf