arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

New ESP8285 based 1Channel Inching/Locking 5V/12V Sonoff #453

Closed ed1402 closed 6 years ago

ed1402 commented 7 years ago

Hi All,

I just took possession of the above new device that appears to be the new version of the old device - the pics on the Itead website has not even been updated.

This board is based on the PSF-B01 itead ESP8285 module.

I have not found any custom firmware yet that appears to work - not Tasmota, ESPEasy or Espurna seems to work.

Using Tasmota it uploads fine with success flag - but this basically puts the module in an endless switch loop with no connection to wifi as setup in config file.

Anyone have any info?

Regards, Ed

LurchiStromberg commented 7 years ago

@moonfarms Oh... I read that 3,3 Volts is Urgent not to damage the EPS Chip at flashing...

Its pretty confusing if some Guys here tell to read Wikis, but at the End all do different stuff lol

But of course i am thankful to see, that there is also a more easy Way.

One last question about the Flash Mode. If I hold the 2 Buttons and Power the Board with the mini USB nothing happens that Moment. After I release the 2 Buttons the Relais start to pulse. At the Moment i push the outer Button, both LEDs are solid.

Is that the Way it works?

moonfarms commented 7 years ago

The board will step down the usb 5v to 3.3 to power the esp chip If the TWO leds are SOLID red you can flash. I am flashing with platformio

LurchiStromberg commented 7 years ago

@moonfarms Thank you Paul for the hints, make Things more easy for me đź‘Ť So if i dont need the 3,3 Volts from the FTDI i could also use an old USB-COM Stick? Because i am still waiting for my Serial Converter from BG...

moonfarms commented 7 years ago

if your usb-com does usb to uart..... AND TX RX IS 3.3v

LurchiStromberg commented 7 years ago

I use the one Attached. I really dont know if it has UART. I used it to be able to connect a Dreambox to access Bootloader via Terminal.

stick 1

jktz90 commented 7 years ago

Its pretty confusing if some Guys here tell to read Wikis, but at the End all do different stuff lol

Because - in the end - it is a ESP8285 chip you are working with. It doesn't matter if its on a Sonoff board or Nodemcu... it is always the same. I flashed it months ago and I had no clue about possible button combination to force flash mode (it may also differ between 5V and 5V/12V model). So it is easier to just connect GPIO0 to Ground to force flash mode on every ESP8285 chip.

Maybe it is easier if you describe what u want to archieve with your Sonoff. In my case I use the Sonoff to open my garage and house door. It's important to note that your Relay will always trigger on powerup (ESPEASY Sonoff touch) which forced me to use my own sketch - so my door doesn't accidently open on power reset.

moonfarms commented 7 years ago

IMHO I think your usb to serial does not have a 3v output and you may fry the board

LurchiStromberg commented 7 years ago

@arendst One Question to you also. Today my other sOnOffs arrived, the 90-250 V Version. This ones are using the "normal" ESP 8266.

Your sonoff.bin is also for that Devices?

LurchiStromberg commented 7 years ago

@moonfarms Well i would connect the 5V Version to USB Charger as you do on your Pic and just use the RX,TX,GND from the USB-Com Adapter. So no Power comes thru it.

arendst commented 7 years ago

The latest sonoff.bin file is functional on ALL devices as it is compiled with Flash Mode Dout.

moonfarms commented 7 years ago

@ lurchi IMHO the voltage of tx rx is relevant so if your usb com tx rx outputs 5v you are gambling Let us know

LurchiStromberg commented 7 years ago

@moonfarms

No, I am powering the unit trough the usb, black wire is for ground for tx rx

Uhm....it was you who told me that you flash the Board with 5V Power from USB and GND, TX, RX from FTDI.

I also asked you and what i Quote was your Answer ;)

I think its a missunderstanding, for flashing you also use the 3,3 V from FTDI, even its not connected at your Picure, right?

moonfarms commented 7 years ago

FTDI comes in 2 versions, 5 and 3.3 v and that apply also to the voltage of tx rx, so if your ftdi is 5 v it also transmits receive in 5 v and as I mentioned the usb voltage supply to the esp is scaled down to 3.3v. If your ftdi supply 5v on tx side you may fry the board. So I am talking about the voltage of the tx rx lines

LurchiStromberg commented 7 years ago

@moonfarms Like i said we have a missunderstanding mate! The red wire on your Picture from FTDI Device goes to the Mini USB Port you plugged into the Board, right? I thought you Power it with an other Charger, so no need to take the 3,3 Volts from the FTDI...

I am only surprised you only solder Ground on the Board and not also the 3,3 Volts...

moonfarms commented 7 years ago

my red wire is NOT connected ANYWHERE!!! I am telling you about the voltage of the TX RX wire, it comes in 2 VERSIONS also, 5V and 3.3V so if your FTDI is 5V power supply TX & RX is also 5V and if FTDI is 3.3V power supply and TX RX is 3.3 V so my method uses the usb to power the sonoff but I am using 3.3 for tx rx The ground wire is necessary for tx rx to work, if no ground wire to ftdi tx rx does NOT work My USB is powered from a normal phone charger!

witek1308 commented 7 years ago

Hi All, I've just flashed mine using @moonfarms method - it worked very well and took off all the headache I had before being afraid of too much soldering. Now have a question: how to configure this module in sonoff? can I use Toggle button at all or just MQTT (preferred)? In the configuration I selected '1 channel' as type of device (name sounds relevant) but when I use e.g. Toggle, it switches the relay many times, not what I really want (as you may expect :)). Also what I observe is that after flashing, the micro usb power doesn't work (additional 5V socket to connect cables works fine) and I would be disappointed if I can't use my regular cable. My sonoff version is 5.5.2. All feedback will be highly appreciated. //edit - I managed to do toggle with setting PulseTime - I'm happy with how it works. still don't know why microusb power doesn't work. hints?

moonfarms commented 7 years ago

you can set the fixed or inching by pressing the outer button. I flashed 2 boards and did not have any issue with usb, power by usb still Working

witek1308 commented 7 years ago

thanks for your response. which sonoff have you flashed with by the way? I use 5.5.2. I observe the following behaviour (wrong for me, I need this to control garage door): = with PulseTime 0 -- when 2nd button not pressed (inching mode) when I send power on command the relay switches ON 2x (which would mean it opens and closes the door) and the goes restart -- when 2nd button pressed (fixed mode) it switches on the relay for ever which isn't good = with PulseTime > 0 (let's say 0.5s) -- when 2nd button not pressed - behaviour as above - 2x ON and then restart and instability -- when 2nd button pressed - behaviour as expected - it emulates push button for 0.5s and all is fine BUT when there is loss of power and board boots up it switches automatically 2nd switch on boot -> sends a signal to my door to change state. This would lead to unexpected opening after power loss/back

my PowerOnState=0

I have no idea how to make it behave like normal inching mode, without sending a fake 'ON' when booting. Original software does what expected but I don't trust this chinese cloud (security and availability). I have 2nd board which I planned to flash tonight but given the above I'm not sure if I want to do this...

How do you configure it and how you use it? do you set in device type 1 Channel or maybe something else? which commands you use for inching? thanks!

moonfarms commented 7 years ago

I am using 5.5.0 I want to remote a Lego Duplo train.....

as for garage door see what @jktz90 has to say: "In my case I use the Sonoff to open my garage and house door. It's important to note that your Relay will always trigger on powerup (ESPEASY Sonoff touch) which forced me to use my own sketch - so my door doesn't accidently open on power reset."

witek1308 commented 7 years ago

Thanks @moonfarms i overlooked that comment. It is absolutely relevant to me. @jktz90 can you shed more light on how you resolved it? This will be very much appreciated!

LurchiStromberg commented 7 years ago

@arendst Moin Theo!

I just successfully flashed my ESP8285 with you latest sonoff.bin

Problem is like already talked about here, that inching not works with the 1 Channel 5V Board. Is there hope that you can fix it or is it a Problem with Tasmota?

Oh....and do you know if there is somewhere the original *.bin to flash back the Stock Firmware? EDIT:

Oh, just found that... Does this

http://IPSONOFF/cm?cmnd=PulseTime2011

fix the Problem permanently ?

Its running now like it should

osmassoglia commented 7 years ago

I have the 1 Channel Inching /Self-Locking, with the version PSF-B01, i flash with the lastest version of tasmota without problem (arduinoide and atom) but the problem appear when the firmware are loaded, run the new firmware connect to wifi, stay connected 10 seconds aprox, and the device reboot logging wdt reset .... (1,6) and freeze.

When disconect the device and connect again, the terminal dont show nothing ... and don't connect to my wifi.

pd: using the @moonfarms method i get: ets Jan 8 2013,rst cause:4, boot mode:(1,7)

and the same result

Any one have the same problem?

ashwinbangalore commented 6 years ago

Since this issue is still open, thought I'd post some detail to help along. I have the same exact device (PSF-B01 inching relay), and was able to flash using the SonOTA method successfully. I have also listed some of the configuration changes I did (referenced from this thread, so thank you to the one who posted the PulseTime URL).

In case it helps someone, here it is: https://github.com/mirko/SonOTA/issues/41

Basically: -> no soldering/desoldering. -> Updated over the air (No need for serial communication) -> Configured to get it working the way it should.

sabs01 commented 6 years ago

hey Lurch can you advise what you do with this ---http://IPSONOFF/cm?cmnd=PulseTime2011 ? thanks in advance

ashwinbangalore commented 6 years ago

That's to set the duration for which the relay turns and stays on.

Essentially if you want to briefly turn on, and then off, the switch this is what you use.

On Nov 4, 2017 10:48 PM, "sabs01" notifications@github.com wrote:

hey Lurch can you advise what you do with this ---http://IPSONOFF/cm?cmnd= PulseTime2011 ? thanks in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/453#issuecomment-341950792, or mute the thread https://github.com/notifications/unsubscribe-auth/AfDOuEOLZ5mJ2_-Sd7I4xTwRjSmzSBwUks5szUw3gaJpZM4NbfEK .

sabs01 commented 6 years ago

Thanks

For those who need to set up inching on a sonoff 12v after flashing with tasmota I found this to work perfectly :

  1. Flash with 8266 arduino ide setup
  2. Login to the IP address and configure the sonoff as a WeMo mini (see settings image below)
  3. Go into console and use the following command PulseTime 10.10 (or whatever delay you want)

This sets up the delay for the on off switch to 1 sec (10ms) Hope this helps ..

stepac commented 6 years ago

Hi to everyone! I’m a beginner and I bought the board, based on the PSF-B01 itead ESP8285 module but I’m not able to use it by wifi. Noone of my device can find the module by wifi signal. May I do something before? Regards

LurchiStromberg commented 6 years ago

Hello! I have Problems with the sOnOff 5V ESP8285 and Tasmota. Everytime i reboot my Router (Fritzbox 7490) or make do a Device Search with the Echo Dot, all sOnOff 5V Moduls get a switch impulse. So if my Router restarts, all Devices get a short pulse, thats annoying.

I use the sOnOff 5V for switching my Shutters (only 1 Wire connect) So at every Pulse they open or close

That happens, when I restart the Router or make a Device search with Alexa

What went wrong in that?

branob commented 6 years ago

sonoff 1ch locking esp8285 5v For what it's worth, here is the pinout representing how it works with original firmware. Basically the two buttons and mode LED is also available on the pins. The remaining 3 pins are not connected to anything.

jktz90 commented 6 years ago

You can always consider to run your own sketch. The following sketch will react upon receive an UDP packet with "n", so you can control your shutters via smartphone or FHEM

include

include

include

include

include

include

include

include

include

include

include

//UDP Config WiFiUDP Udp; unsigned int localUdpPort = 4210;// local port to listen on unsigned int remoteUdpPort = 4210;// local port to listen on char incomingPacket[255];// buffer for incoming packets char replyPacekt[] = "Hi there! Got the message :-)";// a reply string to send back const char password = "xx"; const char ssid = "xx"; IPAddress ipa(192, 168, 178, 1); int count = 0;

void setup() { digitalWrite (12, LOW); delay(100); pinMode (12, OUTPUT);

Serial.begin(9600);

Serial.print("Starte...");

WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500);

}

Udp.begin(localUdpPort);

}

void loop() { if (WiFi.status() != WL_CONNECTED) { Wifistart(); }

int packetSize = Udp.parsePacket(); if (packetSize) { // receive incoming UDP packets

int len = Udp.read(incomingPacket, 255);
if (len > 0)
{
  incomingPacket[len] = 0;

if (incomingPacket[0] == 'n') {

// DO WHATEVER YOU WANT IF YOUR UDP PACKET CONTAINS n AT POSITION 0 // EG digitalWrite (12, LOW);

}

}

}

delay(0); count ++; if(count == 333){ wakeup(); } delay(150); }

void Wifistart(){ WiFi.begin(ssid,password); delay(5000); }

void wakeup(){ count = 0;

unsigned int udpR=2391; byte message[1]; message[0] = 1; Udp.beginPacket(ipa,udpR); Udp.write("1"); Udp.endPacket(); yield(); }

Am Mi., 7. März 2018 um 13:34 Uhr schrieb LurchiStromberg < notifications@github.com>:

Hello! I have Problems with the sOnOff 5V ESP8285 and Tasmota. Everytime i reboot my Router (Fritzbox 7490) or make do a Device Search with the Echo Dot, all sOnOff 5V Moduls get a switch impulse. So if my Router restarts, all Devices get a short pulse, thats annoying.

I use the sOnOff 5V for switching my Shutters (only 1 Wire connect) So at every Pulse they open or close

That happens, when I restart the Router or make a Device search with Alexa

What went wrong in that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/453#issuecomment-371124610, or mute the thread https://github.com/notifications/unsubscribe-auth/AcLgQO3PexF2bmRC2gUPHQIWe4zP_tnjks5tb9PLgaJpZM4NbfEK .

ronwar commented 6 years ago

Can somebody show the pin out for flashing of the new board of 1 Channel Switch 5V / 12V, the board as shown in the pic ed1402 published on May 16 2017

TSparkas commented 6 years ago

Hey guys, I got another flavour of PSF-B01 (ESP8285) board from Aliexpress: https://www.aliexpress.com/item/AC-220V-WIFI-Relay-Switch-Module-Low-Power-Jog-Mode-Phone-Remote-Timer-Control-For-Wireless/32828422609.html?spm=a2g0s.9042311.0.0.alwtoU

img_20180331_192348 img_20180331_192404

Tried to flash by connecting directly to the chip using this pinout, but no success: 29122265-fc2e6cbe-7d11-11e7-89d5-3e6db378b2fc

Always getting: warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed

Any ideas where to start?

jktz90 commented 6 years ago

U tried basics things like switching RX / TX?

2018-03-31 18:33 GMT+02:00 TSparkas notifications@github.com:

Hey guys, I got another flavour of PSF-B01 (ESP8285) board from Aliexpress: https://www.aliexpress.com/item/AC-220V-WIFI-Relay- Switch-Module-Low-Power-Jog-Mode-Phone-Remote-Timer-Control-For-Wireless/ 32828422609.html?spm=a2g0s.9042311.0.0.alwtoU

[image: img_20180331_192348] https://user-images.githubusercontent.com/32818805/38165312-23f60b42-351a-11e8-947b-07cda154dd2c.jpg [image: img_20180331_192404] https://user-images.githubusercontent.com/32818805/38165317-2b1ebb4e-351a-11e8-9bd3-8ba30451517e.jpg

Tried to flash by connecting directly to the chip using this pinout, but no success: [image: 29122265-fc2e6cbe-7d11-11e7-89d5-3e6db378b2fc] https://user-images.githubusercontent.com/32818805/38165324-3d3a3c5e-351a-11e8-893a-5dbd1bd316d2.jpg

Always getting: warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed

Any ideas where to start?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/453#issuecomment-377705468, or mute the thread https://github.com/notifications/unsubscribe-auth/AcLgQOFqiMIKaLx7DvW5AEI6-FEZJA_jks5tj6_QgaJpZM4NbfEK .

TSparkas commented 6 years ago

Yes, tried these options: 1) Switching RX/TX 2) Powering 3.3V/ground just from FTDI (to VCC-3V3 and GND pins near RX/TX) 3) Connecting just RX/TX from FTDI and powering via the board (then relay is constantly clicking, so I assume the chip is entering flash mode?)

GPIO0 was always connected to ground The board has one button, also tried to power the board while pressing the button.

So far ran out of options what is wrong.

jktz90 commented 6 years ago

Be sure you connect ground to GPIO0 before powering up the board. Also are you sure you found the correct pin outs for GPIO0, TX / RX? The layout you posted is correct, try to get the right orientation of the pinouts with the following picture: https://user-images.githubusercontent.com/29548608/29034982-580482a4-7b9a-11e7-901b-a8cf83351804.JPG

Are you sure you want to use that board vor 230V? It looks clumped up. There are better 230V AC switches from Sonoff.

2018-03-31 19:00 GMT+02:00 TSparkas notifications@github.com:

Yes, tried these options:

  1. Switching RX/TX
  2. Powering 3.3V/ground just from FTDI
  3. Connecting just RX/TX from FTDI and powering via the board (then relay is constantly clicking, so I assume the chip is entering flash mode?)

GPIO0 was always connected to ground The board has one button, also tried to power the board while pressing the button.

So far ran out of options what is wrong.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/453#issuecomment-377707513, or mute the thread https://github.com/notifications/unsubscribe-auth/AcLgQNc-ZXzzhgN6noOkKsPqySvFto6yks5tj7YkgaJpZM4NbfEK .

TSparkas commented 6 years ago

Yes, the orientation looks right.

Shall I connect ground to GPIO0 only while powering the board or it can stay connected later on?

The reason I haven't used Sonoff, because this is very compact board and fits into European light switch box, while Sonoff doesn't fit. If you have better alternatives, I am interested :)

jktz90 commented 6 years ago

Try connecting it only during power up. Also try uploading a sketch with the Arduino IDE and select the ESP8285 board.

Keep in mind ure using 230V here.. so in case your relais does not work accordingly (for example switching on / off rapidly) it could start burning (especially if the solder lines are not seperated correctly). Especially if you use it within the wall it could heat up. Its a pretty solution but also high risk . Alternative would be RF controllable switches (maybe eben WiFi?) which you buy in germany with CE approval.

2018-03-31 19:49 GMT+02:00 TSparkas notifications@github.com:

Yes, the orientation looks right.

Shall I connect ground to GPIO0 only while powering the board or it can stay connected later on?

The reason I haven't used Sonoff, because this is very compact board and fits into European switch socket box, while Sonoff doesn't fit. If you have better alternatives, I am interested :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/453#issuecomment-377710865, or mute the thread https://github.com/notifications/unsubscribe-auth/AcLgQLJE2A2XR1PS4_o-Eeo87R7p2uKAks5tj8GdgaJpZM4NbfEK .

rmarkle commented 6 years ago

@TSparkas - I'm Having a heck of a time flashing the PSF-B01, any luck?

TSparkas commented 6 years ago

No luck so far :( Will try again during the upcoming weekend.

rmarkle commented 6 years ago

@TSparkas I FINALLY figured it out. Make sure you attach your ground from your FTDI to the ground on your board.

I had some issues using a mac because of the default FTDI drivers (on second thought, maybe it's because i didn't use the ground.. idk)

This was using Arduino IDE on a windows 7 Machine.

Make sure both FTDI Board and Relay Board are disconnected from everything.

Anyway, Here's the steps i took (no solder):

  1. Prepared the FTDI - I placed the jumper wires on the RX, TX and Ground pins on the FTDI board and plugged in the FTDI board to your computer.
  2. Attached FTDI ground to the board's ground
  3. Put the relay board in flash mode by holding the two buttons, plugging in the micro usb, released the two buttons (you should hear the relay click on and off repeatedly) and hitting the "bottom" button (the button closest to the edge of the board). You should see two LEDS remain lit.
  4. Started upload process in ArduinoIDE.
  5. Quickly held the TX to pin 4 and the RX to pin 3 on the chip.

You should see an uploading progress in the ArduinoIDE so stay very still with those tx/rx pins.

That should be it! The board will automatically restart and attempt to connect to the wifi you setup in the tasmota code.

Let me know if you need any other help.

tlc76 commented 6 years ago

I've got one of these 5V devices and I managed to install Tasmota fw by following @rmarkle 's guide (thanks!) and this video. Power can be provided via the micro USB interface, while only the TX and RX pins must be connected manually to esp pins #3 and respectively #4.

Unfortunately the device does not work in inching mode; the relay is triggered approx. 4-6 times in a row and immediately the module restarts; the wifi is available few seconds later. Sometimes it remains frozen and it needs a cold reboot (plug-out / plug-in the USB cable).

However, I believe one can easily simulate the inching function by simply triggering a sequence of power on / power off commands via mqtt. This turns the device into a simple Sonoff basic, from the functionality perspective.

There is also the (somehow useless) alternate option to configure the device as ElectroDragon, in which case two switches are available:

Either way, the device works only in normal power on/off mode. If one presses sw2 and then tries to use the web/mqtt interface to fire up commands, the module will go haywire as depicted above (see italic text).

tlc76 commented 6 years ago

In case someone wants to revert to the original Itead firmware, I've dumped the esp binary before overwriting it with Tasmota.

sonoff_5v_module.bin

PauloPC commented 6 years ago

You ca use this switch as same of Sonoff 5v: Geekcreit® USB 5V DIY 1 Channel Jog Inching Self-locking WIFI Wireless Smart Home Switch Socket APP Remote Control
I flashed it soldering some wires in ESP module as photos show here.

syphe commented 6 years ago

Am having the same errors as others above:

warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed

Have tried a number of methods, interestingly, I seem to have issues with the GND connection, if I leave it off, I see activity led's on the uart lighting up a wee bit, but if I plug the GND in, I get no activity on the led's, attached a picture of the board while in flashing mode, can anyone see any problems?

img_20180607_211318

PauloPC commented 6 years ago

I flash by connecting directly to the chip using this pinout

img_20180608_043518

https://user-images.githubusercontent.com/32818805/38165324-3d3a3c5e-351a-11e8-893a-5dbd1bd316d2.jpg capturar

PauloPC commented 6 years ago

Even I send a command CMD: PowerOnState MQT: stat/sonoff5V/RESULT = {"PowerOnState":0} As result Ever time I Power on it it comes as Power ON. Some one has a solution for this?

jktz90 commented 6 years ago

@syphe How exactly did u put your Sonoff into flash mode? Ground has to be connected to GPIO0 upon power up. Select ESP 8285 generic in Ardunio IDE and try flashing. If it fails, try swapping RX/TX if ure not sure if connected correctly (RX TX / TX RX).

If I remember correctly I had some problems with the inching mode. Try disabling it (LED turns off @ USB port) and try putting it into flash mode again. The LED at the relais should be on permanetly.

syphe commented 6 years ago

Managed to get it working finally, first tried a raspberry pi I had to see if my serial adapter was the cause, then after that still didn't work ended up just soldering all the required points to the board as below.

I think what finally worked was supplying 3.3v to the board, as giving it 5v from usb didn't work, but as soon as I have it 3.3v the flashing process went through perfectly.

img_20180610_142639

Note: 3.3v is disconnected in the picture, was connected to the top right header pin in the image, I was disconnecting everything at the time, but figured I should take a picture just to show what worked for me.

antimix commented 6 years ago

I still don't have this new device (yet), but I am sure it is a derivative work of a board that used to control the relay through a chain, in which the ESP82xx sent a serial command to the chip STCSTC15F104, that activated the relay. The STC15F104 had a proprietary firmware to control the relay, but had the following serial commands to enable the relay control (using 9600,N,8,1) 0xA0 0x01 0x01 0xA2 => relay on 0xA0 0x01 0x00 0xA1 => relay off This means that for boards that still have the chip STC15F104 (I have one that has is controlled by an ESP01 on board) Tasmota could give the correct command on the serial port to enable/disable the relay.

senadaruc commented 6 years ago

Thanks for the great help, so I managed to flash my "1Channel Inching/Locking 5V/12V Sonoff "with Tasmota which is working fine but I want to install a sensor to detect if my garage door is open, so to do this I need a GPIO14 but I cant find on this board!

So is there a GPIO14 or not?

Thanks,

inching_self-locking_wifi_wireless_switch_5v_2