Sensor BME280, error in Hassio

I’ve followed some instructions around, i.e.created files:

with entry:


And /etc/modules-load.d/rpi-i2c.conf’’ with:


Also with ‘/config/configuration.yaml’ with:

# Temperature/humidity/pressure 
  - platform: bme280
    name: THP sensor
    i2c_address: 0x77
    operation_mode: 2  # forced mode
    time_standby: 5
    oversampling_temperature: 4
    oversampling_pressure: 4
    oversampling_humidity: 4
    delta_temperature: -0.5
      - temperature
      - humidity
      - pressure
    scan_interval: 40

But I’m getting errors:

Error while setting up platform bme280
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/smbus/", line 81, in open
    self._fd =, os.O_RDWR, 0)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/bme280/", line 86, in async_setup_platform
    bus = smbus.SMBus(config.get(CONF_I2C_BUS))
  File "/usr/local/lib/python3.7/site-packages/smbus/", line 56, in __init__
  File "/usr/local/lib/python3.7/site-packages/smbus/", line 83, in open
    raise IOError(e.errno)
OSError: 2

Not sure what I should do next.

As I could not find solution - then I decided to use this sensor ‘BME280’ via ‘Sonoff Basic’ module.

You mean by the integration?

Yes, ‘Integration’ could be one of the options…

pomożesz? :slight_smile:

Yes, I have ‘BME280’ connected with wires to ‘Sonoff Basic’ module.
‘Sonoff Basic’ is communicating with HA via Wi-Fi…
Detailed instruction is HERE

What help do you need?

sonoff basic

I just want to have my BME280 working again wired to RaspberryPi3 GPIO. Few months ago i had my homeassistant on raspbian and there were no problems… Is it possible to set this up via GPIO again under HomeassistantOS?

I have HA on Intel NUC installed. My BE280 is connected to ‘Sonoff’ Wi-Fi module… I have not tested direct (wired) connection of BME 280 to Raspberry or other device…