BME280 Temperature+Pressure+Humidity Sensor

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

../../../_images/bme280-full.jpg

BME280 Temperature, Pressure & Humidity Sensor.

# Example configuration entry
sensor:
  - platform: bme280
    temperature:
      name: "BME280 Temperature"
      oversampling: 16x
    pressure:
      name: "BME280 Pressure"
    humidity:
      name: "BME280 Humidity"
    address: 0x77
    update_interval: 15s

Configuration variables:

  • temperature (Required): The information for the temperature. sensor
    • name (Required, string): The name for the temperature sensor.
    • oversampling (Optional): The oversampling parameter for the temperature sensor. See Oversampling Options.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Sensor and MQTT Component.
  • pressure (Required): The information for the pressure sensor.
    • name (Required, string): The name for the pressure sensor.
    • oversampling (Optional): The oversampling parameter for the temperature sensor. See Oversampling Options.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Sensor and MQTT Component.
  • humidity (Required): The information for the pressure sensor.
    • name (Required, string): The name for the humidity sensor.
    • oversampling (Optional): The oversampling parameter for the temperature sensor. See Oversampling Options.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Sensor and MQTT Component.
  • address (Optional, int): Manually specify the i^2c address of the sensor. Defaults to 0x77. Another address can be 0x76.
  • iir_filter (Optional): Set up an Infinite Impulse Response filter to increase accuracy. One of OFF, 2x, 4x, 16x. Defaults to OFF.
  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 15s. See update_interval gotchas.

Oversampling Options

By default, the BME280 sensor measures each value 16 times when requesting a new value. You can, however, configure this amount. Possible oversampling values:

  • NONE
  • 1x
  • 2x
  • 4x
  • 8x
  • 16x (default)