2021-02-14 00:37:49 +01:00
SCD30 CO₂, Temperature and Relative Humidity Sensor
===================================================
2019-08-31 19:24:41 +02:00
.. seo ::
2021-02-14 00:37:49 +01:00
:description: Instructions for setting up SCD30 CO₂ Temperature and Relative Humidity Sensor
2019-08-31 19:24:41 +02:00
:image: scd30.jpg
2021-05-19 22:17:39 +02:00
The `` scd30 `` sensor platform allows you to use your Sensirion SCD30 CO₂
2020-05-24 01:41:48 +02:00
(`datasheet <https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/9.5_CO2/Sensirion_CO2_Sensors_SCD30_Datasheet.pdf> `__ ) sensors with ESPHome.
2019-08-31 19:24:41 +02:00
The :ref: `I²C Bus <i2c>` is required to be set up in your configuration for this sensor to work.
.. figure :: images/scd30.jpg
:align: center
:width: 80.0%
.. code-block :: yaml
# Example configuration entry
sensor:
- platform: scd30
co2:
name: "Workshop CO2"
accuracy_decimals: 1
temperature:
name: "Workshop Temperature"
accuracy_decimals: 2
humidity:
name: "Workshop Humidity"
accuracy_decimals: 1
2020-12-03 19:21:15 +01:00
temperature_offset: 1.5 °C
2019-08-31 19:24:41 +02:00
address: 0x61
update_interval: 5s
2020-05-10 21:27:59 +02:00
2019-08-31 19:24:41 +02:00
Configuration variables:
------------------------
2021-01-30 04:50:13 +01:00
- **co2** (*Optional* ): The information for the CO₂ sensor.
2019-08-31 19:24:41 +02:00
- **name** (**Required** , string): The name for the CO₂eq sensor.
- **id** (*Optional* , :ref: `config-id` ): Set the ID of this sensor for use in lambdas.
- All other options from :ref: `Sensor <config-sensor>` .
2021-01-30 04:50:13 +01:00
- **temperature** (*Optional* ): The information for the Temperature sensor.
2019-08-31 19:24:41 +02:00
- **name** (**Required** , string): The name for the temperature sensor.
- **id** (*Optional* , :ref: `config-id` ): Set the ID of this sensor for use in lambdas.
- All other options from :ref: `Sensor <config-sensor>` .
2021-01-30 04:50:13 +01:00
- **humidity** (*Optional* ): The information for the Humidity sensor.
2019-08-31 19:24:41 +02:00
- **name** (**Required** , string): The name for the humidity sensor.
- **id** (*Optional* , :ref: `config-id` ): Set the ID of this sensor for use in lambdas.
- All other options from :ref: `Sensor <config-sensor>` .
2020-12-03 19:21:15 +01:00
- **temperature_offset** (*Optional* , float): Temperature and humidity
offsets may occur when operating the sensor in end-customer
devices. This variable allows the compensation of those effects by
setting a temperature offset.
2021-11-28 19:57:01 +01:00
- **automatic_self_calibration** (*Optional* , boolean): Whether to enable
2020-11-15 19:03:12 +01:00
automatic self calibration (ASC). Defaults to `` true `` .
- **ambient_pressure_compensation** (*Optional* , int): Enable compensation
of measured CO₂ values based on given ambient pressure in mBar.
- **altitude_compensation** (*Optional* , int): Enable compensating
deviations due to current altitude (in metres). Notice: setting
*altitude_compensation* is ignored if *ambient_pressure_compensation*
is set.
2020-11-09 02:22:55 +01:00
- **address** (*Optional* , int): Manually specify the I²C address of the sensor.
2019-08-31 19:24:41 +02:00
Defaults to `` 0x61 `` .
- **update_interval** (*Optional* , :ref: `config-time` ): The interval to check the
sensor. Defaults to `` 60s `` .
2023-02-03 09:13:31 +01:00
Manual calibration:
------------------------
.. code-block :: yaml
# Example on how to implement a UI section in HA for manual calibration.
# Note: Please enter first a CO2 value before pressing the button.
button:
- platform: template
name: "SCD30 Force manual calibration"
entity_category: "config"
on_press:
then:
- scd30.force_recalibration_with_reference:
value: !lambda 'return id(co2_cal).state;'
number:
- platform: template
name: "CO2 calibration value"
optimistic: true
min_value: 350
max_value: 4500
step: 1
id: co2_cal
icon: "mdi:molecule-co2"
entity_category: "config"
2019-08-31 19:24:41 +02:00
See Also
--------
- :ref: `sensor-filters`
- :doc: `dht`
- :doc: `dht12`
- :doc: `hdc1080`
- :doc: `htu21d`
- :apiref: `scd30/scd30.h`
- :ghedit: `Edit`