Cheap Chinese WIFI module

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

leby
Posts: 98
Joined: Monday 28 July 2014 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Stockholm
Contact:

Cheap Chinese WIFI module

Post 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?
/lennart
andriej
Posts: 46
Joined: Tuesday 10 December 2013 22:27
Target OS: Linux
Domoticz version: beta
Contact:

Re: Cheap Chinese WIFI module

Post by andriej »

If it uses http protocol, then you could use simple scripts (ran by switch) to control it.
Orange Pi (@ Debian) / MySensors Serial / GPIO / Custom Serial 433 MHz Transmitter (for plug switches and livolo wall switches) / JSON&Bash API scripts
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Re: Cheap Chinese WIFI module

Post 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
SweetPants

Re: Cheap Chinese WIFI module

Post by SweetPants »

Keptenkurk wrote: You could even run micropython on it. BTW also available at Banggood
But that requires connection to the serial port to re-program the module.
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Re: Cheap Chinese WIFI module

Post 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
leby
Posts: 98
Joined: Monday 28 July 2014 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Stockholm
Contact:

Re: Cheap Chinese WIFI module

Post by leby »

Thx, but to complicated for my skill level... Well, just an idea, will stay with z-wave for now...
/lennart
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Re: Cheap Chinese WIFI module

Post by Keptenkurk »

Thanks for the pointers anyway!
/paul
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Cheap Chinese WIFI module

Post 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.
Last edited by Raspberry Piet on Monday 25 January 2016 22:12, edited 1 time in total.
Karelin
Posts: 1
Joined: Saturday 15 March 2014 12:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4223
Contact:

Re: Cheap Chinese WIFI module

Post by Karelin »

Do any of you know if the RfxTrx433 supports the "Sonoff-protocol"?

And yes, the Sonoff looks pretty interesting..and cheap.. :-)
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Cheap Chinese WIFI module

Post 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.
jossie67
Posts: 39
Joined: Wednesday 31 December 2014 12:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese WIFI module

Post 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?
Raspberry Pi (3x)
Master Domoticz installed on a Synology
RFXCOM RFXtrx433E USB
RFLink
USB Z-Wave Mini Adapter
Mi-light
QuinLED
Landis+Gyr ZME120ACd
Kamstrup_M401
USB-IR-Schreib-Lesekopf Alecto WS1700
Watermeter with TCRT5000
Kodi
DS18B20
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Cheap Chinese WIFI module

Post 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.
SweetPants

Re: Cheap Chinese WIFI module

Post by SweetPants »

Just flashed one with my own MQTT image after modifying for this hardware.
Works great, and cheap too
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Cheap Chinese WIFI module

Post 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 ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
SweetPants

Re: Cheap Chinese WIFI module

Post 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.
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Cheap Chinese WIFI module

Post by deennoo »

Great thx
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Cheap Chinese WIFI module

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: Cheap Chinese WIFI module

Post 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.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cheap Chinese WIFI module

Post 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?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
superczar
Posts: 65
Joined: Wednesday 14 January 2015 12:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: India
Contact:

Re: Cheap Chinese WIFI module

Post 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 :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest