Hi!
I bought the smart plug and couldn't find a pin config for it, so figured it out by myself.
Photos:
A3 - RX
A2 - TX
Boot pin is the test point near the VCC pin.
Config:
Btw, when i'm trying to import this config through the WebApp i see only the first startup command on the device. Could be some parsing error. Backlog command and one line solve the problem.
Could you paste the exact config you’re trying to import (the full JSON/text), including the startup commands?
Which WebApp / firmware version are you using, and what exactly do you see in the console/log when the import runs and only the first startup command is applied?
version 1.18.288
So nothing special.
I bought the smart plug and couldn't find a pin config for it, so figured it out by myself.
Photos:
A3 - RX
A2 - TX
Boot pin is the test point near the VCC pin.
Config:
Spoiler:
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "SmartPlug LIVEBEST 20A EU [J17]",
"model": "J17",
"chip": "LN882H",
"board": "LIVEBEST J17 VER2.1",
"flags": "1024",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"3": "BL0937SEL;0",
"4": "Rel;1",
"5": "BL0937CF1;0",
"6": "Btn;1",
"7": "WifiLED_n;0",
"10": "BL0937CF;0"
},
"command": "startDriver BL0937rnPowerSave 0",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "SmartPlug LIVEBEST 20A EU [J17]",
"model": "J17",
"chip": "LN882H",
"board": "LIVEBEST J17 VER2.1",
"flags": "1024",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"3": "BL0937SEL;0",
"4": "Rel;1",
"5": "BL0937CF1;0",
"6": "Btn;1",
"7": "WifiLED_n;0",
"10": "BL0937CF;0"
},
"command": "startDriver BL0937rnPowerSave 0",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
Btw, when i'm trying to import this config through the WebApp i see only the first startup command on the device. Could be some parsing error. Backlog command and one line solve the problem.
Could you paste the exact config you’re trying to import (the full JSON/text), including the startup commands?
Spoiler:
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "SmartPlug LIVEBEST 20A EU [J17]",
"model": "J17",
"chip": "LN882H",
"board": "LIVEBEST J17 VER2.1",
"flags": "1024",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"3": "BL0937SEL;0",
"4": "Rel;1",
"5": "BL0937CF1;0",
"6": "Btn;1",
"7": "WifiLED_n;0",
"10": "BL0937CF;0"
},
"command": "startDriver BL0937rnPowerSave 0",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "SmartPlug LIVEBEST 20A EU [J17]",
"model": "J17",
"chip": "LN882H",
"board": "LIVEBEST J17 VER2.1",
"flags": "1024",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"3": "BL0937SEL;0",
"4": "Rel;1",
"5": "BL0937CF1;0",
"6": "Btn;1",
"7": "WifiLED_n;0",
"10": "BL0937CF;0"
},
"command": "startDriver BL0937rnPowerSave 0",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
Which WebApp / firmware version are you using, and what exactly do you see in the console/log when the import runs and only the first startup command is applied?
version 1.18.288
Spoiler:
Info:MAIN:Drv BL0937 stopped.
Info:CMD:[WebApp Cmd 'stopDriver * // kill drivers' Result] OK
Info:CMD:[WebApp Cmd 'backlog setPinRole 5 BL0937CF1; setPinChannel 5 0' Result] OK
Info:CMD:CMD_PowerSave: will set to 0
Info:CMD:[WebApp Cmd 'PowerSave 0"' Result] OK
Info:MAIN:Drv BL0937 stopped.
Info:CMD:[WebApp Cmd 'stopDriver * // kill drivers' Result] OK
Info:CMD:[WebApp Cmd 'backlog setPinRole 5 BL0937CF1; setPinChannel 5 0' Result] OK
Info:CMD:CMD_PowerSave: will set to 0
Info:CMD:[WebApp Cmd 'PowerSave 0"' Result] OK
So nothing special.