{"id":1167,"date":"2021-04-05T15:39:48","date_gmt":"2021-04-05T13:39:48","guid":{"rendered":"https:\/\/eugene.dullaard.nl\/?p=1167"},"modified":"2021-04-05T16:40:58","modified_gmt":"2021-04-05T14:40:58","slug":"lc-technology-wifi-relay","status":"publish","type":"post","link":"https:\/\/eugene.dullaard.nl\/?p=1167","title":{"rendered":"LC Technology WiFi Relay"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"555\" src=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/LC-4ch-relay.png\" alt=\"\" class=\"wp-image-1178\" srcset=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/LC-4ch-relay.png 665w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/LC-4ch-relay-300x250.png 300w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/LC-4ch-relay-150x125.png 150w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Configuring the template:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Name<\/p>\n\n\n\n<p>Based On<\/p>\n\n\n\n<p>GPIO0, 2 , 4 and 5<\/p>\n\n\n\n<p>GPIO1<\/p>\n\n\n\n<p>GPIO3<\/p>\n\n\n\n<p>GPIO9 and higher<\/p>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>LC-ESP01-4R-5V<\/p>\n\n\n\n<p>4 Channel (13)<\/p>\n\n\n\n<p>User<\/p>\n\n\n\n<p>Serial Tx<\/p>\n\n\n\n<p>Serial Rx<\/p>\n\n\n\n<p>None<\/p>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"180\" src=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/tasmota-logo-blue.png\" alt=\"\" class=\"wp-image-1172\" srcset=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/tasmota-logo-blue.png 920w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/tasmota-logo-blue-300x59.png 300w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/tasmota-logo-blue-150x29.png 150w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/tasmota-logo-blue-768x150.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>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:<\/p>\n\n\n\n<p><em>Rule1<br \/>on System#Boot do Backlog Baudrate 115200 endon<br \/>on SerialReceived#Data=41542B5253540D0A do SerialSend5 5749464920434f4e4e45435445440a5749464920474f542049500a41542b4349504d55583d310a41542b4349505345525645523d312c383038300a41542b43495053544f3d333630 endon<br \/>on Power1#State=1 do SerialSend5 A00101A2 endon<br \/>on Power1#State=0 do SerialSend5 A00100A1 endon<br \/>on Power2#State=1 do SerialSend5 A00201A3 endon<br \/>on Power2#State=0 do SerialSend5 A00200A2 endon<br \/>on Power3#State=1 do SerialSend5 A00301A4 endon<br \/>on Power3#State=0 do SerialSend5 A00300A3 endon<br \/>on Power4#State=1 do SerialSend5 A00401A5 endon<br \/>on Power4#State=0 do SerialSend5 A00400A4 endon<\/em><\/p>\n\n\n\n<p>In order to turn on the rule enter &#8216;Rule1 1&#8217; in the console and you should be good to go.<\/p>\n\n\n\n<p>Getting this to work was partly based on the following page found on Tasmota&#8217;s Github pages: <a href=\"https:\/\/tasmota.github.io\/docs\/devices\/LC-Technology-WiFi-Relay\/\">https:\/\/tasmota.github.io\/docs\/devices\/LC-Technology-WiFi-Relay\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/eugene.dullaard.nl\/?p=1167\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LC Technology WiFi Relay<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[184],"class_list":["post-1167","post","type-post","status-publish","format-standard","hentry","category-diy","tag-tasmota"],"_links":{"self":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/1167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1167"}],"version-history":[{"count":8,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/1167\/revisions"}],"predecessor-version":[{"id":1179,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/1167\/revisions\/1179"}],"wp:attachment":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}