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)