In this video I am showing how to use the Sonoff wifi switch (from itead.cc) and flash the ESP Easy firmware on the decide and control it from OpenHAB.
You can find the Node Red flow here:
http://flows.nodered.org/flow/5c8a19f...
Sonoff wiring explained: https://drive.google.com/file/d/1fTCD...