Need a tip or way to get homeassistant working with rpi_gpio switches working

Basically been running Home Assistant 0.45.1 for a while without a glitch… for some reason upgrading to 0.55 broke my devices. The rpi_gpio switches disappeared.

little background… used to run hassbian with 0.45.1… when I update using SUDO APT-GET UPDATE && SUDO APT-GET UPGRADE the OS; it would break the whole system. The PI3 would not even boot… my work around is install hassbian from scratch and just update the HA part using

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit

Everything works until I stumbled around 0.55. that’s when everything got weird. The rpi_gpio switches disappear. log said “RuntimeError: No access to /dev/mem. Try running as root!” … of course googling around gave some work around but none of them work… I updated my OS using SUDO APT-GET UPDATE && SUDO APT-GET UPGRADE thinking updated HA need updated hassbian… nope I was wrong

I tried starting from scratch using the new HASSBIAN… that didn’t work… I did start again from scratch using hassbian then run the AIO installer… that didn’t work… I keep ending up with working HA but my rpi_rf switches are not showing. log shows same error

“RuntimeError: No access to /dev/mem. Try running as root!”

tried running

sudo chown root.gpio /dev/mem
sudo chmod g+rw /dev/mem

sudo usermod -a -G hass,gpio hass
sudo usermod -a -G homeassistant,gpio homeassistant
sudo usermod -a -G pi,gpio pi

Tried the new Raspbian Stretch Lite and run the AIO installer that one would not even complete the installation…

so now I looked around and I found a backup of my working image back in 06-13-17… thinking yes this is the answer to my prayer… nope … that one is now also broken… I get the “RuntimeError: No access to /dev/mem. Try running as root!”… which I find weird because when I backed up my Pi back in 06-13-17 (0.45.1) everything is working thats why I backed it up in case something like this happen.

now I Just need some guide to get a working HA with working rpi_gpio switches… maybe there’s another way i missed trying?? any suggestion would be great

thank you guys

To use the gpio, the user that is running the homeassistant service should be member of the gpio group

Youre username is homeassistant,use the following command:

$ sudo usermod -a -G gpio homeassistant

To check what groups a the user is member of:

$ sudo groups homeassistant

runned

sudo groups homeassistant

output is

homeassistant video spi i2c gpio

do you guys know where i can download the old hassbian that is under jessie ?? all i see now is under stretch… i preffer the old one maybe ill have good luck with it