Direct links to images
https://obrazki.elektroda.pl/7395949400_1717752788.jpg
https://obrazki.elektroda.pl/1434656900_1717752789.jpg
https://obrazki.elektroda.pl/7710502000_1717752789.jpg
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam// Measurements - Dpid 6 "phase_a" - channel RAW_TAC2121C_VCP -> 5,6,7
// TAC2121C VoltageCurrentPower Packet
// This will automatically set voltage, power and current
linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Power
setChannelLabel 6 "Power"
setChannelType 7 Current_div1000
setChannelLabel 7 "Current"// Measurements - Dpid 6 "phase_a" - channel RAW_TAC2121C_VCP -> 5,6,7
// TAC2121C VoltageCurrentPower Packet
// This will automatically set voltage, power and current
linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 5
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Power
setChannelLabel 6 "Power"
setChannelType 7 Current_div1000
setChannelLabel 7 "Current"linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Power
setChannelLabel 6 "Power"
setChannelType 7 Current_div1000
setChannelLabel 7 "Current"linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 5
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Power
setChannelLabel 6 "Power"
setChannelType 7 Current_div1000
setChannelLabel 7 "Current"linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 5
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Current_div1000
setChannelLabel 6 "Current"
setChannelType 7 Power
setChannelLabel 7 "Power"linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
setChannelType 5 Voltage_div10
setChannelLabel 5 "Voltage"
setChannelType 6 Current_div1000
setChannelLabel 6 "Current"
setChannelType 7 Power
setChannelLabel 7 "Power"linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP
setChannelType 7 Voltage_div10
setChannelLabel 7 "Voltage"
setChannelType 6 Power
setChannelLabel 6 "Power"
setChannelType 5 Current_div1000
setChannelLabel 5 "Current"TL;DR: 63 A DIN-rail breaker logs 230 V/50 Hz data every 5–10 min, but “addRepeatingEvent 10 -1 tuyaMcu_sendQueryState” cuts it to 10 s [Elektroda, morgan_flint, post #21005072] “Flash first, you can always restore the 2 MB backup” [Elektroda, p.kaczmarek2, post #20693586] Why it matters: Faster, local data means no Tuya cloud and safer automation.
• Rated: 230 V ±10 %, 63 A, <2 W self-consumption [Elektroda, crash1912, post #20693422] • SoC module: WB3S or CBU (BK7231 N/T) with 2 MB flash [Elektroda, crash1912, #20693722; morgan_flint, #20830794] • Factory frame rate: 5 min (V/I/P), 10 min (energy) [Elektroda, morgan_flint, post #21005072] • Supports negative power (export) but still increments kWh [Elektroda, morgan_flint, post #20853227] • DP table: 20 datapoints; key ones → 6-VCP, 11-prepay, 16-relay, 104-PF, 105-Freq [Elektroda, morgan_flint, post #20837470]
linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP and assign channels Voltage_div10, Current_div1000, Power [Elektroda, p.kaczmarek2, post #21364564]linkTuyaMCUOutputToChannel 6 RAW_TAC2121C_VCP 5 (where 5 is your voltage channel). Wrong order swaps current/power and can reopen the relay [Elektroda, morgan_flint, post #21365381]addRepeatingEvent 10 -1 tuyaMcu_sendQueryState to autoexec.bat to poll every 10 s without Tuya cloud traffic.Settings_Prepaid_visibility() to keep it visible and load credit before enabling prepay [Elektroda, morgan_flint, post #21007376]data.find(t=>t.id==21) returns undefined. Add a null check or default r=0 before processing to prevent the UI from breaking [Elektroda, Angel0fDeath, post #20990164]55AA030765… and resets kWh. Relay state is unchanged [Elektroda, Angel0fDeath, post #20990164]