-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Link
Database entry
{"id":73,"type":"EndDevice","ieeeAddr":"0xa4c13870eb8defff","nwkAddr":38442,"manufId":4417,"manufName":"_TZE284_hodyryli","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0,60672],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65487":14400,"65503":"�)\u000f1i�0\u000f1i\u00004\u000f1i\u00034\u000f1i","65506":56,"65508":0,"65534":0,"stackVersion":0,"appVersion":80,"dateCode":"","manufacturerName":"_TZE284_hodyryli","zclVersion":3,"modelId":"TS0601","powerSource":3}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":80,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1769783426740}
Zigbee2MQTT version
2.7.2 (unknown)
External converter
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE284_hodyryli'
}
],
model: 'ZT03_PRO',
vendor: 'Tuya',
description: 'Temperature & humidity Sensor with external probe and display',
extend: [tuya.modernExtend.tuyaBase({dp: true})],
exposes: [
e.temperature(),
e.humidity(),
e.battery(),
e.numeric('temperature_probe', ea.STATE)
.withUnit('°C')
.withDescription('Temperatura probe')
],
meta: {
tuyaDatapoints: [
[1, 'temperature', tuya.valueConverter.divideBy10],
[2, 'humidity', tuya.valueConverter.raw],
[38, 'temperature_probe', tuya.valueConverter.divideBy10],
[3, 'battery', {
from: (v) => {
const levels = {0: 10, 1: 50, 2: 100};
return levels[v] !== undefined ? levels[v] : v;
}
}]
],
},
};
module.exports = definition;What does/doesn't work with the external definition?
This is a temperature and humidity sensor with an external temperature probe and a display. I used the 'TZ-ZT01_GA4' model converter as a base, which has the same functions but lacks a display. The data from all sensors is arriving correctly in Home Assistant. However, for the probe sensor, I couldn't assign the properties state_class: measurement and device_class: temperature. It's missing these properties, which prevents it from being used in statistics.
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"clusters":{"input":["genGroups","genScenes","manuSpecificTuya","genBasic","zosungIRTransmit"],"output":["genOta","genTime"]}}}