Control RF outlets with MQTT, a Raspberry Pi and a 433MHz transmitter.
- wiringPi
- rc-switch
- mosquitto
- a 433MHz transmitter
- Clone this repo.
- Clone the rc-switch repository and extract the folder (should be named rc-switch-master) into the folder of this repo.
- Read through
mqttexec.sh
andsend.cpp
and edit the parameters to fit your needs. - Run
make
- Run the script
./mqttexec
If you want the script to start on boot then follow these instructions
- Place
mqttexec.service
in/etc/systemd/system
- Reload SystemD
sudo systemctl daemon-reload
- Enable the service
sudo systemctl enable mqttexec.service
- Reboot or run
sudo systemctl start mqttexec.service
- Confirm that it is running with
sudo systemctl status mqttexec