This plugin allows you to send 433MHz RF commands via HomeKit. I had no luck getting anything other than rpi-rf to communicate with my hardware. There are other plugins though, try those if this doesn't work for you.
- Install Homebridge using the official instructions.
- Install pip using
sudo apt install python3-dev python3-pip.
- Install rpi-rf using
sudo pip3 install rpi-rf.
- Install this plugin using
sudo npm install -g homebridge-rpi-rf-switch --unsafe-perm.
- Update your configuration file. See configuration sample below.
config.json accordingly. Configuration sample:
|platform||Must always be
|name||For logging purposes.||No|
|gpio||The BCM number of the pin your RF transmitter is connected to. (Default: 17)||No|
|repeat||RF code repeat cycles. (Default: 10)||No|
|devices||Array of switch config (multiple switches supported).||Yes|
||- name||Name of your device.||Yes|
||- on_code||RF code to turn on your device.||Yes|
||- off_code||RF code to turn off your device.||Yes|
||- pulselength||RF code pulse length. (Default: 350)||No|
||- protocol||RF code protocol. (Default: 1)||No|
||- codelength||RF code length. (Default: 24)||No|
Note on Getting RF Codes
I've had the best luck with
RFSniffer from the 433Utils project. Your mileage may vary.