Trouble with Raspberry Pi RF

I am trying to setup some cheap rf outlets. I installed rpi-rf and added the switch to my yaml but I am getting an error in my log file and my switches don’t show up on my frontend. Here is the content of my log file:

16-10-05 00:23:55 homeassistant.components.switch: Error while setting up platform rpi_rf
Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 107, in _setup_platform
    discovery_info)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/switch/rpi_rf.py", line 49, in setup_platform
    rfdevice.enable_tx()
  File "/home/hass/.homeassistant/deps/rpi_rf/rpi_rf.py", line 77, in enable_tx
    GPIO.setup(self.gpio, GPIO.OUT)
RuntimeError: No access to /dev/mem.  Try running as root!

Any ideas what might be causing this? It is Greek to me…

Fixed. Just needed to: sudo adduser hass gpio

1 Like