Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ Environmental
HYT271, components/sensor/hyt271, hyt271.jpg, Temperature & Humidity
Inkbird IBS-TH1 Mini, components/sensor/inkbird_ibsth1_mini, inkbird_isbth1_mini.jpg, Temperature & Humidity
Internal Temperature, components/sensor/internal_temperature, thermometer.svg, Temperature, dark-invert
LPS22, components/sensor/lps22, lps22.jpg, Temperature & Barometric Pressure
MCP9808, components/sensor/mcp9808, mcp9808.jpg, Temperature
MH-Z19, components/sensor/mhz19, mhz19.jpg, CO2 & Temperature
MLX90614, components/sensor/mlx90614, mlx90614.jpg, Temperature
Expand Down
Binary file added components/sensor/images/lps22.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions components/sensor/lps22.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
LPS22 Barometric Pressure Sensor
================================

.. seo::
:description: Instructions for setting up LPS22 barometric pressure sensor

The ``lps22`` sensor platform allows you to use your LPS22HB or LPS22HH pressure sensor
(`datasheet <https://www.st.com/resource/en/application_note/an4672-lps22hblps25hb-digital-pressure-sensors-hardware-guidelines-for-system-integration-stmicroelectronics.pdf>`__) with ESPHome.

The :ref:`I²C Bus <i2c>` is required to be set up in your configuration for this sensor to work.

.. figure:: images/lps22.jpg
:align: center

.. code-block:: yaml

sensor:
- platform: lps22
temperature:
name: "LPS22 Temperature"
pressure:
name: "LPS22 Pressure"

Configuration variables:
------------------------

- **temperature** (*Optional*): Temperature.

- All options from :ref:`Sensor <config-sensor>`.

- **pressure** (*Optional*): Barometric Pressure.

- All options from :ref:`Sensor <config-sensor>`.

- **address** (*Optional*, int): Manually specify the I²C address of the sensor. Default is ``0x5d``. ``0x5c`` is another common address.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.

Sensor sampling details:
------------------------

The LPS22 sensors support variety of sampling and streaming approaches: periodic at various
frequencies from 1Hz to 75Hz, as well as single-shot sampling mode. Single-shot sampling is
implemented in this component letting the sensor to enter the power-down mode between samples,
saving significant power.

See Also
--------

- :ref:`sensor-filters`
- :apiref:`lps22/lps22.h`
- :ghedit:`Edit`
Binary file added images/lps22.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.