ITEAD Sonoff switches and sockets - cheap ESP8266 Wifi+MQTT hardware

Instead of asking for help I will contribute.

After I have spent 3 evenings installing OpenHab I found it useful to post my own guide, and highlight parts I’ve spent most of my time on:

Project. Sonoff S20 - OpenHab2 - Siri integration

  1. Openhabianpi is installed on Raspberry Pi as per instructions (easy, no troubles, instruction is clear)
  2. Install drivers for USB-to-Pin adapter (CP2102 in my case)
  3. Flash Sonoff S20 as described here
  4. Install Mosquitto
  5. Set-up MQTT on Sonoff as per instruction
  • Note ClientID should be different from one you give in 5.
  • Host should be external IP address (to check this, do following from terminal):
ping openhabianpi
  1. Install Homekit addon, but change port number to 51826 as suggested here
  2. Install Openhab cloud