Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
Info:TuyaMCU:TUYAMCU received: 55 AA 03 07 00 18 14 02 00 04 00 00 09 18 12 02 00 04 00 00 00 00 13 02 00 04 00 00 00 00 8D
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=3]: processing command 7 (State) with 31 bytes
Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 20, dataType 2-DP_TYPE_VALUE and 4 data bytes
Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 2328
Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 18, dataType 2-DP_TYPE_VALUE and 4 data bytes
Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
Info:TuyaMCU:TuyaMCU_ParseStateMessage: processing dpId 19, dataType 2-DP_TYPE_VALUE and 4 data bytes
Info:TuyaMCU:TuyaMCU_ParseStateMessage: raw data 4 int: 0
"add_ele": 17
"cur_current": 18
"cur_power": 19
"cur_voltage": 20
"test_bit": 21
"voltage_coe": 22
"electric_coe": 23
"power_coe": 24
"electricity_coe": 25
"fault": 26
"power_reactive": 51
"power_effective": 52
"cur_current": 18
"cur_power": 19
"cur_voltage": 20
55 AA 00 06 00 08 3402000400003E80 05
HEADER VER=00 Unk LEN fnId=52 Val V=16000 CHK
55 AA 00 00 00 00 FF
HEADER VER=00 Heartbeat LEN CHK
55 AA 00 06 00 08 3402000400005DC0 64
HEADER VER=00 Unk LEN fnId=52 Val V=24000 CHK
55 AA 00 06 00 08 340200040000C350 5A
HEADER VER=00 Unk LEN fnId=52 Val V=50000 CHK
55 AA 00 00 00 00 FF
HEADER VER=00 Heartbeat LEN CHK
55 AA 00 06 00 08 3402000400005DC0 64
HEADER VER=00 Unk LEN fnId=52 Val V=24000 CHK
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
setChannelType 2 Voltage_div10
setChannelType 3 Power_div10
// linkTuyaMCUOutputToChannel dpId variableType tgChannel
//ch 2(dpid 20) voltage
linkTuyaMCUOutputToChannel 20 1 2
//ch 3(dpid 19) power watts
linkTuyaMCUOutputToChannel 19 1 3
TL;DR: PJ-MGW1103/1103A CT-clamp meters stream 2403 raw volts = 240.3 V at 9600 baud and can push updates every 1-10 s once dpIDs are mapped correctly [Elektroda, tony059560, post #20882269] “Everything seems to be ok” — p.kaczmarek2 [Elektroda, 20849273]
Why it matters: Correct dpID mapping unlocks bidirectional kWh, sign-aware power and MQTT/HA export without extra hardware.
• Measurement range: 0.2 A – 80 A per clamp [Elektroda, randomalias324, post #21429711] • Default UART: 9600 bps, 8 N 1 [Elektroda, thalesmaia, post #20848010] • MCU report frame: 55 AA 03 …, State cmd 0x07 every ≈10 s (adjustable) [Elektroda, erdeidominik1999, post #21114187] • Key dpIDs: 18 = I, 19 = P, 20 = V; sign bits 102/104 [Elektroda, snkbrzmir4, post #21117274] • Calibration dpIDs: 116-125 (V, I, P, Wh, F) [Elektroda, erdeidominik1999, post #21114187]