Solderless SonOff Basic working in Cayenne Over The Air

This is a simple (?) guide for solder-noobs (like me)
There is no need to open and break the seal of a SonOff with the following steps:

  1. Follow SonOTA; Flashing Itead Sonoff devices with custom firmware via original OTA mechanism.
  2. For more info see Sonoff-Tasmota
  3. The Sonoff can now be accessed with a browser (if you know the IP address of the SonOff)
  4. Create a sketch that combines Cayenne, MQTT, ESP8266 and ArduinoOTA requirements
  5. Verify this sketch (if possibe with a more accessible ESP8266 device)
  6. Create a hex-file of this sketch in the Arduino IDE’s “sketch” menu with Export compiled binary (the endresult can be found in the same sketch folder)
  7. Open in browser the SonOff IP address
    6 .Upgrade the SonOff with this binary
  8. Continue in Arduino IDE; sketch upload via IP-port, fine-tune sketch if desired

TIPS Do not use DHCP address reservation (SonOff will not come life again straight away)

I just recently found out that an ESP8266 has OTA and I love it. The attached sketch is a combination of various sources, ideas and Cut and Paste actions; Likely in this process I have removed good functionality. This sketch contains an internal scheduling based upon sunset and sunrise, sync between the SonOff led and Cayenne actuator, some obsolete displays like wifi signal, time, uptime, the possibility to disable the internal scheduling and most important OTA. (4.4 KB)

Settings for binary/OTA:

The endresult:

1 Like

Nice how-to, thanks for posting it!

The latest version of the sketch can be found at:

This version includes wifimanager so it is possible to exclude Wifi and Cayenne’s MQTT credentials from the sketch.

1 Like

Thanks for posting this @wj4me ! I’m gonna move it to ‘The Library’ category.