Replies: 1 comment 1 reply
-
Here is another log part from today after updating z2m to version 1.8.3. The values "illuminance", "illuminance_lux" and "battery" are same as on the device display. By that way, I call the device "KlimaTuya01". I still stuck to retrieve the additional parameters like temperature and humidity. Does somebody has an idea whether temperature and humidity are part of the message or can guide me into the right direction to translate those "raw" data messages?
|
Beta Was this translation helpful? Give feedback.
-
Hi, it is the first time that I ask for help for this topic. Please bear with me if I do not yet adhere to a certain form. I bought a temperature sensor model NAS-TH02B manufactured by Neo. According the short manual it should connect to the Tuya app "Smart Life". Because this device is not supported by zigbee2mqtt yet, I added the following part to the devices.js:
{ fingerprint: [ {type: 'EndDevice', manufacturerID: 4098, endpoints: [{ID: 1, inputClusters: [], outputClusters: []}]}, {manufacturerName: '_TZ3000_qaaysllp'}, ], zigbeeModel: ['TS0201'], model: 'TS0201', vendor: 'NEO', description: 'Temperature, humidity & illuminance sensor with display', fromZigbee: [fz.battery, fz.temperature, fz.humidity, fz.illuminance], toZigbee: [], exposes: [e.battery(), e.temperature(), e.humidity(), e.illuminance()], },
If I pair it now with my CC26x2R LaunchPad than it communicates the battery status and the illuminance like this:
{"battery":100,"device":{"applicationVersion":67,"dateCode":"","friendlyName":"KlimaTuya01","hardwareVersion":1,"ieeeAddr":"0x842e14fffee547f0","manufacturerID":4098,"manufacturerName":"_TZ3000_qaaysllp","model":"TS0201","networkAddress":33629,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"illuminance":11762,"illuminance_lux":15,"linkquality":12}
The values are coorect. However there is also temperature and humidity measured but not shown on mqtt. I went through the "How to support new devices" procedure including for Tuya devices but I stuck.
In the following debug log I saw that there is maybe more data:
The entry in database.db for this device is:
{"id":31,"type":"EndDevice","ieeeAddr":"0x842e14fffee547f0","nwkAddr":33629,"manufId":4098,"manufName":"_TZ3000_qaaysllp","powerSource":"Battery","modelId":"TS0201","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":262,"inClusterList":[0,1,1024,57346],"outClusterList":[25,10],"clusters":{"msIlluminanceMeasurement":{"attributes":{"61441":50,"measuredValue":0}},"genBasic":{"attributes":{"modelId":"TS0201","manufacturerName":"_TZ3000_qaaysllp","powerSource":3,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1619814961378}
But I do not know how to deal with this raw data type buffer. Is there a documentation which could guide me into the right direction or does somebody can help me?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions