I have been using home assistant since the releae of “HassOS Release-1 build 2 (RC)”.
I’m using the new rpi 3 b+.
When I configure the sensor htu21d I obtained tyhe following errors:
Error while setting up platform htu21d Traceback (most recent call last):
_ File “/usr/lib/python3.6/site-packages/smbus/smbus.py”, line 81, in open_
_ self.fd = os.open(path, 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/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 129, in async_setup_platform
_ SLOW_SETUP_MAX_WAIT, loop=hass.loop)_
_ File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for_
_ return fut.result()_
_ File “/usr/lib/python3.6/site-packages/homeassistant/components/sensor/htu21d.py”, line 53, in async_setup_platform_
_ bus = smbus.SMBus(config.get(CONF_I2C_BUS))_
_ File “/usr/lib/python3.6/site-packages/smbus/smbus.py”, line 56, in init_
_ self.open(bus)_
_ File “/usr/lib/python3.6/site-packages/smbus/smbus.py”, line 83, in open_
_ raise IOError(e.errno)_ OSError: 2"
Could you help me in understanding what is wrong?
I want to be just an user of this great software, I don’t know anything about programming.
I got the same error using HassOS 1.7, anyone manage to make it work?
ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform htu21d
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/smbus/smbus.py”, line 81, in open
self._fd = os.open(path, 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/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/htu21d.py”, line 53, in async_setup_platform
bus = smbus.SMBus(config.get(CONF_I2C_BUS))
File “/usr/local/lib/python3.6/site-packages/smbus/smbus.py”, line 56, in init
self.open(bus)
File “/usr/local/lib/python3.6/site-packages/smbus/smbus.py”, line 83, in open
raise IOError(e.errno)