markvader / ha-rpi_rf

Home Assistant Raspberry Pi GPIO RF Integration
Apache License 2.0
31 stars 5 forks source link

running rpi_rf from a remote raspberry pi #33

Closed JatinJani closed 2 years ago

JatinJani commented 2 years ago

Hello, Just wanted to find out if this is a possibility :

Home Assistant running on a PC or as a VM with HACS installed + the RPI_RF integration as per your instructions via HACS.

Raspberry PI running Raspberry Pi OS Lite with GPIO RF Modules & also the RPI_RF ( basically with the ability to sniff / send commands to 433mhz devices via command line ).

Is there any way to direct the rpi_rf setup in the configuration.yaml to send commands to the remote raspberry pi ?

Example idea : #############################################

Example configuration.yaml entry

switch:

Hope all this is making sense ?

The crux of the idea is to use Home Assistant either physical or virtualised and then be able to utilise a remote raspberry pi with GPIO RF modules to send commands to the RF devices / sockets etc thus making it a in-house solution instead of any third party RF Gateway / Vendors.

Many thanks.

markvader commented 2 years ago

Hi @JatinJani Sorry I haven't commented before now, I've been trying to think of the possible ways to make this work

I had a look at https://www.home-assistant.io/integrations/remote_rpi_gpio/ however I cant find an easy way to implement this for your use case. You would need to heavily modify the switch component code in that project (to enable sending on/off codes, signal repetitions, pulselength etc), and then set up your remote RPI and add additional libraries to control 433mhz devices.

If its something you might be interested in going down there's a well documented project here using rf switches and pigpio (the component library used by remote_rpi_gpio) without the home assistant tie-in

Do you use esphome? you might find that using a ESP device with a transmitter board a more straightforward option, especially for remote devices.

The main reason I continue to use this custom component (ha-rpi_rf) rather than esphome is I want to utilise the gpio pins on my main home assistant install as it is in the perfect location for my usage, however the availability of GPIO control within esphome is why the GPIO related integrations were deprecated from the main project.

Hope that helps

JatinJani commented 2 years ago

Hello Mark,

Thanks for your response and explanation, It does make sense. Much appreciated.