sonoff dual flashing the ESP

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
bryan
Normal user
Posts: 21
Joined: 05 Feb 2017, 18:15

Re: sonoff dual flashing the ESP

#51 Post by bryan » 08 Oct 2017, 14:01

Here is the untested version with states as shown in previous post:
SonoffDual.zip
(297.32 KiB) Downloaded 218 times

HEMELIC
Normal user
Posts: 3
Joined: 07 Sep 2017, 22:23

Re: sonoff dual flashing the ESP

#52 Post by HEMELIC » 08 Oct 2017, 14:56

:D
Last edited by HEMELIC on 26 Jan 2020, 15:56, edited 1 time in total.

bryan
Normal user
Posts: 21
Joined: 05 Feb 2017, 18:15

Re: sonoff dual flashing the ESP

#53 Post by bryan » 08 Oct 2017, 22:56

HEMELIC wrote:
08 Oct 2017, 14:56
Ok now we have the state but only when the commands go through the ESP. If you use the physical buttons it does not update... Any ideas for that
Hi Hemelic,

You will have to explain your setup. If you press the physical button, does it change the state in domoticz?
If it does, it will send the state to the esp using a url. (eg. http://192.168.0.50/control?cmd=Sonoff2,1)

HEMELIC
Normal user
Posts: 3
Joined: 07 Sep 2017, 22:23

Re: sonoff dual flashing the ESP

#54 Post by HEMELIC » 08 Oct 2017, 23:34

:D
Last edited by HEMELIC on 26 Jan 2020, 15:55, edited 3 times in total.

babylone_59
Normal user
Posts: 2
Joined: 24 Oct 2017, 11:22

Re: sonoff dual flashing the ESP

#55 Post by babylone_59 » 24 Oct 2017, 11:28

Hello everybody,,

I want to flash my Sonoff DUAL with ESPEasy.
I want to use with Jeedom

I have 2 questions :
Today, it's possible to flash DUAL with ESPEasy ?
Where I can find a tutorial to flash my Sonoff ?

Thanks,

User avatar
enesbcs
Normal user
Posts: 505
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: sonoff dual flashing the ESP

#56 Post by enesbcs » 24 Oct 2017, 18:56

babylone_59 wrote:
24 Oct 2017, 11:28
Hello everybody,,

I want to flash my Sonoff DUAL with ESPEasy.
I want to use with Jeedom

I have 2 questions :
Today, it's possible to flash DUAL with ESPEasy ?
Where I can find a tutorial to flash my Sonoff ?

Thanks,
The hardware part of the flashing is exactly the same as the Tasmota wiki writes (the ESPEasy wiki needs some updating, I've only found Sonoff S20 and Touch in it):
https://github.com/arendst/Sonoff-Tasmo ... onoff-Dual
The software part is very similar with ESPTool, but using an ESPEasy binary instead of Tasmota one... :)
https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool
I can provide you a tested ESPEasy binary with Serial MCU plugin, use the one with 1024 in the name:
download/file.php?id=1581

However i am not familiar with Jeedom, using only Domoticz.

babylone_59
Normal user
Posts: 2
Joined: 24 Oct 2017, 11:22

Re: sonoff dual flashing the ESP

#57 Post by babylone_59 » 24 Oct 2017, 22:27

Ok thank you, flash is OK.
Now, what 's the config in jeedom ?
Who know jeedom ? ESPeasy or MQTT Plugin ?

User avatar
grovkillen
Core team member
Posts: 3603
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: sonoff dual flashing the ESP

#58 Post by grovkillen » 24 Oct 2017, 23:07

enesbcs wrote:
24 Oct 2017, 18:56
...
the ESPEasy wiki needs some updating, I've only found Sonoff S20 and Touch in it
....
I only have been able to add the Touch to the wiki (thanks to a friend who bought the unit for himself). That fact shines to the problem the writers of the wiki have; we don't own every piece of hardware that is possible to run ESP Easy. I do own quite a bit but no Sonoff yet (will get a hand on the Basic soon though).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
enesbcs
Normal user
Posts: 505
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: sonoff dual flashing the ESP

#59 Post by enesbcs » 25 Oct 2017, 07:05

grovkillen wrote:
24 Oct 2017, 23:07
enesbcs wrote:
24 Oct 2017, 18:56
...
the ESPEasy wiki needs some updating, I've only found Sonoff S20 and Touch in it
....
I only have been able to add the Touch to the wiki (thanks to a friend who bought the unit for himself). That fact shines to the problem the writers of the wiki have; we don't own every piece of hardware that is possible to run ESP Easy. I do own quite a bit but no Sonoff yet (will get a hand on the Basic soon though).
Thank you for the Touch! Maybe other users can do description pages for other devices in a specific part of this forum, and after it can be imported to the wiki? Just a thought.

User avatar
grovkillen
Core team member
Posts: 3603
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: sonoff dual flashing the ESP

#60 Post by grovkillen » 25 Oct 2017, 08:03

Sounds like a good idea! :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

QcVictor
Normal user
Posts: 46
Joined: 23 Feb 2016, 00:47

Re: sonoff dual flashing the ESP

#61 Post by QcVictor » 18 Dec 2017, 16:29

Hi Guys
After succes flashing with both .bin found page 3 et above doesn't work for me with dual r2 (one with no fuse), the serial monitor work at 74880 and give me:

Code: Select all

ets Jan  8 2013,rst cause:1, boot mode:(3,5)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c

User avatar
grovkillen
Core team member
Posts: 3603
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: sonoff dual flashing the ESP

#62 Post by grovkillen » 18 Dec 2017, 17:20

QcVictor wrote:
18 Dec 2017, 16:29
Hi Guys
After succes flashing with both .bin found page 3 et above doesn't work for me with dual r2 (one with no fuse), the serial monitor work at 74880 and give me:

Code: Select all

ets Jan  8 2013,rst cause:1, boot mode:(3,5)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c
Just use the esp8285 bin files and you're good.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

QcVictor
Normal user
Posts: 46
Joined: 23 Feb 2016, 00:47

Re: sonoff dual flashing the ESP

#63 Post by QcVictor » 18 Dec 2017, 20:28

Code: Select all

Just use the bin files and you're good.
Where is located this file I see nothing esp8285 ...

User avatar
grovkillen
Core team member
Posts: 3603
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: sonoff dual flashing the ESP

#64 Post by grovkillen » 18 Dec 2017, 20:45

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

QcVictor
Normal user
Posts: 46
Joined: 23 Feb 2016, 00:47

Re: sonoff dual flashing the ESP

#65 Post by QcVictor » 18 Dec 2017, 21:15

QcVictor wrote:
18 Dec 2017, 20:28

Code: Select all

Just use the bin files and you're good.
Where is located this file I see nothing esp8285 ...
Ok My Bad I was looking for special firmware as my older dual, let me abuse, which GPIO is use for trigged the relays?

User avatar
grovkillen
Core team member
Posts: 3603
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: sonoff dual flashing the ESP

#66 Post by grovkillen » 18 Dec 2017, 21:21

QcVictor wrote:
18 Dec 2017, 21:15
QcVictor wrote:
18 Dec 2017, 20:28

Code: Select all

Just use the bin files and you're good.
Where is located this file I see nothing esp8285 ...
Ok My Bad I was looking for special firmware as my older dual, let me abuse, which GPIO is use for trigged the relays?
Typical 12 and 15 but just try, no harm in giving high value to a GPIO.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

QcVictor
Normal user
Posts: 46
Joined: 23 Feb 2016, 00:47

Re: sonoff dual flashing the ESP

#67 Post by QcVictor » 18 Dec 2017, 23:05

Tks for the help grovkillen, GPIO are 12 and 5 for me..

Moslof
Normal user
Posts: 1
Joined: 22 Dec 2017, 16:46

Re: sonoff dual flashing the ESP

#68 Post by Moslof » 22 Dec 2017, 17:00

As a newbie to ESP Easy, I'm on a steep learning curve. I will be using flashed Sonoff devices to communicate with Mosquitto via MQTT and controlled by Openhab. Openhab & mosquitto are up & running on a Rasberry PI. I am considering using a Sonoff Dual as an Intermediate switch in order to control some internal lights that are currently controlled by 3 switches (2 'normal' switches and an intermediate). If I can configure the Sonoff Dual to work as an intermediate switch, then all I have to do is add it into the wiring scheme and everything will work 'electrically'.

In order to turn a Sonoff Dual into an intermediate switch, all I have to do is 'cross-wire the 2 relays so that the incoming 'lighting circuit' wire goes to the common terminals. The NC of each relay will be wired to the NO of the other relay. And the outgoing 'lighting circuit' goes from the 'NC' (or 'NO') terminals.

I am confident in my lighting circuit wiring knowledge & abilities - so the 'power' side of things are under control.

My questions are:
Is there now an ESPEasy version that will run on a Sonoff Dual?
Can I configure ESPEASY to switch both relays on simultaneously via one MQTT command & off simultaneously with a second MQTT command?
In the Sonoff Dual POW version, will the power measurement work properly with the relays configured this way?
Any issues/constraints that I should be aware of when using it in this configuration?

Thanks for any advice/guidance/insight.

User avatar
enesbcs
Normal user
Posts: 505
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: sonoff dual flashing the ESP

#69 Post by enesbcs » 26 Dec 2017, 08:12

Moslof wrote:
22 Dec 2017, 17:00
My questions are:
Is there now an ESPEasy version that will run on a Sonoff Dual?
Yes it can be used for example with the Serial MCU plugin, tested binaries can be found at this thread:
viewtopic.php?f=6&t=3245&start=50#p17144
Or you can use bryan's solution:
viewtopic.php?f=4&t=2869&start=40#p17447
Moslof wrote:
22 Dec 2017, 17:00
Can I configure ESPEASY to switch both relays on simultaneously via one MQTT command & off simultaneously with a second MQTT command?
Currently only exclusive mode implemented in the plugin, but it is not so complicated to code simultaneous mode. I attached an untested binary 1M/128k SPIFFS for testing purposes with selectable simultaneous mode.

The above mentioned only refer to the original Sonoff Dual, the new Dual R2 can be flashed with a normal ESPEasy version because it's relays can be driven by normal ESP GPIOs:
https://github.com/arendst/Sonoff-Tasmota/issues/1249

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests