mirror of
https://github.com/esphome/esphome.git
synced 2024-12-11 07:54:54 +01:00
94327d9e3a
LPS22HB/HH is a barometric pressure sensor. It has pretty high accuracy, is somewhat less prone to measuring weird stuff compared to competing chips and is reasonably widely available for purchase. This adds a very basic one-shot based implementation for interacting with this sensor over an I2C bus. The chip also supports communication over SPI, but I don't have the means to test such configuration (for my PCB is baked for I2C) as well as measuring the conditions in a automatic mode. These are left as future extensions to the basic implementation seen here.
8 lines
163 B
YAML
8 lines
163 B
YAML
sensor:
|
|
- platform: lps22
|
|
address: 0x5d
|
|
update_interval: 10s
|
|
temperature:
|
|
name: "LPS22 Temperature"
|
|
pressure:
|
|
name: "LPS22 Pressure"
|