Converting Sniffed Data To Converter
See original GitHub issueHi,
I have sniffed some traffic between a TuYa device and its native gateway to ascertain how certain app only functions seem to work with the device.
The data points are as follows:
- wdykState: 1
- wdykCountdownTimer: 9
- wdykFaultCode: 26
- wdykRelayStatus: 27
- wdykChildLock: 29
- wdykVoltage: 101
- wdykCurrent: 102
- wdykActivePower: 103
- wdykLeakageCurrent: 104
- wdykTemperature: 105
- wdykRemainingEnergy: 106
- wdykRechargeEnergy: 107
- wdykCostParameters: 108
- wdykLeakageParameters: 109
- wdykVoltageThreshold: 110
- wdykCurrentThreshold: 111
- wdykTemperatureThreshold: 112
- wdykTotalActivePower: 113
- wdykEquipmentNumberType: 114
- wdykClearEnergy: 115
- wdykLocking: 116
- wdykTotalReverseActivePower: 117
- wdykHistoricalVoltage: 118
- wdykHistoricalCurrent: 119
I am trying to add a toZigbee converter for wdykRelayStatus
(which is power on behaviour), wdykLocking
(which is a device test), and wdykClearEnergy
(which clears the devices memory of any historical data).
When I sniff the data in wireshark, I can see an unknown command being sent from the gateway to the device and the data for the different commands looks like this:
Power On Behaviour (Off): 00:1C:1B:04:00:01:00 Power On Behaviour: (On): 00:1D:1B:04:00:01:01 Power On Behaviour (Previous): 00:1B:1B:04:00:01:02 Test: 00:1E:74:01:00:01:01 Clear: 00:38:73:01:00:01:01
In an attempt to decipher the above, it appears that the 3rd value is the data point, the 5th and 6th value always seems to remain the same, and the 7th value is the actual setting.
I have tried sending the commands in various formats from Zigbee2MQTT including using the toZigbee tuya_data_point_test
converter.
I cannot however, seem to get any of the commands working - I have managed to get other commands working such as setting the wdykState
data point
Please does anybody have any hints on how to get this going?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
No, the decode is: status = 00 (one byte) transid = 3d (one byte) dp = 6d (one byte) datatype = raw (00 - one byte) length = 8 (00 08 - two bytes) data = 01 00 00 00 19 00 00 01 (8 bytes)
Great 👍