Error finding BMP280

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!!!