hmm… You didn’t even mention you need Blynk for that! But if so, then the “easiest” way is to treat sonoff basic as a “plain” ESP with just ONE relay, and ONE pushbutton… And led… All the necessary hardware knowledge relating to the great Sonoffs is on their Wiki. To program them you need (mostly) just a USB-Serial interface and (for ease the job) a goldpin soldered to the board. Then you can (for example) build a sketch using the sketch builder (look on the top of the page), where almost ready code can be found.
But… there are ready and complete .bin files with alternative firmware, where some tasks (i.e timer based) can be programmed and run. Those are not Blynk related, so no much help here… Good luck!
1 Like