diff --git a/components/sensor/ens160.rst b/components/sensor/ens160.rst index ffa793163..92d3f6976 100644 --- a/components/sensor/ens160.rst +++ b/components/sensor/ens160.rst @@ -6,8 +6,8 @@ ENS160 Sensor :keywords: ENS160 The ``ens160`` sensor platform allows you to use your ENS160 -(`datasheet `__) air-quality sensors with ESPHome. The :ref:`I²C ` component is -required to be set up in your configuration for this sensor to work. +(`datasheet `__) air-quality sensors with ESPHome. +The :ref:`I²C ` or :ref:`SPI ` is required to be set up in your configuration for this sensor to work. .. note:: @@ -23,9 +23,9 @@ required to be set up in your configuration for this sensor to work. .. code-block:: yaml - # Example configuration entry + # Example configuration entry I2C sensor: - - platform: ens160 + - platform: ens160_i2c eco2: name: "ENS160 eCO2" tvoc: @@ -37,7 +37,22 @@ required to be set up in your configuration for this sensor to work. compensation: temperature: id_temperature_sensor humidity: id_humidity_sensor - + + # Example configuration entry SPI + sensor: + - platform: ens160_spi + eco2: + name: "ENS160 eCO2" + tvoc: + name: "ENS160 Total Volatile Organic Compounds" + aqi: + name: "ENS160 Air Quality Index" + update_interval: 60s + cs_pin: GPIO5 + compensation: + temperature: id_temperature_sensor + humidity: id_humidity_sensor + Configuration variables: ------------------------ @@ -64,11 +79,14 @@ Configuration variables: sensor. Defaults to ``60s``. The update interval should be greater than the measurement frequency of the ENS160 which is up to 1 second. +- **address** (*Optional*, int): *I²C only.* Manually specify the I²C address of + the sensor. Defaults to ``0x53``. Another address can be ``0x52``. + +- **cs_pin** (*Required*, :ref:`Pin Schema `): *SPI only.* The Chip Select pin. + + Advanced: -- **address** (*Optional*, int): Manually specify the I²C address of - the sensor. Defaults to ``0x53``. Another address can be ``0x52``. - - **compensation** (*Optional*): The block containing sensors used for compensation. Temperature and humidity compensation improves the accuracy of sensor readings. Without compensation, the ENS160 internally assumes 25°C temperature and 50% humidity, with readings noticeably diverting from real changes without compensation in temperature and humidity.