[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
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.
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.
@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!
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: