-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Link
Database entry
{"id":38,"type":"Router","ieeeAddr":"0xa4c138ac07c852e9","nwkAddr":18812,"manufId":4417,"manufName":"_TZE204_ue3rzddr","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"stackVersion":0,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{},"lastSeen":1763827102395}
Zigbee2MQTT version
2.6.3 (unknown)
External definition
export default {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: '_TZE204_ue3rzddr',
description: 'Automatically generated definition',
extend: [],
};What does/doesn't work with the external definition?
The device didnt recognized and not supported. I found an external converter, but it either doesn't work or isn't loaded when start Z2M.
Please help me set up an external converter.
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition = {
fingerprint: [
{
modelID: 'TS0601',
manufacturerName: '_TZE204_ue3rzddr',
},
],
model: 'TS0601',
vendor: 'TuYa',
description: 'DIMMER knob with 4 state button',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
configure: tuya.configureMagicPacket,
exposes: [
tuya.exposes.lightBrightnessWithMinMax(),
e.power_on_behavior(),
tuya.exposes.countdown(),
tuya.exposes.lightType()
],
meta: {
tuyaDatapoints: [
[1, 'state', tuya.valueConverter.onOff, {skip: tuya.skip.stateOnAndBrightnessPresent}],
[2, 'brightness', tuya.valueConverter.scale0_254to0_1000],
[3, 'min_brightness', tuya.valueConverter.divideBy10],
[4, 'light_type', tuya.valueConverter.raw],
[5, 'max_brightness', tuya.valueConverter.divideBy10],
[6, 'countdown', tuya.valueConverter.countdown],
[10, 'light_type_2', tuya.valueConverter.raw],
[14, 'power_on_behavior', tuya.valueConverter.powerOnBehavior],
[26, 'backlight_switch', tuya.valueConverter.onOff]
],
},
};
module.exports = definition;
In debug logs see:
z2m: Received Zigbee message from '0xa4c138ac07c852e9', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":14}],"seq":52736}' from endpoint 1 with groupID 0
z2m: No converter available for 'TS0601' with cluster 'manuSpecificTuya' and type 'commandDataReport' and data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":14}],"seq":52736}'
info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt_2/0xa4c138ac07c852e9', payload '{"last_seen":"2025-11-22T15:19:50.696Z","linkquality":84}'
Notes
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"bindings":[],"clusters":{"input":["genGroups","genScenes","manuSpecificTuya","genBasic"],"output":["genOta","genTime"]},"configured_reportings":[],"scenes":[]},"242":{"bindings":[],"clusters":{"input":[],"output":["greenPower"]},"configured_reportings":[],"scenes":[]}}