Sonoff S31 Smart Socket Review – Power Consumption Monitoring with eWelink Android App

Today we are looking at the Sonoff S31. It is another device in the Sonoff line by ITEAD Studio. Similar to the Sonoff POW, you can see power usage but on the S31 you can keep historical data up to 100 days. This time around I am using it with the standard firmware, and will not be flashing the popular MQTT Tasmota firmware.

Specifications per ITEAD website:

  • Max. Current: 16A
  • Voltage Input: 90~264V AC, 50/60HZ
  • Wireless Standard: 2.4GHz, 802.11 b/g/n
  • Receive Sensitivity: 802.11b: <-84dBm(11Mbps); 802.11g: <-68dBm(54Mbps)
  • Output Power: 802.11b:16±2dBm; 802.11g:13±2dBm
  • Security Mechanism: WEP/WPA-PSK/WPA2-PSK
  • Encryption: AES/TKIP
  • Working Temp: -20 °C ~ 75 °C
  • Working Humidity: 10%-80%
  • Product Dimensions: 75.7×39.7x32mm
  • Gang: 1
  • Weight: 135g
  • Certification: FCC (Download)

Sonoff S31 Unboxing & Teardown

Click to Enlarge

Click to Enlarge

Taking the S31 apart is rather easy but I did not take it fully apart for fear of breaking it. Just pop the power button off the left side. Then 2 plastic pieces slide off to reveal screws.

I have now integrated my installation of Home Assistant with Google Assistant, so I thought I would just leave this one stock. I have been using voice to control my lights at home when overriding the automatic triggering of my motion sensors. (BTW been over a year and the motion sensors are still on the original batteries)

I already had an eWeLink account. Adding the S31 is easy and just works. You press and hold the power button on the S31 for 7 seconds and have the app look for the device. The S31 created a hotspot, and with magic it sends WiFi credentials to the S31 to get it on the network and talking to the cloud server.

Click to Enlarge
Click to Enlarge
Click to Enlarge

It has been a while but it appears to have all the standard settings like previous devices. There are a couple new items. The ability to download a CSV file, and a stopwatch type timer. One thing that was odd with the CSV is that I had to rename the history.csv file in order to download while tethered to my PC. I imagine that it is phone related, and not the eWeLink app. I inputted a price per kw/r as .16 and here is an example CSV file.

Click to Enlarge

The stopwatch persist through reboots and closing the app. It looks like an easy way to gather power usage in a specific timeframe.

Google Assistant, Alexa, IFTTT

I initially followed the instructions that pulled up in the eWeLink app by scanning the qr code on the insert in the package but the instructions are dated. I followed these instructions and added without a hitch with my phone. Hot word OK Google and “Turn on shop” or “Turn off shop worked well.

For Alexa I enabled the eWeLink skill and connected to my account. It searched for the S31 and was uneventful. Same key words as Google.

IFTTT was just as simple. I created a simple Android Assistant phrase that turned the plug on. I know that this is redundant but just wanted to test functionality. Worked the first time. IFTTT had the slowest response with about a full second delay.

Wrap up

I would like to thank ITEAD for sending the Sonoff S31 ($16.90 + shipping). It is the most consumer packaged device that I have reviewed in the Sonoff line. I have not reviewed the S20 and S30. No need to mess with screw terminals. Just plug in and connect to your network. One caveat is that the stock firmware for the entire Sonoff line relies on being connected to the Internet to function. I really wish they would have an option to enable MQTT out of the box and use in offline mode or hybrid mode. I think it would be beneficial to the homebrew home automation crowd.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
14 Comments
oldest
newest
TLS
TLS
6 years ago

You can find full internal photos here – https://fccid.io/2AE2J-S31/Internal-Photos/Internal-Photos-3692513
Unfortunately I can’t make out what the IC’s on the other side of the power button are from the FCC pictures.

Is it UL certified though? As a product like this need to be both FCC and UL certified to be legal to use.

Jon Smirl
6 years ago

Hasn’t ITead learned from their previous device almost catching on fire that they have to do UL or ETL certification on these devices? ETL is much cheaper to do than UL. The Shenzhen ETL office is only a few km away, get over there and use it. ETL is a safety rating. It ensures that these device won’t burn your house down and that you won’t get electrocuted if you walk near them with wet feet. Safety in these devices is for real, this person was killed by a knock-off Apple charger. The knock-off did not have the safety circuitry… Read more »

Lars Nørgaard
Lars Nørgaard
6 years ago

@Jon Smirl
I do agree with you that they need better safety certification, but where have you read about Sonoff catching fire or electrocuting people?

I’ve only heard about cheap phone chargers, that somehow output live voltage over the 5V USB output, because of the low and high voltage traces being way to close or even touching each other.

John Ward on Youtube has some nice tests: https://www.youtube.com/watch?v=SLK84ZJ291k

theguyuk
theguyuk
6 years ago

Rather interesting considering, the X-files season 11, episode on Mulder and Scully’s connected life.

TLS
TLS
6 years ago

Having taken a second look, there’s no way this thing would pass UL. For something like this, you normally need an optocoupler between the power measurement IC and the rest of the electronics. This is to isolate the AC side from the DC side, but it doesn’t appear to be the case here. Even if R2 and R22 are optocouplers, the PCB design doesn’t appear to offer very good separation between the AC and DC side of things, assuming that U6 is the power measurement IC. Having been involved in the development of a smartplug, I know how tricky it… Read more »

Jon Smirl
6 years ago

It possible to design perfectly safe AC devices without the optocoupler. This is likely a hot ground design. Hot ground is commonly used in AC devices but you have to be very careful that the hot ground is not exposed outside of the case. Don’t stick any test probes into this device unless you know what you are doing with a differential probe. You will destroy normal test equipment if you attach it to a hot ground device. Hot ground works by defining the AC wave form as ground. Then your 5v or 3.3v is created as an offset against… Read more »

Jon Smirl
6 years ago

One common way to fail UL/ETL is to put the AC PCB traces too close together. Then when they do the humidity test the water in the air adds enough conductivity that the AC jumps off the traces and into other parts of the design.

Jon Smirl
6 years ago

I just noticed all of the pictures, this is not a ground design and as such it would need the optoisolator. Not enough photos to say how it works

cnxsoft
Admin
6 years ago

@Lars Nørgaard
Sonoff catching fire (or at least melting), and they had to do a recall @ https://www.cnx-software.com/2017/03/01/some-sonoff-th16-and-sonoff-pow-manufactured-in-december-2016-january-2017-are-being-recalled/

That’s for an earlier production batch only, and they changes instructions during manufacturing to avoid the issue.

Adrian
Adrian
6 years ago

I have the Sonoff S20, in Off stage I measure 100V AC, they said that this is normal?!

The Cageybee
The Cageybee
6 years ago

Did any of you see the article on Hack-a-day about Sonoff switches getting dangerously hot?
https://hackaday.com/2018/03/03/thermal-camera-diagnoses-thermal-issue-on-a-sonoff-switch/

Personally, I wouldn’t go anywhere near any Sonoff stuff.

CampGareth
CampGareth
6 years ago

@The Cageybee
That’s not a normal Sonoff, it failed after 3 minutes. It’s a faulty one, dead on arrival.

Spruce
Spruce
6 years ago

Has anyone figured out how to capture the S31 data in realtimE, by MQTT? It would be perfect to be able to send data to an Infuxdb database.

cnxsoft
Admin
6 years ago

I don’t think it’s possible with the default firmware, but if you install Sonoff-Tasmosta or ESPurna firmware MQTT will be enabled by default.

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...