I got zapped so many times, i now exists entirely out of electricity...countcobolt wrote: ↑08 Aug 2017, 20:38 Just to let you know : It works. Just pay attention when connecting the 220V to it while running. Don't ask me what component I touched, but got zapped twice
sonoff dual flashing the ESP
Moderators: grovkillen, Stuntteam, TD-er
Re: sonoff dual flashing the ESP
Re: sonoff dual flashing the ESP
hi Brian,
thanks for your work!
The On/Off commands work fine, but what do i have to do when i want to use the 'LongPulse' command?
I have no experience in EasyEsp and Arduino so is it possible to add a timer in your plugin?
regards
jomixl
thanks for your work!
The On/Off commands work fine, but what do i have to do when i want to use the 'LongPulse' command?
I have no experience in EasyEsp and Arduino so is it possible to add a timer in your plugin?
regards
jomixl
Re: sonoff dual flashing the ESP
Hi Jomixl,
You can use rules to start a timer. Check the rules wiki.
Eg. Create an event called sonoffpulse.
Enable sonoff1, start a timer.
When the timer is finished , disable sonoff1.
Btw. I did not change anything for the rules. I've just added two commands that can be called directly in a url or indirectly using rules.
https://www.letscontrolit.com/wiki/inde ... rial_Rules
Regards,
Bryan
Re: sonoff dual flashing the ESP
Hi Steve,countcobolt wrote: ↑08 Aug 2017, 15:17 Hey Bryan,
just tried it but sitting remote, so cannot see the result. From the log file this does seem to work.
Just another stupid Q: which GPIO's are the additional button 1 and button 2?
Kind regards
Steve
The buttons are not connected to the GPIO's from the esp.
Regards,
Bryan
Re: sonoff dual flashing the ESP
Thanks Bryan,
now i will try to create that rule.....
this is what i did:
On Sonoff1Pulse do
Sonoff1,1
timerSet,1,10
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
this seems to me ok,
but i am confused about the creation of the event.
i made a switch input named sonoff1pulse
with the value sonoff1 and enabled it
Edit 1 ✔ Switch input Sonoff1Pulse Sonoff1:1
Edit 2
Edit 3
Edit 4
i can switch the relay on but ther is no timerevent to switch it off.
i also tried to call the event itself with
http://192.168.1.40/control?cmd=event,Sonoff1Pulse
it was working and the relay was off again.
now i tried to start it again but ther was no reaktion.
after a few seconds i tried it again and it worked.
do i have to disable somehow the timer when the relay goes off?
ok, to send the event is not relayable, somtimes it works, somtimes not and somtimes the relays stucks on.
in the meantime i tried a lot of silly variations.
i think my main problem is to setup a working event on the sonoff dual.
if you would have a working example it would be great.
regards
jomixl
now i will try to create that rule.....
this is what i did:
On Sonoff1Pulse do
Sonoff1,1
timerSet,1,10
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
this seems to me ok,
but i am confused about the creation of the event.
i made a switch input named sonoff1pulse
with the value sonoff1 and enabled it
Edit 1 ✔ Switch input Sonoff1Pulse Sonoff1:1
Edit 2
Edit 3
Edit 4
i can switch the relay on but ther is no timerevent to switch it off.
i also tried to call the event itself with
http://192.168.1.40/control?cmd=event,Sonoff1Pulse
it was working and the relay was off again.
now i tried to start it again but ther was no reaktion.
after a few seconds i tried it again and it worked.
do i have to disable somehow the timer when the relay goes off?
ok, to send the event is not relayable, somtimes it works, somtimes not and somtimes the relays stucks on.
in the meantime i tried a lot of silly variations.
i think my main problem is to setup a working event on the sonoff dual.
if you would have a working example it would be great.
regards
jomixl
Last edited by jomixl on 14 Aug 2017, 19:06, edited 1 time in total.
Re: sonoff dual flashing the ESP
hello Bryan,
it seems to me that something with the scribt goes wrong.
i have made this rules:
On Sonoff1On do
Sonoff1,1
timerSet,1,5
endon
On Sonoff1Off do
Sonoff1,0
timerSet,1,0
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
i can switch the relay on with caling sonoff1On and switch it off with caling sonoff1Off, but only sometimes the relay is switched off by
timer1.
In most cases the first call of sonoff1On is working, when i call it again, after the timer switched the relay off, the relay went on again and stays on.
Is this a problem of your plugin or easyesp?
it seems to me that something with the scribt goes wrong.
i have made this rules:
On Sonoff1On do
Sonoff1,1
timerSet,1,5
endon
On Sonoff1Off do
Sonoff1,0
timerSet,1,0
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
i can switch the relay on with caling sonoff1On and switch it off with caling sonoff1Off, but only sometimes the relay is switched off by
timer1.
In most cases the first call of sonoff1On is working, when i call it again, after the timer switched the relay off, the relay went on again and stays on.
Is this a problem of your plugin or easyesp?
Re: sonoff dual flashing the ESP
Hi jomixl,jomixl wrote: ↑13 Aug 2017, 19:30 hello Bryan,
it seems to me that something with the scribt goes wrong.
i have made this rules:
On Sonoff1On do
Sonoff1,1
timerSet,1,5
endon
On Sonoff1Off do
Sonoff1,0
timerSet,1,0
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
i can switch the relay on with caling sonoff1On and switch it off with caling sonoff1Off, but only sometimes the relay is switched off by
timer1.
In most cases the first call of sonoff1On is working, when i call it again, after the timer switched the relay off, the relay went on again and stays on.
Is this a problem of your plugin or easyesp?
What happens when you disable the controller?
What I can imagine is that the controller sends an update to the esp after you've send the sonoff1on command.
You can also try to remove the timerset,1,0 and just wait for the timer to expire before starting a new command.
Regards,
Bryan
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
Your rules are not using correct syntax. "Sonoff1,1" is not doing anything. It should probably be something like this:jomixl wrote: ↑13 Aug 2017, 09:18 Thanks Bryan,
now i will try to create that rule.....
this is what i did:
On Sonoff1Pulse do
Sonoff1,1
timerSet,1,10
endon
On Rules#Timer=1 do //When Timer1 expires, do
Sonoff1,0
endon
this seems to me ok,
but i am confused about the creation of the event.
i made a switch input named sonoff1pulse
with the value sonoff1 and enabled it
Edit 1 ✔ Switch input Sonoff1Pulse Sonoff1:1
Edit 2
Edit 3
Edit 4
i can switch the relay on but ther is no timerevent to switch it off.
i also tried to call the event itself with
http://192.168.1.40/control?cmd=event,Sonoff1Pulse
it was working and the relay was off again.
now i tried to start it again but ther was no reaktion.
after a few seconds i tried it again and it worked.
do i have to disable somehow the timer when the relay goes off?
ok, to send the event is not relayable, somtimes it works, somtimes not and somtimes the relays stucks on.
in the meantime i tried a lot of silly variations.
i think my main problem is to setup a working event on the sonoff dual.
if you would have a working example it would be great.
regards
jomixl
Code: Select all
On Sonoff1On do
GPIO,0,1
timerSet,1,5
endon
On Sonoff1Off do
GPIO,0,0
timerSet,1,0
endon
On Rules#Timer=1 do //When Timer1 expires, do
GPIO,0,0
endon
https://www.letscontrolit.com/wiki/inde ... nd_Publish
and here
https://www.letscontrolit.com/wiki/inde ... ith_events
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 32
- Joined: 12 Jun 2017, 11:12
Re: sonoff dual flashing the ESP
Hi Bryan
I am in a similar situation as above. I am working on a blinds controller, not using any devices, simply your Sonoff nomenclature. Using GPIO does not work. Using Sonoff works, but ... sometimes although the log show that the timers are running and the Sonoff switch are switched, nothing happens. Using 2 timers to delay that actual action (Timer 2 and 3) seems to partially resolve this. Any clues on this ? I can mimic it by simply adding 2 lightbulbs on the sonoff and try to turn the lights off. The main reason for stopping all action first is to make sure that the motor does not get power to both directions.
also in my log I notice that it says switch set to 2
I am in a similar situation as above. I am working on a blinds controller, not using any devices, simply your Sonoff nomenclature. Using GPIO does not work. Using Sonoff works, but ... sometimes although the log show that the timers are running and the Sonoff switch are switched, nothing happens. Using 2 timers to delay that actual action (Timer 2 and 3) seems to partially resolve this. Any clues on this ? I can mimic it by simply adding 2 lightbulbs on the sonoff and try to turn the lights off. The main reason for stopping all action first is to make sure that the motor does not get power to both directions.
Code: Select all
On close_blinds do
Sonoff1,0
Sonoff2,0
timerset,2,2
timerSet,1,17
endOn
On open_blinds do
Sonoff1,0
Sonoff2,0
timerSet,3,2
timerSet,1,17
endOn
On Rules#Timer=1 do
Sonoff1,0
Sonoff2,0
endOn
On Rules#Timer=2 do
Sonoff1,1
endOn
On Rules#Timer=3 do
Sonoff2,1
endOn
On stop_blinds do
Sonoff1,0
Sonoff2,0
endOn
Code: Select all
Aug 15 13:15:41 ESP Unit: 20 : EVENT: Rules#Timer=1
Aug 15 13:15:41 ESP Unit: 20 : ACT : Sonoff1,0
Aug 15 13:15:41 ESP Unit: 20 : SW : Sonoff 1 Set to 0 switchstate Set to 2
Aug 15 13:15:41 ESP Unit: 20 : ACT : Sonoff2,0
Aug 15 13:15:41 ESP Unit: 20 : SW : Sonoff 2 Set to 0 switchstate Set to 0
Re: sonoff dual flashing the ESP
hi Bryan,
i am sending the commands by my own tool, that means commands are sent only on a buttonclick.
the sonoff1,1 ond sonoff1,0 commands work stable.
when i set the relay with the scipt Sonoff1On the relay is set but not alltimes reset by the timer1.
the script Sonoff1Off works stabel.
i will try to show this behaviour with a logfile this evening.
.... its good that i'm not the only one with this problem .......
jomixl
i am sending the commands by my own tool, that means commands are sent only on a buttonclick.
the sonoff1,1 ond sonoff1,0 commands work stable.
when i set the relay with the scipt Sonoff1On the relay is set but not alltimes reset by the timer1.
the script Sonoff1Off works stabel.
i will try to show this behaviour with a logfile this evening.
.... its good that i'm not the only one with this problem .......
jomixl
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
Sorry, I didn't see that you use a plugin. Then it works like you say. Sorry!!
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
The switchstate is what is send out on the serial to the pic.
Switchstate 0 = switch 1 is off, switch 2 is off
Switchstate 1 = switch 1 is on , switch 2 is off
Switchstate 2 = switch 1 is off, switch 2 is on
Switchstate 3 = switch 1 is on, switch 2 is on
Did you disable serial in the advanced settings?
It should be disabled, as the serial is used to send the commands.
Could be that that is causing the problem.
Regards,
Bryan
Switchstate 0 = switch 1 is off, switch 2 is off
Switchstate 1 = switch 1 is on , switch 2 is off
Switchstate 2 = switch 1 is off, switch 2 is on
Switchstate 3 = switch 1 is on, switch 2 is on
Did you disable serial in the advanced settings?
It should be disabled, as the serial is used to send the commands.
Could be that that is causing the problem.
Regards,
Bryan
Re: sonoff dual flashing the ESP
hello Bryan,
since i disabled the serial port it seems to work when i call the event drectly.
But i could not get an event when i just switch Sonoff1 on.
Maybe i ther is a fault in my rules:
what would be the syntax for an event when Sonoff1 goes on and what do i have to do in the devices.
it seams to me that for the donoff-dual it is different.
Thanks
jomixl
since i disabled the serial port it seems to work when i call the event drectly.
But i could not get an event when i just switch Sonoff1 on.
Maybe i ther is a fault in my rules:
what would be the syntax for an event when Sonoff1 goes on and what do i have to do in the devices.
it seams to me that for the donoff-dual it is different.
Thanks
jomixl
Re: sonoff dual flashing the ESP
Did you add a device with type sonoff dual?jomixl wrote: ↑15 Aug 2017, 18:03 hello Bryan,
since i disabled the serial port it seems to work when i call the event drectly.
But i could not get an event when i just switch Sonoff1 on.
Maybe i ther is a fault in my rules:
what would be the syntax for an event when Sonoff1 goes on and what do i have to do in the devices.
it seams to me that for the donoff-dual it is different.
Thanks
jomixl
If you add this device and configure the idx, you should get an update as soon as sonoff1 or sonoff2 is called in the rules.
Regards,
Bryan
Re: sonoff dual flashing the ESP
Good advice Bryan.bryan wrote: ↑19 Aug 2017, 22:37Did you add a device with type sonoff dual?jomixl wrote: ↑15 Aug 2017, 18:03 hello Bryan,
since i disabled the serial port when i call the event drectly.
But i could suggest this awesome pea protein powder and get an event when i just switch Sonoff1 on.
Maybe i ther is a fault in my rules:
what would be the syntax for an event when Sonoff1 goes on and what do i have to do in the devices.
it seams to me that for the donoff-dual it is different.
Thanks
jomixl
If you add this device and configure the idx, you should get an update as soon as sonoff1 or sonoff2 is called in the rules.
Regards,
Bryan
Last edited by Abundis on 05 Jan 2021, 15:09, edited 5 times in total.
Re: sonoff dual flashing the ESP
mmm
Did flash the dual..
Try some pins..
Cannot get working.
In the wiki are pins: 1, 3, (14) 0 (button), 12 (Relay 10A/16A@230VAC), 13 (LED), 14 (AM2301)
When i try them i get no switch working
Is it correct that i must activate the pins with this command?
:http://192.168.5.112/control?cmd=GPIO,10,1
Or is the dual with the latest dev. software different like the singel sonof??
Do i need to set the pins in the esp with a idx?
I do have the wifi vc and the uptime etc working..
I can see the webgui. so the flash is k i think.
Did flash the dual..
Try some pins..
Cannot get working.
In the wiki are pins: 1, 3, (14) 0 (button), 12 (Relay 10A/16A@230VAC), 13 (LED), 14 (AM2301)
When i try them i get no switch working
Is it correct that i must activate the pins with this command?
:http://192.168.5.112/control?cmd=GPIO,10,1
Or is the dual with the latest dev. software different like the singel sonof??
Do i need to set the pins in the esp with a idx?
I do have the wifi vc and the uptime etc working..
I can see the webgui. so the flash is k i think.
Re: sonoff dual flashing the ESP
please???
Help...
Help...
Re: sonoff dual flashing the ESP
Please read this topic before asking.
Re: sonoff dual flashing the ESP
Last edited by HEMELIC on 26 Jan 2020, 15:57, edited 3 times in total.
Re: sonoff dual flashing the ESP
The switch state is saved in a local variable, but not yet publicly available.
state = 0, both switches are off
state = 1, switch 1 = on, switch 2 = off
state = 2, switch 1 = off, switch 2 = on
state = 3, switch 1 = on, switch 2 = on
Is it usable when this is publicly available?
state = 0, both switches are off
state = 1, switch 1 = on, switch 2 = off
state = 2, switch 1 = off, switch 2 = on
state = 3, switch 1 = on, switch 2 = on
Is it usable when this is publicly available?
Last edited by bryan on 08 Oct 2017, 14:01, edited 2 times in total.
Re: sonoff dual flashing the ESP
Here is the untested version with states as shown in previous post:
Re: sonoff dual flashing the ESP
Last edited by HEMELIC on 26 Jan 2020, 15:56, edited 1 time in total.
Re: sonoff dual flashing the ESP
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)
Re: sonoff dual flashing the ESP
Last edited by HEMELIC on 26 Jan 2020, 15:55, edited 3 times in total.
-
- New user
- Posts: 2
- Joined: 24 Oct 2017, 11:22
Re: sonoff dual flashing the ESP
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,
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,
Re: sonoff dual flashing the ESP
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):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,
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.
-
- New user
- Posts: 2
- Joined: 24 Oct 2017, 11:22
Re: sonoff dual flashing the ESP
Ok thank you, flash is OK.
Now, what 's the config in jeedom ?
Who know jeedom ? ESPeasy or MQTT Plugin ?
Now, what 's the config in jeedom ?
Who know jeedom ? ESPeasy or MQTT Plugin ?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
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.grovkillen wrote: ↑24 Oct 2017, 23:07I 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).
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
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:
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
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
Just use the esp8285 bin files and you're good.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
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
Code: Select all
Just use the bin files and you're good.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
Ok My Bad I was looking for special firmware as my older dual, let me abuse, which GPIO is use for trigged the relays?QcVictor wrote: ↑18 Dec 2017, 20:28Where is located this file I see nothing esp8285 ...Code: Select all
Just use the bin files and you're good.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff dual flashing the ESP
Typical 12 and 15 but just try, no harm in giving high value to a GPIO.QcVictor wrote: ↑18 Dec 2017, 21:15Ok My Bad I was looking for special firmware as my older dual, let me abuse, which GPIO is use for trigged the relays?QcVictor wrote: ↑18 Dec 2017, 20:28Where is located this file I see nothing esp8285 ...Code: Select all
Just use the 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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff dual flashing the ESP
Tks for the help grovkillen, GPIO are 12 and 5 for me..
Re: sonoff dual flashing the ESP
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.
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.
Re: sonoff dual flashing the ESP
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
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
Who is online
Users browsing this forum: No registered users and 98 guests