logo elektroda
logo elektroda
X
logo elektroda

WS-04H1 aka Sonoff POW R2 - energy measurement and relay (ESP8266 and CSE7759B)

p.kaczmarek2 
elHome WS-04H1 WiFi controller next to its box and manual .
Here is another product which turned out to be a repainted relay from Sonoff - the WS-04H1 from elHome. Here I show its interior and the procedure for changing the ESP8266 firmware to Tasmota, for example. I bought the WS-04H1 for 12$ along with similar products in the series when I still thought it was a completely separate product family. I have already shown a few other gadgets from it:
[ESP8285] WS-05H1 or Sonoff Dual R2 clone - firmware change, stencil, Tasmota .
Interior and Tasmota upload on elHome WS-03H1 (Sonoff clone TH10/16 Ver 2.1) .
And now and it's time for the WS-04H1, so here we go.

The packaging suggests nothing that this could be a Sonoff:
Box of the elHome WS-04H1 device with Smart Home features and mobile app control. Side of the elHome WS-04H1 packaging with eWeLink app logo and App Store and Google Play icons. Back of elHome WS-04H1 packaging with Polish instructions. WS-04H1 product packaging with a barcode and CE symbols on a white background. View of WS-04H1 elHome packaging and device .
Someone has made an effort, as the instructions are in Polish:
User manual for the WS-04H1 WiFi controller with the elHome logo lying on a wooden table. User manual for WS-04H1 device in Polish. Polish-language user manual for WS-04H1 with connection and pairing instructions with the application. User manual of WS-04H1 device with function description and LED indicators. User manual of WS-04H1 device with function description and LED indicators. Manual of WS-04H1 device with descriptions of features. Polish language manual for WS-04H1 with a warranty card. Polish-language instruction manual for the WS-04H1 product with a warranty card. .
In the manual you will find detailed information about pairing the device with the eWeLink app. In addition, there is also a warranty card, I wonder if the "manufacturer" respects this.
And then there is the product itself:
Label on the packaging of the elHome WS-04H1 WiFi controller. .
Time to look inside...

Interior of WS-04H1 .
Lift up the housing and look inside.
PCB board from inside the WS-04H1 relay on a wooden table background. .
At this point we learn the secret of this product - the writing on the PCB makes it clear. This is in fact the Sonoff Pow R2 V2.0, dated 2018-06-11.
Interior of the WS-04H1 device with visible PCB and Sonoff Pow R2 labels. .
Here we have the programming pads (IO0 is on the button):
Interior of WS-04H1 device showing electronic components on a green PCB. .
The design itself is not bad either, not only is a fuse resistor present but also a varistor and filter capacitor. Tuya often omits this from their products.
PCB of the WS-04H1 device with visible electronic components.
The rest happens on the bottom of the PCB:
View of the PCB of the WS-04H1 relay with integrated circuits. Close-up of the PCB of the WS-04H1 device with visible components. .
The power supply is a flyback, it is based on the CSC7102C. I am familiar with this circuit, I described it here:
Sonoff Basic ZBR3, which is the famous relay version on Zigbee. Interior, schematic .
Next we have the ESP8266EX with a flash memory bone:
Interior of the WS-04H1 device, showing electronic components. Close-up of the WS-04H1 circuit board with visible electronic components and the ESP8266 chip. .
Next to it is a 3.3V LDO supplying this part of the circuit.
Apart from this, there is also just a bone for energy measurement - the CSE7759B:
Close-up of a PCB with electronic components. .
This circuit is similar to the BL0937, it represents the measured power/current/voltage as pulses with a frequency corresponding to the measured quantity:
Circuit diagram of the CSE7759 chip with pin descriptions. .

Changing WS-04H1 firmware .
You can upload e.g. Tasmota, if only via esptool.py or the online method:
How to install Tasmota easily - online installer tasmota.github.io/install via web browser .
Solder the ground, power, TX and RX:
Close-up of WS-04H1 circuit board with visible programming pads and components. Close-up of a circuit board with connected wires. .
Here is all my programming circuitry (I have a 3.3V LDO on the contact board):
View of the WS-04H1 device interior with connected breadboard. .
Before connecting the power supply we push the button, as it is on GPIO0, and we need to run the ESP in bootloader mode from the UART . Only then can the batch be uploaded.
The templates for this device are on the Blakadder website:
https://templates.blakadder.com/sonoff_Pow_R2.html
Code: JSON
Log in, to see the code
.
Code: JSON
Log in, to see the code
.
Both differ only in the behaviour of the blue LED.
The device requires calibration with the VoltageSet/PowerSet/CurrentSet commands according to Tasmota's documentation for accurate measurements. Connect a known load, e.g. a 60W light bulb, switch on the relay and then enter the expected measurement results with these commands.

Summary .
It is definitely worth knowing that this product is essentially a Sonoff POW R2 with a different logo on the case. It's all ESP8266 inside, no weird surprises like in Tuya where you can end up with BK7231 or another chip . You can confidently order and change the batch. The Home Assistant can also be combined with. Tasmota has already been discussed on the forum, even in a DIY version:
ESP8266 and Tasmota - WiFi relay control step by step .
Do you use the Sonoff series, and if so, for what? Feel free to discuss.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 11977 posts with rating 10005 , helped 573 times. Been with us since 2014 year.

Comments

%}