Error finding BMP280

Still nothing.

[21:26:26][C][i2c:028]: I2C Bus:
[21:26:26][C][i2c:029]: SDA Pin: GPIO22
[21:26:26][C][i2c:030]: SCL Pin: GPIO21
[21:26:26][C][i2c:031]: Frequency: 50000 Hz
[21:26:26][I][i2c:033]: Scanning i2c bus for active devices…
[21:26:26][I][i2c:040]: Found i2c device at address 0x0A
[21:26:26][I][i2c:040]: Found i2c device at address 0x12
[21:26:26][I][i2c:040]: Found i2c device at address 0x13
[21:26:26][I][i2c:040]: Found i2c device at address 0x17
[21:26:27][I][i2c:040]: Found i2c device at address 0x36
[21:26:27][I][i2c:040]: Found i2c device at address 0x3F
[21:26:27][I][i2c:040]: Found i2c device at address 0x40
[21:26:27][I][i2c:040]: Found i2c device at address 0x43
[21:26:27][I][i2c:040]: Found i2c device at address 0x44
[21:26:27][I][i2c:040]: Found i2c device at address 0x48
[21:26:27][I][i2c:040]: Found i2c device at address 0x49
[21:26:27][I][i2c:040]: Found i2c device at address 0x4C
[21:26:27][I][i2c:040]: Found i2c device at address 0x50
[21:26:27][I][i2c:040]: Found i2c device at address 0x55
[21:26:29][C][logger:137]: Logger:
[21:26:29][C][logger:138]: Level: DEBUG
[21:26:29][C][logger:139]: Log Baud Rate: 115200
[21:26:29][C][logger:140]: Hardware UART: UART0
[21:26:29][C][bmp280.sensor:098]: BMP280:
[21:26:29][C][bmp280.sensor:099]: Address: 0x77
[21:26:29][E][bmp280.sensor:102]: Communication with BMP280 failed!
[21:26:29][C][bmp280.sensor:111]: IIR Filter: OFF
[21:26:29][C][bmp280.sensor:112]: Update Interval: 60.0s
[21:26:29][C][bmp280.sensor:114]: Temperature ‘Temperatura do quarto’
[21:26:29][C][bmp280.sensor:114]: Unit of Measurement: ‘°C’
[21:26:29][C][bmp280.sensor:114]: Accuracy Decimals: 1
[21:26:29][C][bmp280.sensor:114]: Icon: ‘mdi:thermometer’
[21:26:29][C][bmp280.sensor:115]: Oversampling: 16x
[21:26:29][C][bmp280.sensor:116]: Pressure ‘Outside Pressure’
[21:26:29][C][bmp280.sensor:116]: Unit of Measurement: ‘hPa’
[21:26:29][C][bmp280.sensor:116]: Accuracy Decimals: 1
[21:26:29][C][bmp280.sensor:116]: Icon: ‘mdi:gauge’
[21:26:29][C][bmp280.sensor:117]: Oversampling: 16x
[21:26:29][C][ota:029]: Over-The-Air Updates:
[21:26:29][C][ota:030]: Address: esp32.local:3232
[21:26:29][C][ota:032]: Using Password.
[21:26:29][C][api:103]: API Server:
[21:26:29][C][api:104]: Address: esp32.local:6053

Found this funny. It finds a device on the address 77 and its set on 77 and it failed.
"
[21:32:31][C][i2c:029]: SDA Pin: GPIO22
[21:32:31][C][i2c:030]: SCL Pin: GPIO21
[21:32:31][C][i2c:031]: Frequency: 50000 Hz
[21:32:31][I][i2c:033]: Scanning i2c bus for active devices…
[21:32:31][I][i2c:040]: Found i2c device at address 0x08
[21:32:32][I][i2c:040]: Found i2c device at address 0x0E
[21:32:32][I][i2c:040]: Found i2c device at address 0x16
[21:32:32][I][i2c:040]: Found i2c device at address 0x1E
[21:32:32][I][i2c:040]: Found i2c device at address 0x20
[21:32:32][I][i2c:040]: Found i2c device at address 0x24
[21:32:32][I][i2c:040]: Found i2c device at address 0x2C
[21:32:32][I][i2c:040]: Found i2c device at address 0x2F
[21:32:33][I][i2c:040]: Found i2c device at address 0x4B
[21:32:34][I][i2c:040]: Found i2c device at address 0x5A
[21:32:34][I][i2c:040]: Found i2c device at address 0x60
[21:32:34][I][i2c:040]: Found i2c device at address 0x68
[21:32:34][I][i2c:040]: Found i2c device at address 0x6F
[21:32:34][I][i2c:040]: Found i2c device at address 0x77
[21:32:34][C][logger:137]: Logger:
[21:32:34][C][logger:138]: Level: DEBUG
[21:32:34][C][logger:139]: Log Baud Rate: 115200
[21:32:34][C][logger:140]: Hardware UART: UART0
[21:32:34][C][bmp280.sensor:098]: BMP280:
[21:32:34][C][bmp280.sensor:099]: Address: 0x77
[21:32:34][E][bmp280.sensor:102]: Communication with BMP280 failed!
[21:32:34][C][bmp280.sensor:111]: IIR Filter: OFF
[21:32:34][C][bmp280.sensor:112]: Update Interval: 60.0s
[21:32:34][C][bmp280.sensor:114]: Temperature ‘Temperatura do quarto’
[21:32:34][C][bmp280.sensor:114]: Unit of Measurement: ‘°C’
[21:32:34][C][bmp280.sensor:114]: Accuracy Decimals: 1
[21:32:34][C][bmp280.sensor:114]: Icon: ‘mdi:thermometer’
[21:32:34][C][bmp280.sensor:115]: Oversampling: 16x
[21:32:34][C][bmp280.sensor:116]: Pressure ‘Outside Pressure’
[21:32:34][C][bmp280.sensor:116]: Unit of Measurement: ‘hPa’
[21:32:34][C][bmp280.sensor:116]: Accuracy Decimals: 1
[21:32:34][C][bmp280.sensor:116]: Icon: ‘mdi:gauge’
[21:32:34][C][bmp280.sensor:117]: Oversampling: 16x
[21:32:34][C][ota:029]: Over-The-Air Updates:
[21:32:34][C][ota:030]: Address: esp32.local:3232
[21:32:34][C][ota:032]: Using Password.
[21:32:34][C][api:103]: API Server:
[21:32:34][C][api:104]: Address: esp32.local:6053

"

OK where did you get your BMP280 from? if it was also purple and listed as a CCS811 then you need this;

sensor:
  - platform: ccs811
    eco2:
      name: "Boiler CO2 Value"
    tvoc:
      name: "Boiler Total Volatile Organic Compound"
    address: 0x5A
    update_interval: 30s

It is common for folks to look for the cheapest bmp280 on the bay of e and end up with this! I did.

Obviously change the named values to those that suit you.

This one


Switch over the SCL and SDA leads with my config and post the results

Also from where did you buy that?

I’m using the GPIO ports from your image. d22(SCL) and d21(SDA).
Bought it online.

Sorry need specific link to where as there are so many retailers and manufactures. I may then source the data sheet.
Swap them anyway.

Swapped with no result. Bought it here ne Brazil. Can’t give you specifics.

Swapped the pins and changed to every address possible and nothing…any help? There was only one try that I had a promising result. But no luck

found this with a little duckfoo:

https://startingelectronics.org/pinout/GY-BMP280-pressure-sensor-module/

Have a read through it all the way to the bottom and check your connections against it.

I’m almost giving up. Had 0 luck until now. tried putting 3V on the pins like the link said. and nothing.

Since we’re running out of ideas, here’s what I found.

First, I had some difficulty getting BMP280 running, on a D1 Mini. It seems to want to physically power cycle - that is, it will vanish on a soft reboot. The only way I can be 100% sure it will come back up is to kill the power, wait a few seconds, and then bring it back. So if you are editing yamls and recompiling, relying on the soft reboot, that may be your issue.

Second, I’d like you to try on a different device. Perhaps you are using an original NodeMCU, perhaps not, but in my experience not all boards are manufactured equally well, and sometimes you just have a bad board.

1 Like

GOT IT TO WORK!!!

Instead of using a nodemcu 32 I used a Esp01(the mini esp8266). The sensor is now active. Now I need to make a Switch to control my AC unit. I’m going to use another Esp01 to do so. But the relay i have is very basic. It only has a 5v, GND and a In port. So I needed to make a GPIO from the Esp01 to change between high(1) to low(0). That way when the GPIO is high the relay is off and when its low it turns the relay on. I tried using a simple code:
"
switch:

  • platform: gpio
    pin:
    number: 0
    inverted: no
    "
    Its not activating the relay…any ideias?

does anyone have the code that works the BMP280 for esphome?
I can’t get it to work.
I’ve done everything.
I used ESP01, WEMOS, ESP32,8266 and nothing successful.

=(

I found this thread when i!ve tried to install BMP280 to esphome. And I was succesful!

Here is my configuration:

i2c:
  sda: 4
  scl: 5
  scan: True
  id: bus_a

sensor:
  - platform: bmp280
    temperature:
      name: "BMP280 Temperature"
      oversampling: 16x
    pressure:
      name: "BMP280 Pressure"
    address: 0x76
    update_interval: 60s

I use esp8266 and did not use CSB and SDO pins on BMP sensor. :wink:

2 Likes

@DeeBeeKay - ran into a similar problem and the hard reset trick appears to work for me on a D1mini. I have also noticed that recompiling and soft reboot appeared to work better wirelessly rather than when through the UART of the host! Unable to ascertain whether this is causality or correlation!

Thanks for your input! Been pulling my hair apart since yesterday with these tantrums! :smiley:

That kind of sucks, though, because it means we can’t really rely on BMP280 for things that matter. It’s probably why that sensor is so cheap.

Am not sure its even linked to BMP280 particularly my D1 only had a AM312 and a BH1750. Will be adding the AM2302 to the same soon.

Hey Everybody,
I am new on home assisstant and your discussion help me to set up my first sensors.
First I believe I buy a bme280 with humidity, temperature and pressure sensors, and in fact I buy a bmp280 with only cheap temperature and pressure sensors.
For the board I buy esp32 wroom 32, which correspond to nodemcu-32s in esphome.
Here, after a lot try and faill, a working configuration:

esphome:
  name: _a_name_

esp32:
  board: nodemcu-32s
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "_secret_"

ota:
  password: "_secret_"

wifi:
  ssid: _secret_
  password: _secret_

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "_secret_"
    password: "_secret"

captive_portal:

i2c:
  sda: GPIO21
  scl: GPIO22
  scan: True
  id: bus_a

sensor:
  - platform: bmp280
    pressure:
      name: "Pressure"
    temperature:
      name: "Temperature"
    address: 0x76
    update_interval: 30s

I hope it’s will help some one.

2 Likes

Thank you! After many failed attempts and a lot of searching this worked for me as well!!!