Replies: 7 comments
-
It looks like a HW issue with your i2c bus or address. Did you test access to start with (i2cdetect as explained in a previous discussion to confirm device presence and then i2set/get to test access) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What shell is this ? HAOS ssh addon I guess ? |
Beta Was this translation helpful? Give feedback.
-
YES. Sorry I didn't specify it. |
Beta Was this translation helpful? Give feedback.
-
The ssh addon runs in a dedicated docker container (like any addon or homeassistant) on top of HAOS and has limited rights and visibility on the whole system (/config directory, ha tools, ...) In order to access the homeassistant container, you need first ssh access to HAOS, see Once logged in HAOS, you can see all docker containers by running a
Within that container, you should now have access rights to /dev/i2c-xx and be able to run above i2cdetect command |
Beta Was this translation helpful? Give feedback.
-
I tried, up to a certain point, with the procedure you suggested but I stopped for fear of damaging my installation (I'm not a programmer but just a circuit design technician). |
Beta Was this translation helpful? Give feedback.
-
Thanks, risks are very limited here as you are only enabling ssh to the host and starting a shell within a container and observe internals. |
Beta Was this translation helpful? Give feedback.
-
I've been receiving this message for some time and I can't understand or resolve it.
My H.A. it is updated to the latest version, runs on an rpi4.
Your integration has always worked on three 23017 chips although sometimes I lose some entities and have to reboot.
Registratore: root
Fonte: custom_components/mcp23017/init.py:258
Integrazione: MCP23017 Digital I/O Expander (documentazione, problemi)
Prima occorrenza: 15:28:57 (1 occorrenze)
Ultima registrazione: 15:28:57
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/config/custom_components/mcp23017/init.py", line 385, in run
input_state = input_state & 0x00FF | (self[GPIOB] << 8)
~~~~^^^^^^^
File "/config/custom_components/mcp23017/init.py", line 258, in getitem
data = self._bus.read_byte_data(self._address, register)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/smbus2/smbus2.py", line 433, in read_byte_data
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error >
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions