附上 esphome的modbus日志
10:52:42 [D] [sensor:093] 'Power Monitor Uptime': Sending state 89307.83594 s with 0 decimals of accuracy
10:52:42 [V] [json:038] Attempting to allocate 512 bytes for JSON serialization
10:52:42 [V] [json:058] Size after shrink 84 bytes
10:52:47 [V] [modbus:199] Modbus write: 01.04.00.00.00.0A.70.0D (8)
10:52:47 [V] [modbus:042] Modbus received Byte 1 (0X1)
地址 1
10:52:47 [V] [modbus:042] Modbus received Byte 4 (0X4)
10:52:47 [V] [modbus:042] Modbus received Byte 20 (0X14)
字节数 20
10:52:47 [V] [modbus:042] Modbus received Byte 8 (0X8)
10:52:47 [V] [modbus:042] Modbus received Byte 162 (0Xa2)
电压 08a2
10:52:47 [V] [modbus:042] Modbus received Byte 1 (0X1)
10:52:47 [V] [modbus:042] Modbus received Byte 129 (0X81)
10:52:47 [V] [modbus:042] Modbus received Byte 0 (0X0)
10:52:47 [V] [modbus:042] Modbus received Byte 0 (0X0)
电流 00000181=385=0.385A
10:52:47 [V] [modbus:042] Modbus received Byte 2 (0X2)
10:52:47 [V] [modbus:042] Modbus received Byte 29 (0X1d)
10:52:47 [V] [modbus:042] Modbus received Byte 0 (0X0)
10:52:47 [V] [modbus:042] Modbus received Byte 0 (0X0)
功率 0000021d=541=54.1W
10:52:48 [V] [modbus:042] Modbus received Byte 115 (0X73)
10:52:48 [V] [modbus:042] Modbus received Byte 24 (0X18)
10:52:48 [V] [modbus:042] Modbus received Byte 0 (0X0)
10:52:48 [V] [modbus:042] Modbus received Byte 1 (0X1)
电能 00017318=95000=95000Wh???? <<<<<<<<<<<<-------- 只有这一个数值不对
10:52:48 [V] [modbus:042] Modbus received Byte 1 (0X1)
10:52:48 [V] [modbus:042] Modbus received Byte 244 (0Xf4)
频率 01f4=500=50.0Hz
10:52:48 [V] [modbus:042] Modbus received Byte 0 (0X0)
10:52:48 [V] [modbus:042] Modbus received Byte 64 (0X40)
功率因数
10:52:48 [V] [modbus:042] Modbus received Byte 0 (0X0)
10:52:48 [V] [modbus:042] Modbus received Byte 0 (0X0)
报警状态
10:52:48 [V] [modbus:042] Modbus received Byte 25 (0X19)
10:52:48 [V] [modbus:042] Modbus received Byte 198 (0Xc6)
10:52:48 [D] [pzemac:049] PZEM AC: V=221.0 V, I=0.385 A, P=54.1 W, E=95000.0 Wh, F=50.0 Hz, PF=0.64
10:52:48 [V] [sensor:043] 'Power Monitor Voltage': Received new state 221.000000
10:52:48 [D] [sensor:093] 'Power Monitor Voltage': Sending state 221.00000 V with 1 decimals of accuracy
|