LCTECH.CC ESP8266 Relay x2 and x4 #2264
M4RT1NJB
started this conversation in
MEPLHAA Scripts Collection
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Device Name: LCTECH.CC ESP8266 Relay x2 and x4 various names on manufaturer's website include: (ESP8266 WiFi Relay IoT smart home, SKU :LC-Relay-ESP01-4R-5V, 5V ESP8266 four ways wifi relay IOT smart home cell phone ap)
URL to Device:
http://www.chinalctech.com/cpzx/1/427.html
http://www.chinalctech.com/xwzx/24.html
Actual items purchased and tested:
https://amzn.eu/d/hUrYtNC
https://amzn.eu/d/61Vnk0x
https://amzn.eu/d/dKulBys
Used HAA version: Home Accessory Architect v12.12.5 Merlin
Summary of functions: Switch on and off relays (switches)
MEPLHAA script (x4 version):
{"c":{"io":[[[13],2],[[0],6]],"l":13,"b":[[0,5]],"r":[{"n":0,"s":115200,"p":0,"b":0}]},"a":[{"t":1,"0":{"u":[{"n":0,"v":"A00100A1"}]},"1":{"u":[{"n":0,"v":"A00101A2"}]}},{"t":1,"0":{"u":[{"n":0,"v":"A00200A2"}]},"1":{"u":[{"n":0,"v":"A00201A3"}]}},{"t":1,"0":{"u":[{"n":0,"v":"A00300A3"}]},"1":{"u":[{"n":0,"v":"A00301A4"}]}},{"t":1,"0":{"u":[{"n":0,"v":"A00400A4"}]},"1":{"u":[{"n":0,"v":"A00401A5"}]}}]}
MEPLHAA script (x2 version):
{"c":{"io":[[[13],2],[[0],6]],"l":13,"b":[[0,5]],"r":[{"n":0,"s":115200,"p":0,"b":0}]},"a":[{"t":1,"0":{"u":[{"n":0,"v":"A00100A1"}]},"1":{"u":[{"n":0,"v":"A00101A2"}]}},{"t":1,"0":{"u":[{"n":0,"v":"A00200A2"}]},"1":{"u":[{"n":0,"v":"A00201A3"}]}}]}
Long description: Sends the following codes over UART. (See product link for more information)
Open relay 1:A0 01 01 A2
Close relay 1:A0 01 00 A1
Open relay 2:A0 02 01 A3
Close relay 2:A0 02 00 A2
Open relay 3:A0 03 01 A4
Close relay 3:A0 03 00 A3
Open relay 4:A0 04 01 A5
Close relay 4:A0 04 00 A4
Photos, additional information...:
Works with both 5V and 12V relay versions.
Beta Was this translation helpful? Give feedback.
All reactions