esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

BMP280 IIR Filter option is ignored #1695

Closed osiixy closed 3 years ago

osiixy commented 3 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

ESP (ESP32/ESP8266, Board/Sonoff):

LoLin NodeMCU V3 ESP8266

ESPHome version (latest production, beta, dev branch)

ESPHome 1.15.3 (installed from AUR)

Affected component:

https://esphome.io/components/sensor/bmp280.html

Description of problem: The IIR Filter option is ignored.

Problem-relevant YAML-configuration entries:

sensor:
  - platform: bmp280
    i2c_id: bus_a
    address: 0x76
    iir_filter: 16X
    temperature:
      name: "BME280 Temperature"
      id: "temp"
      oversampling: 8X
    pressure:
      name: "BMP280 Pressure"
      id: "pressure"
      oversampling: 8X
    update_interval: 10s

Logs (if applicable):

[13:51:46][C][bmp280.sensor:098]: BMP280:
[13:51:46][C][bmp280.sensor:099]:   Address: 0x76
[13:51:46][C][bmp280.sensor:111]:   IIR Filter: OFF
[13:51:46][C][bmp280.sensor:112]:   Update Interval: 10.0s
[13:51:46][C][bmp280.sensor:114]:   Temperature 'BME280 Temperature'
[13:51:46][C][bmp280.sensor:114]:     Unit of Measurement: '°C'
[13:51:46][C][bmp280.sensor:114]:     Accuracy Decimals: 1
[13:51:46][C][bmp280.sensor:114]:     Icon: 'mdi:thermometer'
[13:51:46][C][bmp280.sensor:115]:     Oversampling: 8x
[13:51:46][C][bmp280.sensor:116]:   Pressure 'BMP280 Pressure'
[13:51:46][C][bmp280.sensor:116]:     Unit of Measurement: 'hPa'
[13:51:46][C][bmp280.sensor:116]:     Accuracy Decimals: 1
[13:51:46][C][bmp280.sensor:116]:     Icon: 'mdi:gauge'
[13:51:46][C][bmp280.sensor:117]:     Oversampling: 8x

Additional information and things you've tried: I've tried to change values both at IIR and oversampling. The oversampling works fine, but the IIR stays off (even tried with capital X). I've browsed the python and C++ code hoping to find the problem without luck.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.