跳转到内容

MPL3115A2 气压/高度/温度传感器

mpl3115a2 传感器平台允许您在 ESPHome 中使用 MPL3115A2 大气压力传感器 (数据手册, Adafruit)温度和压力传感器。此传感器需要在您的配置中设置 I²C 才能工作。

MPL3115A2 气压/高度/温度传感器
# Example configuration entry
sensor:
- platform: mpl3115a2
temperature:
name: "MPL3115A2 Temperature"
pressure:
name: "MPL3115A2 Pressure"
update_interval: 10s

MPL3115A2 可配置为根据配置的传感器输出压力或高度。

  • pressure (可选): 压力传感器的信息。

    • 来自 Sensor 的所有选项。
  • altitude (可选): 高度传感器的信息。

    • 来自 Sensor 的所有选项。
  • temperature (可选): 温度传感器的信息。

    • 来自 Sensor 的所有选项。
  • address (可选,int): 手动指定传感器的 I²C 地址 。默认为 0x60。

  • update_interval (可选,Time): 检查 传感器的间隔。默认为 60s。