Skip to content

Inconsistent and Wrong Instructions for Enabling I2C in Home Assistant Documentation #39048

@janSpub

Description

@janSpub

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_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy