MPL3115A2 Barometric Pressure/Altitude/Temperature Sensor

The mpl3115a2 sensor platform allows you to use your MPL3115A2 atmospheric pressure sensors (datasheet, Adafruit) temperature and pressure sensors with ESPHome. The I²C is required to be set up in your configuration for this sensor to work.

../../_images/mpl3115a2-full.jpg

MPL3115A2 Barometric Pressure/Altitude/Temperature Sensor

# Example configuration entry
sensor:
- platform: mpl3115a2
  temperature:
    name: "MPL3115A2 Temperature"
  pressure:
    name: "MPL3115A2 Pressure"
  update_interval: 10s

Configuration variables:

The MPL3115A2 can be configured to output either pressure or altitude depending on which sensor is configured.

  • pressure (Optional): The information for the pressure sensor.

    • name (Required, string): The name for the pressure sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • altitude (Optional): The information for the altitude sensor.

    • name (Required, string): The name for the altitude sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • temperature (Optional): The information for the temperature sensor.

    • name (Required, string): The name for the temperature sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • address (Optional, int): Manually specify the I²C address of the sensor. Defaults to 0x60.

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

See Also