(Very opinionated) approach to get 433mhz switches running with homebridge on raspberry pi. I had no luck with homebridge-rcswitch or homebridge-rcswitch-gpionem so I decided to roll my own based on scripts.
npm install -g homebridge-script2
cd ~
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd ~
git clone --recursive https://github.com/ninjablocks/433Utils
cd 433Utils/RPi_utils
make
git clone https://github.com/tobilarscheid/homebridge-433mhz-switches
Add something like the following to your homebridge config:
{
"accessory": "Script2",
"name": "Lichterkette",
"on": "/home/pi/homebridge-433mhz-switches/send.sh <on code of your switch, e.g. 4194325>",
"off": "/home/pi/433Utils/homebridge-433mhz-switches/send.sh <off code of your switch, e.g. 4194324>"
}