Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.97k stars 1.67k forks source link

[New device support]: Tuya PIR Motion Sensor ZM-35ZH-Q TS0601 _TZE200_gjldowol #24085

Open dr-apple opened 3 weeks ago

dr-apple commented 3 weeks ago

Link

https://de.aliexpress.com/item/1005005769341971.html?spm=a2g0o.order_list.order_list_main.10.788d5c5fECwDX5&gatewayAdapt=glo2deu

Database entry

{"id":58,"type":"EndDevice","ieeeAddr":"0xa4c13845da857e68","nwkAddr":47598,"manufId":4417,"manufName":"_TZE200_gjldowol","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":12,"inClusterList":[0,61184],"outClusterList":[10,25],"clusters":{"genBasic":{"attributes":{"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":80,"stackVersion":1,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1727184411211}

Zigbee2MQTT version

1.40.1

Comments

It dosn't won't to work....

External definition

const definition = {
    zigbeeModel: ['TS0601'],
    model: 'TS0601',
    vendor: '_TZE200_gjldowol',
    description: 'Automatically generated definition',
    extend: [],
    meta: {},
};

module.exports = definition;

What does/doesn't work with the external definition?

all,, the device have nothing

tanelkoth commented 3 weeks ago

I have the same problem. In the documentation it states that the model number is 'ZM-35H-Q'. Searching through the source code I found a motion sensor that has the same model TS0202. After some cut and paste work with this model and the new fingerprint the device shows up in the Zigbee configuration. However, it seems that nothing works. This is what the configuration currently looks like:

_zigbeeModel: ['TS0601'], fingerprint: tuya.fingerprint('TS0601', ['_TZE200_gjldowol']), model: 'ZM-35H-Q', vendor: 'TuYa', description: 'Motion sensor', fromZigbee: [fromZigbee_1.default.ias_occupancy_alarm_1, fromZigbee_1.default.battery, fromZigbee_1.default.ignore_basic_report, fromZigbee_1.default.ZM35HQ_attr, legacy.fromZigbee.ZM35HQ_battery], toZigbee: [toZigbee_1.default.ZM35HQ_attr], extend: [(0, modernExtend_1.quirkCheckinInterval)(15000)], exposes: [e.occupancy(), e.battery_low(), e.battery(), e.enum('sensitivity', ea.ALL, ['low', 'medium', 'high']).withDescription('PIR sensor sensitivity'), e.enum('keep_time', ea.ALL, [30, 60, 120]).withDescription('PIR keep time in seconds'), ], configure: tuya.configureMagicPacket, whiteLabel: [ tuya.whitelabel('Aubess', '40ZH-O', 'Motion sensor', ['_TZ3040msl6wxk9']), ],

Can you help in determining what is going wrong here? Kind regards, erwin