zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[TS0222 / _TZ3000_hy6ncvmw] device support for Tuya Luminance Sensor

Open tl-zigbee opened this issue 1 year ago • 0 comments

Link

https://www.aliexpress.com/item/1005008235484533.html Related to: https://github.com/Koenkk/zigbee2mqtt/issues/25449

What happened?

Wrongly detected as TS0222_light with display

What did you expect to happen?

To correctly detect device with this manufacturer _TZ3000_hy6ncvmw

Debug logs

from Dev console:

import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
    zigbeeModel: ['TS0222'],
    model: 'TS0222',
    vendor: '_TZ3000_hy6ncvmw',
    description: 'Automatically generated definition',
    extend: [m.battery(), m.temperature(), m.humidity(), m.illuminance(), m.iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})],
    meta: {},
};

from database.db: {"id":13,"type":"EndDevice","ieeeAddr":"0xa4c13809967611a0","nwkAddr":53444,"manufId":4417,"manufName":"_TZ3000_hy6ncvmw","powerSource":"Battery","modelId":"TS0222","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":262,"inClusterList":[1,3,1026,1029,1024,1280,0],"outClusterList":[3,25,10],"clusters":{"genBasic":{"attributes":{"65503":" |0\u0013 |0\u0012","65506":51,"65508":0,"65534":0,"modelId":"TS0222","manufacturerName":"_TZ3000_hy6ncvmw","powerSource":3,"zclVersion":3,"stackVersion":0,"hwVersion":1,"dateCode":"","appVersion":67}},"msIlluminanceMeasurement":{"attributes":{"measuredValue":1}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200,"batteryVoltage":30}},"ssIasZone":{"attributes":{"iasCieAddr":"0x8c8b48fffe4fdddd","zoneState":1}}},"binds":[{"cluster":1024,"type":"endpoint","deviceIeeeAddress":"0x8c8b48fffe4fdddd","endpointID":1}],"configuredReportings":[{"cluster":1024,"attrId":0,"minRepIntval":10,"maxRepIntval":3600,"repChange":5}],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1761056592363}

Details

os: #81180 SMP Fri Oct 3 13:55:28 CST 2025 - 4.4.302+ - x64 node: v22.16.0 zigbee2mqtt: 2.6.2 (4d247f3ae129ee7318eeede877ffdbbd27444693 ) zigbee-herdsman: 6.1.5 zigbee-herdsman-converters: 25.35.1 adapter: EmberZNet {"build":397,"ezsp":14,"major":8,"minor":0,"patch":2,"revision":"8.0.2 [GA]","special":0,"type":170}

Device

software_build_id: undefined date_code: `` endpoints:

{"1":{"bindings":[{"cluster":"msIlluminanceMeasurement","target":{"endpoint":1,"ieee_address":"0x8c8b48fffe4fdddd","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","msTemperatureMeasurement","msRelativeHumidity","msIlluminanceMeasurement","ssIasZone","genBasic"],"output":["genIdentify","genOta","genTime"]},"configured_reportings":[{"attribute":"measuredValue","cluster":"msIlluminanceMeasurement","maximum_report_interval":3600,"minimum_report_interval":10,"reportable_change":5}],"scenes":[]}}

tl-zigbee avatar Oct 21 '25 06:10 tl-zigbee