Lightwave RF

LightWaveRF produce a variety of RF plugs and relays which can be controlled via OOK (on-off-keying RF. The LightWaveRF OOK protocol is also compatible with some lower cost un-branded OOK learning receivers relays.

While not strictly open-source the LightWaveRF OOK protocol has been reverse engineered allowing plugs to be easily controlled from an Arduino / Raspberry Pi. There is an active LightWaveRF online community. Using off-the shelf hardware like this is a safer way to control lights, heaters and appliances around a home than getting our hands dirty with dangerously high voltages. These plugs and relays can be used to control anything from lights to immersion heaters, most LightWaveRF plugs/relays will switch up to 13A / 3kW.

The latest emonSD emonPi / emonBase image includes a LightWaveRF MQTT service running by default. To use this feature you will need to add an OOK transmitter to the emonPi.



An OOK transmitter can easily be added to the emonPi.  

See emonPi Technical Hardware Wiki for details on how to retrofit an OOK TX module to an existing emonPi.

emonPi LightWaveRF


The latest emonSD emonPi / emonBase image includes a LightWaveRF MQTT service running by default. A plug can be controlled by publishing to the lwrf/ MQTT topic:

E.g Publishing 1 1 to lwrf/ topic will switch on plug 1 while publishing 1 0 switches off plug 1.

Plugs can be paired with the emonPi in the usual LightwaveRF way: either press and hold pairing button (if button exists) or turn on the plug from main power and send ‘on’ command. Most LightWaveRF plugs allow multiple (up to 6) control devices to be paired.

To reset the plug and delete all pairing: firstly, press and hold the pairing button to enter pairing mode; secondly, press and hold again to erase memory; lastly, press (but don’t hold) once to confirm. For plugs without a pairing button turn on the plug from the mains power then in the first few seconds press the ‘all off’ button on the RF remote.

LightWaveRF Pi - MQTT Service GitHub

Note: The OOK RF protocol by its simplistic nature is not particularly secure, we would not recommend controlling anything you do not mind getting accidently switched. For critical switching applications and when more control (e.g. state feedback) is required we recomend using MQTT WiFi Relay Thermostat.