-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
Feedback
Title: Inconsistent Instructions for Enabling I2C in Home Assistant Documentation
Bug Description:
The instructions provided in the sections Enable I2C with an SD card reader and Enable I2C via Home Assistant Operating System Terminal are inconsistent. The steps outlined in the second section are incorrect, leading to the failure of I2C functionality.
Steps to Reproduce:
Open the documentation link (accessed on 15.05.2025).
Navigate to the troubleshooting section to confirm that I2C is not enabled.
Follow the instructions in the section Enable I2C via Home Assistant Operating System Terminal.
mkdir /tmp/mnt
mount /dev/sda1 /tmp/mnt
mkdir -p /tmp/mnt/modules
echo -ne i2c-dev>/tmp/mnt/modules/rpi-i2c.conf
echo dtparam=i2c_vc=on >> /tmp/mnt/config.txt
echo dtparam=i2c_arm=on >> /tmp/mnt/config.txt
sync
reboot
Execute the provided steps.
Check the /dev
directory for I2C files.
Actual Result:
No i2c
files are present in the /dev
directory.
Expected Result:
The presence of the i2c-0
file in the /dev
directory.
Proposed Fix:
To correctly enable I2C, please follow these steps and mind the CONFIG
directory.
mkdir /tmp/mnt
mount /dev/sda1 /tmp/mnt
mkdir -p /tmp/mnt/CONFIG/modules
echo -ne i2c-dev > /tmp/mnt/CONFIG/modules/rpi-i2c.conf
echo dtparam=i2c_vc=on >> /tmp/mnt/config.txt
echo dtparam=i2c_arm=on >> /tmp/mnt/config.txt
sync
reboot
``
### URL
https://www.home-assistant.io/common-tasks/os/
### Version
2025.5.1
### Additional information
_No response_