You can enjoy the benefits of the 2Smart Cloud mobile app for your Sonoff smart products for free. The following describes how to connect a Sonoff switch or smart socket to the 2Smart Cloud mobile app in just 20 minutes.
The 2Smart Cloud mobile application is an alternative to the Sonoff’s native eWeLink. You will be able to use it after flashing the Sonoff smart relay or socket, and here are the benefits it has:
You can also customize the mobile app’s interface to your liking using 2Smart Cloud’s extensive widget library. To do this, you need to register on the 2Smart Cloud IoT platform as a vendor and publish a new product with minor modifications to the ready-made firmware for Sonoff. The final section of the article describes how to do this. Don’t worry – it’s free with up to 20 devices connected.
To reflash a Sonoff smart device, you need to connect it to your computer via USB. Since there is no USB on smart relays and sockets, you will need an additional device – a USB-TTL converter. The price of such devices on Amazon starts at $2.
You can find ready-made firmware for the following Sonoff smart products in 2Smart Cloud GitHub:
Firmware installation details for the products listed above differ slightly; the general instructions are as follows:
curl https://raw.githubusercontent.com/2SmartCloud/2smart-cloud-cpp-sdk/master/utils/bin/firmware_install.sh > firmware_install.sh
chmod +x firmware_install.sh
./firmware_install.sh write -d <PORT>
or update existing firmware
./firmware_install.sh upload -d <PORT>
full list of commands
platformio (>= v5.1.1)
pip install -U platformio
(Linux) /dev/ttyUSB0 (OSX) /dev/cu.SLAB_USBtoUART /dev/cu.usbserial-0001
pio run -t upload
To reset the connected device press the power button (for Sonoff 4CH: the first channel button) for 10 seconds until the led starts blinking.
Using the instructions above, you will be able to use all the benefits that the end user of the 2Smart Cloud IoT platform gets. However, you can make minor modifications to the code of the ready-made firmware from the platform’s GitHub and publish the device as your product.
The most significant advantage you will get in this case is the ability to customize the mobile application interface to your liking using the 2Smart Cloud widget library.
In addition, if you are fond of creating IoT devices, publishing a product with ready-made firmware will allow you to evaluate the platform from the vendor’s point of view.
Use this instruction to modify the firmware and publish your Sonoff smart device as your own 2Smart Cloud product.