Tag Archives: Tasmota

LC Technology WiFi Relay

Wanted to get this LC Technology WiFi Relay X4 with Nuvoton MS51FB9AE controller working with Tasmota. It took a bit of tinkering but with the following changes do have it running.

After flashing the ESP01 module supplied with the board with Tasmota the following configuration changes made the module working with the 4 onboard relays so they can be configured with your home automation controller.

Configuring the template:

Name

Based On

GPIO0, 2 , 4 and 5

GPIO1

GPIO3

GPIO9 and higher

LC-ESP01-4R-5V

4 Channel (13)

User

Serial Tx

Serial Rx

None

After configuring the above a rule needs to be added in the console, copy the below code and paste it within the console of Tasmota:

Rule1
on System#Boot do Backlog Baudrate 115200 endon
on SerialReceived#Data=41542B5253540D0A do SerialSend5 5749464920434f4e4e45435445440a5749464920474f542049500a41542b4349504d55583d310a41542b4349505345525645523d312c383038300a41542b43495053544f3d333630 endon
on Power1#State=1 do SerialSend5 A00101A2 endon
on Power1#State=0 do SerialSend5 A00100A1 endon
on Power2#State=1 do SerialSend5 A00201A3 endon
on Power2#State=0 do SerialSend5 A00200A2 endon
on Power3#State=1 do SerialSend5 A00301A4 endon
on Power3#State=0 do SerialSend5 A00300A3 endon
on Power4#State=1 do SerialSend5 A00401A5 endon
on Power4#State=0 do SerialSend5 A00400A4 endon

In order to turn on the rule enter ‘Rule1 1’ in the console and you should be good to go.

Getting this to work was partly based on the following page found on Tasmota’s Github pages: https://tasmota.github.io/docs/devices/LC-Technology-WiFi-Relay/