LC Technology WiFi Relay - FengtianGu/Sonoff-Tasmota GitHub Wiki
LC Technology WiFi Relay - Single Relay
In order to use LC Technology WiFi Relay for 1 relay version, please
- Set module to Generic (in module configuration and click save)
- Set i.e. GPIO12 as Relay1 (in module configuration and click save)
- Disable seriallog (type
seriallog 0
in the tasmota console) - Enable rules (type
rule1 1
in the tasmota console) - Add the following rules typing in the console:
Rule1 on System#Boot do Baudrate 9600 endon on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon
- Note: If that doesn't work for you, you may find that using Power1#Boot as the event to trigger the baudrate setting (instead of System#Boot) works, as it did for me. So the alternate rule one command is..
on Power1#Boot do Baudrate 9600 endon on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon
LC Technology WiFi Relay - Dual Relay (note, older versions of this board used a baud rate of 9600, so if 115200 doesn't work, try 9600)
To configure an LC Technology ESP8266 Relay X2, use the following settings...
- Set module to Generic (in module configuration and click save)
- Set GPIO0 and GPIO2 as Relay1 and Relay 2 (in module configuration and click save)
- Disable seriallog (type
seriallog 0
in the tasmota console) - Enable rule1 (type
rule1 1
in the tasmota console) - Enable rule2 (type
rule2 1
in the tasmota console) - Add the following rules typing in the console:
Rule1 on System#Boot do Baudrate 9600 endon on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon
Rule2 on Power2#State=1 do SerialSend5 A00201A3 endon on Power2#State=0 do SerialSend5 A00200A2 endon
Beware of counterfeit modules
If your board just continuously flashes its led when powered on and no esp-01 is entered, the onboard STC15F104W needs to be programmed! For more details see https://www.esp8266.com/viewtopic.php?f=160&t=13164&start=68#p74262
Additionally once programmed, you may also have to remove r4, some issues exist where r3 and r4 are swapped, but just removing r4 works.