Skip to content
Get started

BMI270 Temperature and Magnetic Field Sensor

The bmi270 sensor platform provides access to the on-chip temperature sensor in a BMI270 Accelerometer/Gyroscope (datasheet) with ESPHome. This platform requires a motion component to be configured with the bmi270 platform, which handles the accelerometer and gyroscope data processing and configures the device. See that component for more information.

If a Bosch BMM150 magnetometer is wired to the BMI270’s auxiliary interface, the platform also provides its magnetic field readings.

# Example configuration entry
motion:
- platform: bmi270
sensor:
- platform: bmi270
type: temperature # Optional, temperature is the default type for this platform
name: "BMI270 Temperature"

To read the magnetic field, first set aux_device: BMM150 on the parent motion platform, then add one entry per axis:

# Example configuration entry
motion:
- platform: bmi270
aux_device: BMM150
sensor:
- platform: bmi270
type: magnetic_field_x
name: "BMM150 Magnetic Field X"
- platform: bmi270
type: magnetic_field_y
name: "BMM150 Magnetic Field Y"
- platform: bmi270
type: magnetic_field_z
name: "BMM150 Magnetic Field Z"
  • type (Optional, string): One of temperature, magnetic_field_x, magnetic_field_y, magnetic_field_z. Defaults to temperature. The magnetic_field_* types report the field strength in microtesla (µT) and require the parent bmi270 platform’s aux_device to be set to BMM150.
  • All other options from Sensor.