simple python program that sends codes to brennstuhl 433mhz power plugs. The programm is controlled via an Restful API.
sudo ./install.sh
returns the current state.
{ "state":"1" } # ON
{ "state":"0" } # OFF
sets the new state with the following body:
{ "state":"1" } # ON
{ "state":"0" } # OFF
# | on | off |
---|---|---|
A | 1361 | 1364 |
B | 4433 | 4436 |
C | 5201 | 5204 |
D | 5393 | 5396 |
Big thanks to Suat Özgür and Micha LaQua for the rpi-rf project.