Page 1 of 1
Sonoff
Posted: Friday 16 June 2017 17:15
by marcotrumpet
Hi all.
Some of you can link me a guide on how to make domoticz switch the sonoff relay? I followed many how to on this forum but I can't make this work. I installed espeasy on my sonoff. Thanks so much for your help, I'm sorry for posting this again

Re: Sonoff
Posted: Friday 16 June 2017 17:56
by mKotek
If you have installed ESPEasy on Sonoff, take a look at:
https://www.letscontrolit.com/wiki/index.php/Relais
Re: Sonoff
Posted: Friday 16 June 2017 18:27
by marcotrumpet
Mmm ... I’m a bit confused. How con I know the pin? I want to connect a light bulb to the sonoff and then turn on/off the light from domoticz and the physical wall switch.
EDIT
I think I can't use sonoff to switch my bulb on/off both from domoticz and wall switch.. some of you know a way to do this?
Inviato dal mio iPad utilizzando Tapatalk
Re: Sonoff
Posted: Saturday 17 June 2017 9:03
by mKotek
With Sonoff, the button is attached to GPIO 0 and the relay to GPIO 12. You can also have GPIO 14 available if you soldier all 5 pins on the board. The one on the most left is GPIO 14.
As for the switching, you need to use rules - take a look at the forum for ESP Easy, we have discussed that there.
Re: Sonoff
Posted: Saturday 17 June 2017 9:27
by marcotrumpet
Ok so I need to solder the in wall switch to the button on sonoff great! I'm surfing the esp easy forum, if you have some usefull link I appreciate
Inviato dal mio SM-G950F utilizzando Tapatalk
Re: Sonoff
Posted: Saturday 17 June 2017 19:18
by stephenmhall
if I were you I would switch to the Sonoff-Tasmota firmware, really does just work out of the box.
You do need a MQTT server, I have mosquitto running on my Synology alongside Domoticz.
Flash the firmware, access the device web page on a tablet or phone, config the type of sonoff switch and your domoticz details including the idx of the virtual switch you are linking it to and bang it works.
https://github.com/arendst/Sonoff-Tasmota
Re: Sonoff
Posted: Saturday 17 June 2017 20:57
by marcotrumpet
Thank you everybody.. I used espeasy and soldered wires from gpio0 button to my wall switch
Inviato dal mio SM-G950F utilizzando Tapatalk
Re: Sonoff
Posted: Sunday 18 June 2017 9:42
by marcotrumpet
stephenmhall wrote:if I were you I would switch to the Sonoff-Tasmota firmware, really does just work out of the box.
You do need a MQTT server, I have mosquitto running on my Synology alongside Domoticz.
Flash the firmware, access the device web page on a tablet or phone, config the type of sonoff switch and your domoticz details including the idx of the virtual switch you are linking it to and bang it works.
https://github.com/arendst/Sonoff-Tasmota
Can you tell me ehy to lrefere tasmota instead espeasy?
Inviato dal mio SM-G950F utilizzando Tapatalk