I2C: Error during setup of component bme280

Hello,

I appreciate your help, because my most important sensor (exterior temp, humidity, pressure) is now broken after a recent update, so it used to work. I have redone the config procedure from scratch twice, and I changed the sensor for a new one, but it’s still not working since one of the previous Hassio upgrades.

This is on a Home assistant OS 6.5 on a raspberry Pi 3, now to the latest upgrade core-2021.10.5, and the sensor is on the I2C pins of the RPI3.

Here’s the info I could collect, please tell me if you need more info, I’ll get it for you.

ext

notif

message

Logger: homeassistant.setup
Source: components/bme280/init.py:90
First occurred: October 20, 2021, 10:46:43 PM (1 occurrences)
Last logged: October 20, 2021, 10:46:43 PM

Error during setup of component bme280
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 254, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/bme280/init.py”, line 90, in async_setup
bme280_config = config[DOMAIN]
KeyError: ‘bme280’

The sensor is connected on the hardware I2C pins, through twisted pairs of wires (ground signal twist)

I also made sure the home assistant can see I2C ports in hardware:

console

I don’t really know what else to look for, considering it was working before the upgrades, if you could point me in the right direction that would be very appreciated, thank you!

I restored a previous backup and it works on core-2021.6.3 but not on core-2021.10.6.

Can you suggest what I should check first? thanks.

Hi all. I am having the exact same problem here. I’m on core-2021.11.4 and the bme280 component doesn’t load:

Logger: homeassistant.setup
Source: components/bme280/init.py:90
First occurred: 12:47:06 (1 occurrences)
Last logged: 12:47:06

Error during setup of component bme280
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 254, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/bme280/init.py”, line 90, in async_setup
bme280_config = config[DOMAIN]
KeyError: ‘bme280’

Any pointers to where I could start to look? I’m using the exact same setup as documented here (with corrected sensor address 0x76 of course)

Edit just to confirm: I followed the i2c setup instructions from here and it seems i2c is correctly initialized
image