Background
Ok so I have setup openhab2 on my Raspberry PI2 as a server running on Rasbpian Jessie. One component I have added is a cheap set of 433Mhz switchable power sockets (from Unitec). I added the 433Mhz transmitter to the GPIO pins on the Pi (system is only unidirectional, so no status information is sent from the sockets) and installed/compiled WiringPi from this great source.
Setup
Using the sniffer I found the RF codes (see openhab items below) for the sockets I had.I created a BASH shell file called rf_send.sh in the same directory as
Integrating the code to fire the RF commands to the sockets for on/off via Openhab 2 as follows:
Default.Items File:
// Unitec 433Mhz Socket Switches
Switch U433_Switch_Socket_1 "Door Light"
Switch U433_Switch_Socket_2 "TV Light"
Switch U433_Switch_Socket_3 "Sofa Light"
Note
Comments
Post a Comment