The LC Technology relay devices use GPIO1 and GPIO3 for the serial communications used to control the relays. You do not need to specify these in the template. SerialSend uses these standard serial communications GPIO by default.
- Set module to Generic (18) (in module configuration and click save)
- Set D3 GPIO0 as Relay1 (21) (in module configuration and click save)
- Disable SerialLog (type seriallog 0 in the Tasmota console)
- If you use LC Technology v1.2 or v3 (China version) and this rule does not work, try to use 115200 baudrate (in combination with only D3 GPIO0 as Relay1 configured).
- Add the following rules typing in the console:
Rule1 on System#Boot do Backlog Baudrate 9600; SerialSend5 0 endon on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon
Enable the rule:
If that doesn’t work for you, you may find that using Power1#Boot as the event to trigger the baud rate setting (instead of System#Boot) works, as it did for me. So the alternate rule is:
Rule1 on Power1#Boot do Backlog Baudrate 9600; SerialSend5 0 endon on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon