RPi RF Receiver addon

This is great! :slight_smile:

I plan on trying it really soon. My hope is to use it to pick up RF codes when my wife uses the remote control to control our outlets (currently when she uses the remote the sockets get out of sync with home assistant).
It would be great to hear from people using it like this.

I would have to install and get my head around MQTT first though… :frowning:

So if you’re starting into this mission soon, I suggest to avoid using HassOS since it breaks this addon due to GPIO issues at the moment.

I use it exactly for the same scenario (Elro remotes) but I also replaced the RF outlets by some Sonoff S20 (own custom firmware) / TP Link HS100 since switching via RF was too unreliable for my linking.

Automations are pretty simple, e.g.:

  - alias: 'Elro remote button A ON'
    initial_state: 'on'
    trigger:
      platform: mqtt
      topic: "sensors/rf/receiver"   #MQTT topic defined by RPi RF Receiver addon
      payload: '1394001'   #Elro remote message
    action:
      - service: switch.turn_on
        entity_id: switch.outlet_s20_1
1 Like

Ah that’s really clever! Effectively you turned the RF remote into a MQTT connected set of buttons!

I also found RF not being so great (for reliability), to get around this I plan on just repeating the command twice whenever I call it.

I plan on staying on normal Hass for a while longer yet anyway until at least most of the custom add-ons are working with it.

Thanks for the example! :smiley:

I use OpenMQTTGateway running off NodeMcu. And It works independent from HA device. So no matter changes in HA etc it will work as long as MQTT works.

So you use the NodeMcu instead of this addon to interface with RF devices?

Yes, and it’s surprisingly responsive. I’m happy with it. OpenMQTT firmware has also status messages so You can automate it to let you know if it crashed or is unresponsive.

All GPIO related issues for HassOS were closed with this commit, looking forward for next HassOS release.

Hi. Is Gpio fixed now?

Hi @adas4190, I’m currently using HassOS 1.9 and it’s still broken.

Maybe this is a dumb question, but how do I copy the “rpi-rf_receive.py” file into my share directory? I can’t seem to find the file, unless you mean copying directly from the github page

I copied it from GitHub as well.

Was this addon fixed on hassos please?

Still does not work for me, HassOS 1.10 - 32 bit on RPI3

ugh, still broken? Not wanting to start this venture with this addon if it doesnt even work anymore.

Tried it this morning and still not working.

1 Like

Any tips on increasing the receiver range?

I have this and added a spiral spring antenna and the receiver range is about 2 rooms distance.

I raised another issue on the HassOS GitHub repo since all others were closed.

1 Like

Traceback (most recent call last):
File “/share/rpi-rf_receive.py”, line 32, in
rfdevice.enable_rx()
File “/data/venv/lib/python3.6/site-packages/rpi_rf/rpi_rf.py”, line 168, in enable_rx
GPIO.add_event_detect(self.gpio, GPIO.BOTH)
RuntimeError: Failed to add edge detection

Still problem with GPIO on HASSio ? commit
Is it going to be fixed?
Any other options to use rpi_rf?

Still does not work for me, HassOS 1.11 - 32 bit on RPI3

Is this just for 433mhz or would it also work for 868mhz if I had a compatible transmitter/receiver?