rxseger / homebridge-bme280

BME280 temperature/humidity/pressure sensor bridge for Homebridge: https://github.com/nfarina/homebridge
MIT License
15 stars 14 forks source link

BME280 initialization failed: Error: EACCES: permission denied, open '/dev/i2c-1' #15

Closed Travisco29 closed 4 years ago

Travisco29 commented 4 years ago

Keep getting this with multiple bme280 plugins. Help?

Travisco29 commented 4 years ago

Never mind, i fixed it. every time on rpi startup, run sudo chgrp i2c /dev/i2c-1 sudo chmod 666 /dev/i2c-1

lbilharz commented 3 years ago

every time on rpi startup, run

could you tell me why this needs to run after each boot?

(I'm asking as I have both a Pi Zero and a Pi 4, and only the latter needs it after reboot. For the Zero it was sufficient to change the permissions once and BME280 is initialising fine after rebooting.)