diff --git a/components/sensor/scd4x.rst b/components/sensor/scd4x.rst index a2859ba55..0a556f6a8 100644 --- a/components/sensor/scd4x.rst +++ b/components/sensor/scd4x.rst @@ -65,12 +65,48 @@ Configuration variables: *altitude_compensation* is ignored if *ambient_pressure_compensation* is set. +- **ambient_pressure_compensation_source** (*Optional*, :ref:`config-id`): Set an external pressure sensor ID used for ambient pressure compensation. + The pressure sensor must report pressure in hPa. the correction is applied before updating the state of the co2 sensor. + - **address** (*Optional*, int): Manually specify the I²C address of the sensor. Defaults to ``0x62``. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. +Automation +----------------- + +Ambient pressure compensation compensation can be changed from :ref:`lambdas ` + + +``set_ambient_pressure_compensation( set_ambient_pressure_compensation(x / 1000.0);" See Also