Page 1 of 3
Cheap Chinese WIFI module
Posted: Thursday 31 December 2015 18:11
by leby
Hi All,
I just found what seams to be a cheap WIFI switch on dx.com, anyone managed to control this or similar from Domoticz? And I dont have any 433 only z-wave devices to day so it would be via the WIFI that would make the trick..
http://www.dx.com/p/diy-smart-wi-fi-wir ... oUi3xXhDWI
or
http://www.dx.com/p/diy-wi-fi-wireless- ... oUiWRXhDWI
Perhaps one should not use for heavy load but for smaller, lights?
Re: Cheap Chinese WIFI module
Posted: Thursday 31 December 2015 22:21
by andriej
If it uses http protocol, then you could use simple scripts (ran by switch) to control it.
Re: Cheap Chinese WIFI module
Posted: Tuesday 05 January 2016 8:24
by Keptenkurk
Lennart,
Both units use a ESP8266 (i like the Sonoff better) so have a look at ESP8266 posts to see how to interact with it from Domoticz.
You could even run
micropython on it. BTW also available at
Banggood
/paul
Re: Cheap Chinese WIFI module
Posted: Tuesday 05 January 2016 9:32
by SweetPants
But that requires connection to the serial port to re-program the module.
Re: Cheap Chinese WIFI module
Posted: Tuesday 05 January 2016 14:14
by Keptenkurk
If you search through the micropython link it says : This box, has a switch, light, and a relay on board. The the serial port is run to the edge ready for headers. The switch is is on GPIO0 so all you have to do is solder some headers and hold the button down to reflash it. It runs my micropython perfectly.
Haven't seen one myself but well worth to give it a go. I'll order one to find out!
/paul
Re: Cheap Chinese WIFI module
Posted: Wednesday 06 January 2016 9:37
by leby
Thx, but to complicated for my skill level... Well, just an idea, will stay with z-wave for now...
Re: Cheap Chinese WIFI module
Posted: Thursday 07 January 2016 19:51
by Keptenkurk
Thanks for the pointers anyway!
/paul
Re: Cheap Chinese WIFI module
Posted: Saturday 16 January 2016 14:35
by Raspberry Piet
Very nice module this sonoff!
I soldered the pin-headers at j1 and flashed
espeasy on it.
It has
512kB 1MB flash size.
I'm thinking of cramming an ACS712 for current measuring in to this module. Have to investigate available pins.
Re: Cheap Chinese WIFI module
Posted: Monday 25 January 2016 15:51
by Karelin
Do any of you know if the RfxTrx433 supports the "Sonoff-protocol"?
And yes, the Sonoff looks pretty interesting..and cheap..

Re: Cheap Chinese WIFI module
Posted: Monday 25 January 2016 22:24
by Raspberry Piet
Karelin wrote:Do any of you know if the RfxTrx433 supports the "Sonoff-protocol"?
And yes, the Sonoff looks pretty interesting..and cheap..

Don't know about the 433Mhz Sonoff-protocol.
My Sonoff module is a wifi-only version.
Re: Cheap Chinese WIFI module
Posted: Sunday 21 February 2016 19:35
by jossie67
Raspberry Piet wrote:Very nice module this sonoff!
I soldered the pin-headers at j1 and flashed
espeasy on it.
It has
512kB 1MB flash size.
I'm thinking of cramming an ACS712 for current measuring in to this module. Have to investigate available pins.
Piet,
Do you have de model with wifi and 433?
Re: Cheap Chinese WIFI module
Posted: Sunday 21 February 2016 21:23
by Raspberry Piet
jossie67 wrote:Raspberry Piet wrote:Very nice module this sonoff!
I soldered the pin-headers at j1 and flashed
espeasy on it.
It has
512kB 1MB flash size.
I'm thinking of cramming an ACS712 for current measuring in to this module. Have to investigate available pins.
Piet,
Do you have de model with wifi and 433?
Nope, wifi only version here.
Flashed OTA
MiniESPEasy on it. Now it will be easy to connect i2c devices.
Re: Cheap Chinese WIFI module
Posted: Sunday 06 March 2016 19:07
by SweetPants
Just flashed one with my own MQTT image after modifying for this hardware.
Works great, and cheap too
Re: Cheap Chinese WIFI module
Posted: Sunday 06 March 2016 20:52
by deennoo
Just a question about this (i ordre 6pcs) but 1 question remain.
About output, this a 230v output with L+N ? Like can be a kaku wall switch ?
Re: Cheap Chinese WIFI module
Posted: Monday 07 March 2016 12:42
by SweetPants
deennoo wrote:Just a question about this (i ordre 6pcs) but 1 question remain.
About output, this a 230v output with L+N ? Like can be a kaku wall switch ?
Yes, L/N in, 2 wire load out.
Re: Cheap Chinese WIFI module
Posted: Tuesday 08 March 2016 7:56
by deennoo
Great thx
Re: Cheap Chinese WIFI module
Posted: Tuesday 08 March 2016 9:48
by bbqkees
I succesfully reflashed a Sonoff module to ESPEasy R78 with an Arduino Uno.
This might also be useful for others when you do not have a usb-serial cable at hand.
During the entire procedure below, do not connect the mains voltage!
First solder the 4-pin header. Then connect 3.3V and GND of the Arduino to the header.
Pin near switch: 3.3V
Rx
Tx
GND
(for pinout also see internet).
Then connect the 2 remaining wires to Tx and Rx of the Arduino (Arduino pin 1 and 0).
Furthermore you need to connect the reset pin of the Arduino to ground.
Plug in the Arduino to the pc and (download and) open the EspEasy flash tool (flash.cmd).
Choose the COM port of the Arduino, set the size to 1024 and choose a revision (78).
Now before you press enter press the button on the Sonoff and keep it pressed until the flash tool is ready (might not be necessary to keep it pressed al the time).
If the flash tool gives an error switch the wires on Tx and Rx and try again.
If it still does not work, unplug the 3.3V wire on the Sonoff, and while pressing the button on Sonoff reconnect the 3.3V wire.
Then flash it again.
If it worked you get the ESP0 network.
Re: Cheap Chinese WIFI module
Posted: Tuesday 21 June 2016 16:34
by alexsh1
I have Sonoff RF and this is not an easy process to flash this one as one has to touch the R21 pads with a screwdriver (pulls GPIO0 to GND to enter the flash mode) on the PCB before giving a 3.3 V power via FTDI
NOTE: DO NOT PLUG 240V while uploading the firmware!
I still have to figure out the RF part - I found this
https://www.itead.cc/blog/itead-intelli ... or-arduino
I manage to pair but still cannot switch on/off which is very annoying.
Re: Cheap Chinese WIFI module
Posted: Sunday 03 July 2016 20:23
by Derik
andriej wrote:If it uses http protocol, then you could use simple scripts (ran by switch) to control it.
Dear..
Do you have an example of the script?
Edit:
Is this possible without a Espeasy flash?
So i mean is there a WiFi Sonoff Api?
Re: Cheap Chinese WIFI module
Posted: Thursday 14 July 2016 22:07
by superczar
Just tried out one with ESP_easy firmware - Was a fairly easy process if you are a little famiilar with soldering
Works far better than my flaky (and expensive) Wemos -and small enough to be housed inside the wall electrical panels
Ordering a bunch of these doohickeys
