cloning sonoff basic

26 views
Skip to first unread message

Samir Arishy

unread,
May 2, 2025, 5:17:43 AMMay 2
to TasmotaUsers
I am using the att. moduleesp01 relay module.jpg
using esp01. I flashed Tasmota and it is working as intended. I need to add physical switch to emulate the sonoff switch to manually toggle the power. Can you guide me to a solution. This module is very popular. If the schematic is needed I will upload it.

Samir Arishy

unread,
May 2, 2025, 6:16:57 AMMay 2
to TasmotaUsers
The reason I did not upload the schematic is the fact that I have 3 of them and using different components. Using transistors and no optocoupler ...etc. I am hoping for a "tasmota" solution that is independent of specific schematic. By that I mean a rule that is activated by the switch.

On Fri, May 2, 2025 at 12:17 PM Samir Arishy <ari...@gmail.com> wrote:
I am using the att. moduleesp01 relay module.jpg
using esp01. I flashed Tasmota and it is working as intended. I need to add physical switch to emulate the sonoff switch to manually toggle the power. Can you guide me to a solution. This module is very popular. If the schematic is needed I will upload it.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/sonoffusers/6b1fbfbe-da68-4462-b219-44eb5b77c57an%40googlegroups.com.

Ron L

unread,
May 2, 2025, 8:26:10 AMMay 2
to TasmotaUsers
You need to figure out which GPIO is driving the relay and if any other GPIO's are being used (for example is one of them driving a LED).  The ESP01 has GPIO 0 thru 3.  Figure out which ones are not being used and tie in your Momentary Switch to that GPIO.  Depending on which GPIO you use, you may have to use a 10k pull up or pull down resistor and then either switch the GPIO to GND or +3v.  Then in tasmota config, assign that GPIO as a Button with same number as the GPIO set as Relay.

Ron L

unread,
May 2, 2025, 8:29:16 AMMay 2
to TasmotaUsers
ESP01 Pinout.png

Philip Knowles

unread,
May 2, 2025, 10:24:29 AMMay 2
to Ron L, TasmotaUsers
I believe that some of these use a serial command to operate the relay. There are 2 versions - one which has GPIO pins and the other that doesn't
The one with the GPIO uses a serial command (from memory)

The one without uses this (and has no obvious way to attach a switch)


From: sonof...@googlegroups.com on behalf of Ron L
Sent: Friday, May 02, 2025 13:26
To: TasmotaUsers
Subject: Re: cloning sonoff basic
Reply all
Reply to author
Forward
0 new messages