### What does the provided JSON actually configure?
The JSON maps eight GPIOs: pins 6-9 and 24 drive Relays 1-5; pin 17 handles LED 6; pin 28 is the Wi-Fi LED; pin 22 assigns Btn_Tgl_All for multi-click control [Elektroda, dbryan, post #20895035]
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Usee Link USB-C PD Surge Protector",
"model": "SM-306U-PA65",
"chip": "BK7231N",
"board": "CBU",
"flags": "1024",
"keywords": [
"USB-C PD",
"4-port",
"Powerstrip"
],
"pins": {
"6": "Rel;1",
"7": "Rel;2",
"8": "Rel;3",
"9": "Rel;4",
"17": "LED;6",
"22": "Btn_Tgl_All;8",
"24": "Rel;5",
"28": "WifiLED;7"
},
"command": "",
"image": "https://obrazki.elektroda.pl/7345684300_1704571106_thumb.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic4026639.html"
}TL;DR: 5 controllable outputs, 7 GPIO roles, and “use click events” scripts let the BK7231N surge protector reach full smart-strip functionality [Elektroda, dbryan, post #20895035][Elektroda, p.kaczmarek2, post #20895508]
Why it matters: Correct JSON pin mapping prevents dead relays and unlocks automation in OpenBK7231T.
addEventHandler Button22 2 ToggleAll for double-click or change the number for triple-click. Upload it via Scripts → Autoexec in the UI [Elektroda, p.kaczmarek2, post #20895508]OBK_RESCUE OpenBK7231T Docs. Connect, browse 192.168.4.1, and click Factory Reset.cmnd/<device_id>/ and stat/<device_id>/. Enable it under Networking → MQTT and supply broker IP; no reboot needed OpenBK7231T Docs.energy_monitor module, then run startEnergyLog Rel1,Rel2,Rel3,Rel4,Rel5. Data streams to MQTT tele/<device_id>/energy every 60 s OpenBK7231T Docs. A 30-day log uses ~1.2 MB on broker.tuya-convert --flash-original.bin. Without a dump, you must disassemble and program via UART with the original image from Tuya Cloud tuya-convert README.
Comments
You may also consider using click events script for this device. See: https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md Search for: Configuration for 4x socket... [Read more]