openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
820 stars 251 forks source link

Support I2C devices in menu #1634

Closed mstormi closed 2 weeks ago

mstormi commented 2 years ago

WIP

communication with I2C devices requires to enable the bus => This is needed for various sensors and e.g. for the Waveshare UPS HAT.

dtparam=i2c_arm=on in config.txt modprobe i2c-dev (eventually put into /etc/modules)

mknet commented 1 year ago

Hey @mstormi,

currently, I'm struggling to activate i2c to get my RaspBee2 running. I tried it also with a naked Raspberry PI OS Lite (bullseye as well) and it worked. Do you have and hint what I have to do aport from setting dtparam=i2c_arm=on in the config.txt?

Thanks for hint and regards Marcel

mknet commented 1 year ago

I installed raspi-config myself and activated IC2 via the raspi-config UI. Not a charm but at least it works. :)

mstormi commented 1 year ago

I installed raspi-config myself and activated IC2 via the raspi-config UI. Not a charm but at least it works. :)

Please figure out what raspi-config changed about config.txt to help with making that selectable in openHABian via menu. That's what this issue is about.

mstormi commented 2 weeks ago

dtparam=i2c_arm=on is now standard

Reopen if needed