-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Adds docs for enabling I2C on Hass.io #8144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| --- | ||
| layout: page | ||
| title: "Enable HassOS i2c" | ||
| description: "Instructions on how to enable I2C on a Raspberry PI for Hass.io." | ||
| date: 2018-01-11 20:08 | ||
| sidebar: true | ||
| comments: false | ||
| sharing: true | ||
| footer: true | ||
| --- | ||
|
|
||
| Hass.io is a managed environment, which means you can't use existing methods to enable the I2C bus on a Raspberry Pi. | ||
|
|
||
| If you're attempting to add an external sensor, you will have to [enable the I2C interface in the Hass.io configuration](https://github.com/home-assistant/hassos/blob/dev/Documentation/boards/raspberrypi.md#i2c) using a USB stick. | ||
|
|
||
| ## {% linkable_title Step by step instructions %} | ||
|
|
||
| You will need: | ||
|
|
||
| - USB drive | ||
| - A way to add files to the USB drive | ||
| - A way to connect the drive to your Raspberry Pi | ||
|
|
||
| ### {% linkable_title Step 1 - Prepare the USB drive %} | ||
|
|
||
| Connect the USB drive to a device capable of adding and editing files to the USB drive. | ||
|
|
||
| Format a USB stick with FAT32/EXT4/NTFS and name the drive `CONFIG` (uppercase). | ||
|
|
||
| ### {% linkable_title Step 2 - Add files to enable I2C %} | ||
|
|
||
| - In the root of the USB drive add a folder called `/modules`. | ||
| - Inside that folder add a text file called `rpi-i2c.conf` with the following contents: | ||
| ``` | ||
| i2c-bcm2708 | ||
| i2c-dev | ||
| ``` | ||
| - In the root of the USB drive add a file called `config.txt` with the following contents: | ||
| ``` | ||
| dtparam=i2c1=on | ||
| dtparam=i2c_arm=on | ||
| ``` | ||
|
|
||
| ### {% linkable_title Step 3 - Load the new USB config %} | ||
|
|
||
| - Insert the USB drive into your Raspberry PI. | ||
| - Now go to your Home Assistant web interface, in the sidebar click **Hass.io** > **System**. | ||
| - Now click `Import from USB`. | ||
| - This will restart your Hass.io instance, and load the new USB configuration. | ||
|
|
||
| When the service has restarted, you will have a working I2C interface. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.