terça-feira, 21 de dezembro de 2021

How to enable i2c on the Pi4 board Running HassOS 3.8 in HASS.IO

0 comentários

 I2c not working on the Pi4 - Home Assistant OS - Home Assistant Community (home-assistant.io)


1) remove the sd card from the pi and plug it into a pc running Linux

2) most likely linux will not mount the partition "hassos-boot" because it is FAT

a) open a terminal window

b) type > blkid

c) in the resulting output, you'll see "LABEL="hassos-boot", note the location, mine is /dev/mmcblk0p1

d) type > sudo mkdir /mnt/msdos

e) type > sudo mount -t vfat /dev/mmcblk0p1 /mnt/msdos

d) now you can open the file /mnt/msdos/config.txt

e) uncomment the line "dtparam=i2c_arm=on"

3) If the hassos-overlay partition mounted, (if not, do step 2 for this partition)

a) open the file: hassos-overlay\etc\modules-load.d\rpi-i2c.conf

b) ensure it has only these 2 lines: (mine already did, likely from when trying "import usb" method)

i2c-bcm2708

i2c-dev

4) replace the sdcard back into the pi and start normally

a) the i2c bus should be functioning now

Continue reading →

Home Assistant

0 comentários

 Link para o cooler adamoutler/HassOSArgonOneAddon: A Home Assistant Addon for Argon One Fan Control. (github.com)


[add-on] HassOS I2C Configurator


HassOS I2C Configurator

image
This project enables the Raspberry Pi I2C bus from an addon. You can connect an SDCard and up to two hard disks or USB drives, which are detected as sda or sdb, and they will all have I2C enabled when you click start.

About

This project is a part of my HassOS Configurator project. The goal of this add-on, similar to root apps on Android, is to make a mole-hill out of a mountain.

Installation

Within Home Assistant, click Supervisor-> Add-on Store -> … button (in top left)-> Repositories. Add this repository.



Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.



Click “HassOS I2C Configurator”, then install.

Continue reading →