New ESP gadget

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
farhanito
New user
Posts: 9
Joined: 10 May 2016, 16:15

Re: New ESP gadget

#191 Post by farhanito » 30 Aug 2016, 16:16

bertrand wrote:I flashed two Sonoff TH lately with R123 and I found that operating them with Safari (Mac OS) didn't work well: 9/10 times when I hit Confirm, I get a broken link. Chrome didn't have that issue (I switched this morning).

I have a few NodeMCU lying around with R120 and I didn't have that issue :?
Same here with R124.
The webserver seems very unstable on sonoff

garvarma
Normal user
Posts: 19
Joined: 15 Jul 2016, 13:11

Re: New ESP gadget

#192 Post by garvarma » 13 Sep 2016, 22:09

bertrand wrote:
I flashed two Sonoff TH lately with R123 and I found that operating them with Safari (Mac OS) didn't work well: 9/10 times when I hit Confirm, I get a broken link. Chrome didn't have that issue (I switched this morning).

I have a few NodeMCU lying around with R120 and I didn't have that issue :?



Same here with R124.
The webserver seems very unstable on sonoff
Maybe this happens because sonoff only have 1M of flash memory, and with newest versions of Espeasy is not enough memory and turn it unstable in the sonoff device?

I wrote mail to itead company, and they confirm that their device with esp8266 only have 1M of flash memory.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: New ESP gadget

#193 Post by Drum » 14 Sep 2016, 10:37

Perhaps it is something to do with the difference between Safari and Chrome and how they function... To test if it is a size problem you could probably compile a version without the plugins you do not need. No reason to have the plugins for OLED and LCD if you do not have a display. I don't know how it would translate to the size of the compiled image, but the plugins are about 25% of the total size in the un-compiled software.

garvarma
Normal user
Posts: 19
Joined: 15 Jul 2016, 13:11

Re: New ESP gadget

#194 Post by garvarma » 20 Sep 2016, 09:08

Well in my case i bought a sonoff (already don't have it) and also bought a 4M memory flash. i will try to update memory on sonoff and then i will explain.

thanks

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: New ESP gadget

#195 Post by dlefol » 20 Sep 2016, 22:00

I'm having the same issue here. The sonoff does not display the webpage 9 times out of 10 (tried chrome and IE and both have the problem).
It does not seem to be a network problem since when I press the physical button on the Sonoff, Domoticz is updated in real time with the on/off status change despite the sonoff being unable to display the webpages in the same interval of time.

This is extreamly frustrating as it makes it impossible to configure the Sonoff since each time I change a value the submit goes to a page not found. If anyone as a work around to configure the esp easy on the sonoff I'm listening

ayasystems
Normal user
Posts: 39
Joined: 09 Aug 2016, 09:45

Re: New ESP gadget

#196 Post by ayasystems » 20 Sep 2016, 23:40

dlefol wrote:I'm having the same issue here. The sonoff does not display the webpage 9 times out of 10 (tried chrome and IE and both have the problem).
It does not seem to be a network problem since when I press the physical button on the Sonoff, Domoticz is updated in real time with the on/off status change despite the sonoff being unable to display the webpages in the same interval of time.

This is extreamly frustrating as it makes it impossible to configure the Sonoff since each time I change a value the submit goes to a page not found. If anyone as a work around to configure the esp easy on the sonoff I'm listening
Are you ussing global sync over UDP?

I've 3 sonoff workign without lag problem.

I have disable serial log, weblog and udp log.

f-fish
New user
Posts: 9
Joined: 19 Sep 2016, 04:11
Location: Johannesburg - RSA
Contact:

Re: New ESP gadget

#197 Post by f-fish » 21 Sep 2016, 03:10

I can only confirm that I have no issues with the 4 pin Sonoff with the RF module (not using RF module at this stage).

System Time: 3:00
Load: 8% (LC=36107)
Uptime: 2802 minutes
Wifi RSSI: -39 dB
Build: 120 (stock bin from website)
Core Version: 2_3_0

Device:
Edit 1 Switch input sonoff01 1152 GPIO-12 Switch: 0
Edit 2 System Info Uptime 54

Load - 200 Watt @ 220 volt

Rules :
On Clock#Time=All, 20:15 do
gpio,12,0
endon

On Clock#Time=All, 23:15 do
gpio,12,0
endon

On Clock#Time=All, 02:15 do
gpio,12,0
endon

Network statically defined.

Talks to Domoticz for main control -


Later Ferdie

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: New ESP gadget

#198 Post by dlefol » 21 Sep 2016, 07:38

I have a 5 pins version with R120 from the website. Not using UDP or anything special. I've tried disabling the logs but doesn't seem to help much. I've tested some more and I am loosing commands too so it seems to be the sonoff loosing wifi connection, but I am in a spot where wifi coverage is very good...
Will try with a second sonoff to see if I have more luck.

farhanito
New user
Posts: 9
Joined: 10 May 2016, 16:15

Re: New ESP gadget

#199 Post by farhanito » 21 Sep 2016, 14:16

In my case, it works a lot better when powered by the pins, not mains. Don't know why.

I gave up and use R109 for now

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: New ESP gadget

#200 Post by dlefol » 21 Sep 2016, 14:45

Good to know that it's more stable with R109. Might try that one too.

thanks

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: New ESP gadget

#201 Post by dlefol » 21 Sep 2016, 23:12

Ok, I've tested some more tonight and on a second Sonoff with R108 and R120 I have no problem. Seems stable (been reloading the log files page in loop for the last 15 minutes).
I have also tried R108 on my first Sonoff but it is still not stable. It seems that the problem comes from my Sonoff device then and not from the version of Easy ESP used.

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#202 Post by the cosmic gate » 29 Sep 2016, 21:02

is there somebody who modded the Sonoff ( 5 pin version) with an external antenna ? I'am having some issues with connecting a sonoff to the WiFi because it's build in a garden lamp ( made of iron : seems to give a farraday issue)

bobdvb
Normal user
Posts: 10
Joined: 04 Oct 2016, 11:21

Re: New ESP gadget

#203 Post by bobdvb » 04 Oct 2016, 11:40

I've got two Sonoff WiFi modules and I loaded it with 1024kB R120.

It starts up fine and I can get in to ESP_0, but I am struggling to get it to connect reliably to my wifi network.

I have two networks, the main one it seems to connect to but I can't load the config pages reliably ("took too long to respond"). However when I connect it to the other network it is a bit more reliable. The main network that is unreliable is connecting to a DD-WRT router which is a Buffalo AC1900 router with dual wifi channels (N and AC). The secondary network is a fairly unexciting ISP router with 2x2 AC. The problem is that the ISP router is behind a firewall as far as Domoticz is concerned which is a shame because it only allows one way control also it still isn't reliable.

I am wondering if I should go up or down in versions? I also find it interesting that some people aren't experiencing problems, could there be some hardware inconsistency?

bobdvb
Normal user
Posts: 10
Joined: 04 Oct 2016, 11:21

Re: New ESP gadget

#204 Post by bobdvb » 04 Oct 2016, 11:41

the cosmic gate wrote:is there somebody who modded the Sonoff ( 5 pin version) with an external antenna ? I'am having some issues with connecting a sonoff to the WiFi because it's build in a garden lamp ( made of iron : seems to give a farraday issue)
You might get some inspiration by the work on adding an external antenna to the Pi 3? http://www.dorkbotpdx.org/blog/wramsdel ... berry_pi_3

hschroyen
New user
Posts: 6
Joined: 10 Oct 2016, 16:34

Re: New ESP gadget

#205 Post by hschroyen » 10 Oct 2016, 17:59

I need help.... :oops:

I have the sonoff th with the 5 holes.
I have 10 of them...and bricked already 5 of them :evil:

I have read this threat but nothing seems to help.

I am using a USB BUB II and since a long time I am flashing several boards with it without any issue.(Yes I use 3v3 on power and transmit receive)
I plug the sonoff and it is flashing the leds...so it is powering up ok.
I reconnect with the switch down for 10 sec or longer, start flashing software (used several types. several versions of espeasy, several sizes...)
RX and TX are flashing for a few seconds (so I suppose RX and TX are correctly connected)...
And than it stops...with an error depending on the software.
If I reconnect the device I never see the RX anymore...only the TX...

It should be so easy...I know...but it does not work.
I have several other esp's working on espeasy and I would love to have these sonoff's working with espeasy.

What is wrong?...please help before all 10 are bricked :oops:

Thanks in advance.

ayasystems
Normal user
Posts: 39
Joined: 09 Aug 2016, 09:45

Re: New ESP gadget

#206 Post by ayasystems » 10 Oct 2016, 18:19

Please, tell us step by step what are you doing to flash it

Are you pushing the button before power with the USB adaptor?


Try with it -> http://www.esp8266.nu/index.php/Main_Page#Stable

Step 1 - Find the right flash size of your module
Step 2 - Download the zipfile here: Firmware and unpack to a folder of choice.
Step 3 - Double Click "flash.cmd". A command windows should start with three questions.
Step 4 - Select the com port that your module or FTDI module is using
Step 5 - Select the flash size, 512, 1024 or 4096 1024
Step 6 - Select the build version like 108 or newer.

hschroyen
New user
Posts: 6
Joined: 10 Oct 2016, 16:34

Re: New ESP gadget

#207 Post by hschroyen » 11 Oct 2016, 09:16

Resolved,

It has been a long night :roll: but I finally found it.
Strange...very strange but the sonoff units I have with the USB BUB II set-up is unable to be flashed with the standard tool provided by espeasy (esptool.exe flash.cmd). Instead I used the https://github.com/nodemcu/nodemcu-flasher nodemcu flasher software.

However, and this for those having the same problem, I needed to push the button UNTIL THE FLASHING has started. So way over the 10 sec. after the power-up. Not sure why, perhaps one of the real experts :ugeek: can answer this.

I tried several times with the standard tool but in my setup and with my 10 units I was unable to flash them with the standard tool.
I expect some timing errors as I saw that the esptool flasher was sending and receiving some bytes but stopped waiting for an answer of the sonoff...until time out.

So for those having the same problems

1 Download nodemcu-flasher
2 Select ESPEasy_Rxxx_1024.bin file
3 Hold down the switch of the sonoff unit...
4 Power-up unit...
5 Still hold the switch down...
6 Start nodemcu flasher...
7 If RX TX lights from USB BUB II FDTI unit are flashing you can release the switch...However if the flashing stops (I had such a unit) you need to push the switch UNTIL THE END OF THE FLASHING...

Do not ask me why...the above steps worked for my 10 unit...

Mission accomplished.... :D

hschroyen

f-fish
New user
Posts: 9
Joined: 19 Sep 2016, 04:11
Location: Johannesburg - RSA
Contact:

Re: New ESP gadget

#208 Post by f-fish » 13 Oct 2016, 01:47

Interesting persistence needed for the 5 pin device being programmed, thanks for the post.

For the record, I am still using the 4 pin sonoff with R120 and it is rock solid.

System Time: 1:40
Load: 10% (LC=35239)
Uptime: 20099 minutes
Wifi RSSI: -50 dB
Build: 120
Core Version: 2_3_0

Toggle and control done via domoticz with simple rules as fail-safe. Uptime also being posted to Domoticz.

Later Ferdie

User avatar
moelski
Normal user
Posts: 161
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: New ESP gadget

#209 Post by moelski » 13 Oct 2016, 06:43

Hi !

Yesterday may SOnOff arrived with a 5pin header. After supply the modul with stabel 3.3V (my USB Serial adapter didn´t offer enough current) all went fine.
Just pressing the button and hold it pressed while you power off the device. Now I uploaded the code from the arduino IDE. And after a reset all was done 8-)

But what I really miss is a little option in the webUI to controll the relais state. Some simple page with ON/OFF switches.
I´m thinking about to add such thing :ugeek:
regards
Dominik

uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: New ESP gadget

#210 Post by uhrheber » 14 Oct 2016, 14:51

For what?
I find it much more convenient to use shortcuts instead of webpages.
I created a shortcut in my notebooks quick access menu that just calls "curl http://<ip-of-sonoff>/control?cmd=event,toggle_lamp"

On my smartphone (Android) I use the "HTTP Request Widget" https://play.google.com/store/apps/deta ... uestwidget to call the same url.

kniazio
Normal user
Posts: 71
Joined: 12 Jun 2016, 11:12

Re: New ESP gadget

#211 Post by kniazio » 15 Oct 2016, 07:15

I would recommend this program.
https://play.google.com/store/apps/deta ... cuts&hl=pl
It is sensational

User avatar
moelski
Normal user
Posts: 161
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: New ESP gadget

#212 Post by moelski » 15 Oct 2016, 23:10

Hi !
I find it much more convenient to use shortcuts instead of webpages.
Maybe you are right. But sometimes it would be nice to switch directly.
Would be a goody, nothing more 8-)
I use that with my FHEM, too.
regards
Dominik

User avatar
SuperToma
Normal user
Posts: 14
Joined: 08 Apr 2016, 08:33

Re: New ESP gadget

#213 Post by SuperToma » 24 Oct 2016, 17:46

Hey guys !

A new version with current power consumption is released by Sonoff !!!
https://www.itead.cc/smart-home/sonoff- ... dd4bea2543

Anybody tried it ?

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: New ESP gadget

#214 Post by Allycat1972 » 02 Nov 2016, 17:39

Hi all. I'm using lots of these Sonoff devices (4 and 5 pin) and for the most they have been solid little machines. However after months of running OK, one by one they stopped responding to MQTT and I had to reboot them. All of them.

Is there a counter, or memory leak or something that would cause this? I am running R124 at the moment.

Has anyone else had this issue?

timsson
Normal user
Posts: 77
Joined: 25 Mar 2016, 22:00

Re: New ESP gadget

#215 Post by timsson » 03 Nov 2016, 22:44

I can only confirm that I have no issues with the 5 pin Sonoff with the RF module (i don't use RF in the moment....)
It works fine!
R142

adrianmihalko
Normal user
Posts: 51
Joined: 15 Sep 2016, 00:20

Re: New ESP gadget

#216 Post by adrianmihalko » 05 Nov 2016, 22:25

Is there any chance to get Power Consumption Measurement with ESP Easy?

https://www.itead.cc/smart-home/sonoff-pow.html

User avatar
SuperToma
Normal user
Posts: 14
Joined: 08 Apr 2016, 08:33

Re: New ESP gadget

#217 Post by SuperToma » 10 Nov 2016, 15:35

There is a chance my friend :P

https://github.com/arendst/Sonoff-MQTT-OTA-Arduino

Sonoff pow is out of stock on their market... :(

battika
Normal user
Posts: 10
Joined: 15 May 2016, 14:17

Re: New ESP gadget

#218 Post by battika » 11 Nov 2016, 21:51

I managed to get ahold of one of the POW devices :D Can't wait to test it soon

timsson
Normal user
Posts: 77
Joined: 25 Mar 2016, 22:00

Re: New ESP gadget

#219 Post by timsson » 25 Nov 2016, 18:23

https://www.itead.cc/wiki/Sonoff_Dual
How can i togggle/switch the 2 relay?
Thanks

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New ESP gadget

#220 Post by papperone » 25 Nov 2016, 21:02

timsson wrote:https://www.itead.cc/wiki/Sonoff_Dual
How can i togggle/switch the 2 relay?
Thanks
As far as i understood you cannot from ESPeasy
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

mscory
New user
Posts: 3
Joined: 29 Nov 2016, 13:31

Re: New ESP gadget

#221 Post by mscory » 29 Nov 2016, 13:47

Hello,

As I was very happy with Sonoff "standard" (1 relay), I bought a few Dual version devices. I'm trying to flash them with ESP Easy ... without any success. It seems that the device is not responding.

Did you flash the device ? Any trick ?

Thanks
Kind regards

rfromr
New user
Posts: 2
Joined: 21 Dec 2016, 17:05

Re: New ESP gadget

#222 Post by rfromr » 21 Dec 2016, 17:13

Hello,

I received the device today. The flash was success full with ESPEasy, without problems.
BUT it don't know which two GPIO's are used for the relais. Any ideas? Please help :-)

For flashing I used this picture. Pin: VCC (3.3V), RX, TX, GND
Sonoff_Dual_Hardware.png
Sonoff_Dual_Hardware.png (94.84 KiB) Viewed 103813 times
and set this ESP PIN GPIO00 to ground.
Attachments
ESP8266GPIOGround1.jpg
ESP8266GPIOGround1.jpg (46.61 KiB) Viewed 103799 times
ESP8266GPIOGroundlarge1.jpg
ESP8266GPIOGroundlarge1.jpg (39.73 KiB) Viewed 103799 times

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#223 Post by NietGiftig » 21 Dec 2016, 20:00

rfromr wrote:Hello,

BUT it don't know which two GPIO's are used for the relais. Any ideas? Please help :-)
Maybe on the schematic?
https://www.itead.cc/wiki/File:Sonoff_D ... ematic.pdf
https://www.itead.cc/wiki/images/1/1d/S ... l_View.pdf
Last edited by NietGiftig on 22 Dec 2016, 07:23, edited 1 time in total.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New ESP gadget

#224 Post by papperone » 21 Dec 2016, 21:11

As far as I know the 2 relays are not controlled by GPIOs but via a kind of serial commands, so I am not sure it will be that easy to use both with ESPEasy
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

rfromr
New user
Posts: 2
Joined: 21 Dec 2016, 17:05

Re: New ESP gadget

#225 Post by rfromr » 22 Dec 2016, 11:50

Yes, i see the GPIO's are not conencted to the relais.

How is it possible to send serial commands out from the ESP? I think it should be possilble to control the relais over the F330.

We have to send the hex value:
0x00 both off
0x01 relay one on
0x02 relay two on
0x03 both relays on
..but how?

http://support.iteadstudio.com/support/ ... 1000006870

Schema:
https://www.itead.cc/wiki/images/1/1d/S ... l_View.pdf
the other one is the print layout.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New ESP gadget

#226 Post by papperone » 22 Dec 2016, 13:49

rfromr wrote:Yes, i see the GPIO's are not conencted to the relais.

How is it possible to send serial commands out from the ESP? I think it should be possilble to control the relais over the F330.

We have to send the hex value:
0x00 both off
0x01 relay one on
0x02 relay two on
0x03 both relays on
..but how?

http://support.iteadstudio.com/support/ ... 1000006870

Schema:
https://www.itead.cc/wiki/images/1/1d/S ... l_View.pdf
the other one is the print layout.
not possible with "vanilla" ESPEasy, you need tro write a specific plugin to drive that Sonoff device...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
moelski
Normal user
Posts: 161
Joined: 31 Aug 2016, 06:33
Location: Germany - NRW
Contact:

Re: New ESP gadget

#227 Post by moelski » 29 Dec 2016, 08:28

Hi !
We have to send the hex value:
0x00 both off
0x01 relay one on
0x02 relay two on
0x03 both relays on
..but how?
Hmm Looks like simple send some data over the Serial port.
But I wonder a Little about the INT / E-FW Connection.

But sending some data within a new plugin is really straight forward :ugeek:
regards
Dominik

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: New ESP gadget

#228 Post by bennybubble » 15 Feb 2017, 09:13

Hi,

Recently I received a sonoff basic device with a 5-pin header. Having very good experience with espeasy, I decided to flash r147 (1024) in it.
I was able to configure it and control the GPIO pins via MQTT (openhab), after that the webinterface starts to respond slow (or not et all).

Does anybody else experience this problem?
Is there another version which is stable and could use ?

-ben

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: New ESP gadget

#229 Post by paxi » 15 Feb 2017, 10:34

Yes, I had these problems with two (out of 8) sonoffs as well and don't think it's software related.

On unit is running fine sine since I moved it some centimeters, on the other I tried reflashing, erasing flash and flashing again with multiple versions - WiFi is still unreliable and fails after some time, it was problematic from the beginning even with the original firmware running.
Banggood replaced it without further questions after I described the issue (well, didn't mention the espeasy part explicitly ;)).

Edit:
Your post encouraged me to tinker again - after erasing and clean flashing again it seems to run stable now (for an hour at least). I'll update here if it becomes unstable again.

One think I've noticed is that they seem to forget the WPA key if you configure it and then immediately powercycle without a manual reboot but that's a different issue.
Last edited by paxi on 15 Feb 2017, 14:25, edited 1 time in total.

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: New ESP gadget

#230 Post by dlefol » 15 Feb 2017, 13:40

Same problem here. I have 4 Sonoff with esp easy running on them. They tend to be quite unreliable. webinterface not loading or really slow to load, plug not responding to http command sent from domoticz, ...
I tried different versions of esp easy, but I think it s hardware related and not software related. I ended up giving up on Sonoff and have replaced them by zwave devices :(

bennybubble
Normal user
Posts: 44
Joined: 31 Jan 2016, 21:05

Re: New ESP gadget

#231 Post by bennybubble » 15 Feb 2017, 15:14

Thanks for your replies!

Interesting thing is that via MQTT I can control the LED and relay almost instantaneously but the webpages do not respond or respond very slowly.
I will reflash tonight and see what happens.

-ben

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: New ESP gadget

#232 Post by paxi » 15 Feb 2017, 15:56

That's exactly what I've obseved, too. Not sure if it is due to the webinterface running a seperate server process or just more packets going back and forth. Once I ran into a situation (with the first device mentioned) where the rules page was loading perfectly but did not accept changes at all (no response from server after submitting) - repeatedly... :evil:

Btw. I use the attached file to conveniently clear the flash with the espeasy firmware flasher.
Attachments
ESPEasy_R0_1024.zip
Just a meg of 0xFF
(1.18 KiB) Downloaded 1672 times

MonkeyTown
Normal user
Posts: 25
Joined: 08 May 2016, 02:29

Re: New ESP gadget

#233 Post by MonkeyTown » 07 Mar 2017, 05:33

Hi all.

Anyone got the new Itead LED strip? https://www.itead.cc/smart-home/sonoff-led.html

I have two. Successfully flashed with ver. 120. Working pretty fine, I actually believe they are an absolute bargain for what they can do. I can emulate all the functions of the original firmware.

BUT
Every few days one or the other randomly resets. It's not a wifi issue, it can't be a power issue. They run warm, but not hot. I have setup an Sysinfo device and tracking uptime in Domoticz, there seems to be no real pattern to the resets.
Anyone have these? Experiencing issues? Most of my other Sonoffs are rock solid. My Slampher is controlling lights for months and is like a Swiss watch...
I will try to re-flash a different build, older and newer and will report back, but maybe someone here is using those without issues?

btw. the ESP easy (Let's control it) Rules function is an absolute godsend. Using the rules I can create as many "dimmer" levels and white yellow LED mixes as I want and Domoticz happily obliges using dummy selector switch.

BounceMeister
Normal user
Posts: 10
Joined: 10 Mar 2017, 20:25

Re: New ESP gadget

#234 Post by BounceMeister » 10 Mar 2017, 20:34

moelski wrote: 29 Dec 2016, 08:28 Hi !
We have to send the hex value:
0x00 both off
0x01 relay one on
0x02 relay two on
0x03 both relays on
..but how?
Hmm Looks like simple send some data over the Serial port.
But I wonder a Little about the INT / E-FW Connection.

But sending some data within a new plugin is really straight forward :ugeek:
I received a Sonoff Dual today, it has the SIL F330 chip on it which controls the relays. I would like to use the Sonoff with ESP EASY and Domoticz.
Since i'm new to ESP EASY (and only got an Oled screen and a led working on a NodeMCU v3 board), i don't quite understand how to get the Sonoff working with the F330 chip. Where can i find more information about this?
Flashing the Sonoff shouldn't be a problem, but the working with the F330 chip is a problem. ;)

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: New ESP gadget

#235 Post by bobbybeans » 14 Mar 2017, 18:28

rfromr wrote: 21 Dec 2016, 17:13 Hello,

I received the device today. The flash was success full with ESPEasy, without problems.
BUT it don't know which two GPIO's are used for the relais. Any ideas? Please help :-)

For flashing I used this picture. Pin: VCC (3.3V), RX, TX, GND

Sonoff_Dual_Hardware.png
and set this ESP PIN GPIO00 to ground.
Hey I got the ESP dual working without any plugins or anything other than basic esp easy
What you need to do is take a wire solder it to the pin of the ESP then solder the other end to the transistor driving the relay. then when you drive the pin high the relay goes high. However the downside of this is you lose the function of your LEDs that note the relays on and off
I will see if I can get a picture tonight of what I did

BounceMeister
Normal user
Posts: 10
Joined: 10 Mar 2017, 20:25

Re: New ESP gadget

#236 Post by BounceMeister » 20 Mar 2017, 11:00

bobbybeans wrote: 14 Mar 2017, 18:28
rfromr wrote: 21 Dec 2016, 17:13 Hello,

I received the device today. The flash was success full with ESPEasy, without problems.
BUT it don't know which two GPIO's are used for the relais. Any ideas? Please help :-)

For flashing I used this picture. Pin: VCC (3.3V), RX, TX, GND

Sonoff_Dual_Hardware.png
and set this ESP PIN GPIO00 to ground.
Hey I got the ESP dual working without any plugins or anything other than basic esp easy
What you need to do is take a wire solder it to the pin of the ESP then solder the other end to the transistor driving the relay. then when you drive the pin high the relay goes high. However the downside of this is you lose the function of your LEDs that note the relays on and off
I will see if I can get a picture tonight of what I did
So that's kind of a "dirty" solution to the problem i think. ;-)
There is someone that has this woring with his own ESPurna firmware.
Would it in any way be possible to implement his code for controlling the F330 chip into ESPEasy?

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: New ESP gadget

#237 Post by krikk » 22 Mar 2017, 08:09

yeah would be great if we could incoporate this in espeasy, should be possible, but needs at least someone who is able to code it, and who has a device to test, i only have a simple sonoff no dual :)

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: New ESP gadget

#238 Post by bobbybeans » 22 Mar 2017, 20:31

BounceMeister wrote: 20 Mar 2017, 11:00
bobbybeans wrote: 14 Mar 2017, 18:28
rfromr wrote: 21 Dec 2016, 17:13 Hello,

I received the device today. The flash was success full with ESPEasy, without problems.
BUT it don't know which two GPIO's are used for the relais. Any ideas? Please help :-)

For flashing I used this picture. Pin: VCC (3.3V), RX, TX, GND

Sonoff_Dual_Hardware.png
and set this ESP PIN GPIO00 to ground.
Hey I got the ESP dual working without any plugins or anything other than basic esp easy
What you need to do is take a wire solder it to the pin of the ESP then solder the other end to the transistor driving the relay. then when you drive the pin high the relay goes high. However the downside of this is you lose the function of your LEDs that note the relays on and off
I will see if I can get a picture tonight of what I did
So that's kind of a "dirty" solution to the problem i think. ;-)
There is someone that has this woring with his own ESPurna firmware.
Would it in any way be possible to implement his code for controlling the F330 chip into ESPEasy?
opps completely forgot to get the picture, but yes i agree it is dirty and i did it before espruna even had it working. I will keep it, till espeasy has it working

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New ESP gadget

#239 Post by Shardan » 22 Mar 2017, 21:06

It definitely would be nice to have this in ESPEasy.

It's not only the Sonoff DUAL that has this additional chip, some other Sonoffs have it too.

Regards
Shardan
Regards
Shardan

Zeric
Normal user
Posts: 18
Joined: 29 Mar 2017, 22:37

Re: New ESP gadget

#240 Post by Zeric » 30 Mar 2017, 01:55

re: Sonoff Dual

The protocol to the secondary Silabs C8051F330 MCU is simple and wouldn't be hard to implement, but would require a plug in. Since the interface between the two MCUs uses the serial port, any other use would have to be disabled. This is unfortunate as the serial port logging function of Esp Easy is very helpful in debugging.

Markus Maeder wrote about the protocol on the itead discussion board. My understanding is It's basically:
19230,8,n,1
0xA0 - Start Byte
0x04 - Number of relays?
0xXX - Status/Command binary mask. Each relay is one bit, relay #1 is 0x01, relay #2 is 0x02, relay #1 and #2 is 0x03
0xA1 - Stop Byte

The protocol is bidirectional. Data from the esp8266 to the C8051F330 controls the relays, and when a button is pressed, the C8051F330 actuates the relays and lets the esp8266 know about it using the same protocol. I haven't seen anything about being able to query the C8051F330 to get the current status.

Post Reply

Who is online

Users browsing this forum: No registered users and 131 guests