I’m workig on a driver for a soilsensor device.
There is only one data transmitted : humidity
I receive a data that is supposed to have a lengh of 4 and the buffer seems to be 16 bytes long …
I do not understand and I can’t imagine what to do with this buffer !
Could it be that datatype: 2 means (u)int32, so 4 bytes per data point, and then 4 data points, equals 16 bytes in total?
It seems really strange …
Furthermore this buffer is always the same regardless the humidity level …
The sensor is _TZE284_aao3yzhs TS0601
It is supposed to work with the Tuya Zigbee app from John Bendz but it does not !
I’m trying to solve the issue but with no more success !
It is a Tuya sensor.
I receive only two datapoints : #9 which is the temperature unit and #3 which should be the humidity (it’s for this one I received this strange buffer …)
This issue is already known : Device Request - [Soil Sensor] - [Tuya] / [_TZE284_aao3yzhs TS0601] · Issue #1009 · JohanBendz/com.tuya.zigbee · GitHub
I lost a lot of time trying to understand the content of this buffer, with no success.
I finally pulled out a gateway under SmartLife and the sensor was instantly recognized…
This had already been the case with an alarm …
Of course, Homey has a lot of advantages and infinite possibilities but why is it always so complicated to develop these drivers… And why aren’t they available as standard ???
I really wonder !
I think Athom should really take up the problem
Good news !
I have solve the issue and the driver is now running.
The buffer returned was too long, longer than its announced length.
The solution is to take it into account only for its announced length (and not for its actual length).
Furthermore, the temperature should be divided by 10.
Finally, I solved this issue.
My previous post was wrong.
It is in fact a Tuya multi datapoint frame.
It is interpreted as follows:
Tuya header : 4 bytes
after that, several blocks till the end of the buffer :
each block :
- DataPoint : 1 byte
- TypeData : 1 byte
- DataLength : 2 bytes
- Data : depending of DataLength
I tested and the result is correct !
I found this solution thanks to ChatGPT !!
In the next few days, I’ll publish the resulting driver.
