The following explains how Sonoff smart plug lets iCafeCloud turn a console's TV on automatically when a session starts and off when the user checks out. Sonoff devices Basic R2, Basic R4 , mini R2 connect over Wi-Fi and are imported into iCafeCloud through your eWeLink account.
How to connect Sonoff when using iCafeCloud & CCBootcloud it acts as the DHCP server.
Wi-Fi routers or access points should disable their own DHCP.
- Sonoff → Wi-Fi (DHCP OFF) → Switch → CCBoot Server + iCafeCloud
- Disable DHCP on your Wi-Fi router/AP.
- CCBoot assigns IP addresses to all devices (PCs and Sonoff).
- Make sure the Sonoff connects to the same network (same subnet) as CCBoot and iCafeCloud.
How to connect Sonoff when using iCafeCloud you can let the Wi-Fi router handle DHCP.
- Sonoff → Wi-Fi (DHCP ON) → Switch → iCafeCloud
- Keep Wi-Fi DHCP enabled.
- iCafeCloud can function normally without conflicting DHCP.
- Sonoff devices get IPs from the router’s DHCP server.
- Adjust the router settings to allow a higher number of concurrent connections when managing multiple devices.
Sonoff hardware:
- Sonoff MiniR2 - Current in sale and supported. MiniR2 Setup here (Figure 2 the hardware on the right)
- Sonoff BasicR2 - Currently in sale and supported. BasicR2 setup here (Figure 2 the hardware on the left)
- Sonoff BasicR4 - Currently in sale and supported. BasicR4 setup here
Figure 2
- We recommend using the Sonoff smart plug only to control the power of the TV to which the console is connected. Do not use the smart plug to directly control the power of the console, as it won't shut down the console properly and may damage the console itself.
- Here is how to connect the smart device with the console TV: wire => Sonoff => wire => socket => TV, NOT socket => wire => Sonoff => wire => TV. This way, you don't need to cut off your TV power wire. Typically, install the sonoff device under the desktop.
Connect sonoff to iCafeCloud
- Before pairing, have ready
• The eWeLink mobile app, signed in to the one account that will own all your Sonoff devices.
• The password for your local 2.4 GHz Wi-Fi network.
• That eWeLink account's email address or international phone number, password, and registered country calling code. You enter these in iCafeCloud later.
• If a device is already paired and working in this account, keep its existing pairing.
All supported models (MiniR2, BasicR2 and BasicR4) are paired the same way, through the eWeLink app.
- In the eWeLink app, tap Add Device. Select the local 2.4 GHz Wi-Fi network and enter its Wi-Fi password.
- Tap More options, choose Bluetooth Pairing, and follow the instructions in the app to add the BASIC R4.
- After it appears in the device list, enable LAN control in its settings.
Repeat these steps until every BASIC R4 has been added to the same eWeLink account and has LAN control enabled. (Figure 1)
Figure 1
- In the Control Panel go to Computers → Consoles and click the Sonoff Setup button. (Figure 2)
Figure 2
- On the SONOFF setup page at eWelink account enter the email address or phone number including its + country code the password and the registered country code (Figure 3)
Figure 3
- If everything is on the same network, you can also enable LAN Control and click Sign In. (Figure 4)
Figure 4
- After signing in successfully, your SONOFF devices connected to eWeLink will appear and import into iCafeCloud. (Figure 5)
Figure 5
- Check the DEVICE column in the Control Panel. Each imported SONOFF console should appear in the list with a corresponding non-empty SONOFF_
value. (Figure 6)
Figure 6
- When a session with Sonoff starts, the device will power on automatically. When a user checks out, the device will turn off.(Figure 7)
Figure 7
- You can also manually control the power of Sonoff devices in CP (Figure 8).
Figure 8
- For actions involving SONOFF devices, you can refer to the Game logs for tracking and monitoring ( Figure 9)
Figure 9
- If you restart the iCafeCloud Server by clicking Stop and Start, you need to refresh the Control Panel (CP) to see the updated status, or click the “Refresh” button on the console.(Figure 10)
Figure 10














