There are countless posts on the forum about problems with integrations that require I2C or 1wire.
The main reason for the problems is the complicated procedure of enabling I2C and 1Wire.
I propose adding commands: ha host i2c - should return information about the current status of I2C ha host i2c --enable - should enable I2C ha host i2c --disable - should disable I2C ha host 1wire - should return information about the current status of 1wire ha host 1wire --enable - should enable 1wire ha host 1wire --disable - should disable wire
I imagine this would be quite difficult to implement. By design, HA runs in a series of docker containers and is isolated from the underlying hardware or operating system - other than via the volumes and ports exposed during container creation. raspi-config requires root level access because it modifies /boot/config.txt.
I guess an addon could mount /boot/config.txt but I doubt it would have enough privilege to modify it.
I can try to add commands to CLI, add API to the supervisor, but I have no knowledge and experience with OS development, so I don’t know what job and where must be done to add support for this in OS.
Besides that, I am using Home Assistant with Raspberry Pi 3 and 4, so I don’t know what other hardware supports I2C and 1Wire (there should be a check somewhere if those commands are supported on specific hardware)
@Misiu
hi does it work on (DS2482S) via i2c? and PI4
I read that gpio PI4 is not on 1 wire reliable
I am looking for a reliable solution on PI4 via HA about 20 devices DS2406/2408 ?