HASS.IO + Pi RF Switch

Hi,

im using a fresh hass.io installation. And just copied the example configuration from the Pi RF Switch component into my configuration.yaml and adjusted the GPIO pin.

switch:
  - platform: rpi_rf
    gpio: 4
    switches:
      bedroom_light:
        code_on: 1234567
        code_off: 1234568

But after restarting via “Configuration -> General -> Restart” no switch shows up in my overview. Am i missing something?

Thanks,
Jens

this is what I have. Maybe try gpio 17. Also, is it very easy to put the header pins in the wrong place.

  - platform: rpi_rf
    gpio: 17
    switches:
      switch2:
        protocol: 1
        pulselength: 214
        code_on: 13451399
        code_off: 13451398
        signal_repetitions: 80

And besides updating my switch section in configuration.yaml and restarting HA there is nothing i need to do to get a switch shown in the overview?

This seems to be a bug with the hass.io installation.

Log Details (ERROR)
Thu Sep 13 2018 17:26:54 GMT+0200 (Central European Summer Time)

Error while setting up platform rpi_rf
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/switch/rpi_rf.py”, line 50, in setup_platform
import rpi_rf
File “/usr/local/lib/python3.6/site-packages/rpi_rf/init.py”, line 2, in
from .rpi_rf import RFDevice
File “/usr/local/lib/python3.6/site-packages/rpi_rf/rpi_rf.py”, line 9, in
from RPi import GPIO
RuntimeError: This module can only be run on a Raspberry Pi!

Im running on an RPi3 B+ 64 Bit.

Same problem here.
This is my second Hassio, the first worked several months without problems with RF. After I installed more sensors in the GPIO, it locked forever.
Now I’m trying to install rpi_rf and I’m getting this Runtime error too.
Trying to remember the library I used to fix this problem in the first Hassio…

Working in HASS.io in 2019?