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 entrymotion: - 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 entrymotion: - 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"Configuration variables
Section titled “Configuration variables”- type (Optional, string): One of
temperature,magnetic_field_x,magnetic_field_y,magnetic_field_z. Defaults totemperature. Themagnetic_field_*types report the field strength in microtesla (µT) and require the parentbmi270platform’saux_deviceto be set toBMM150. - All other options from Sensor.