[New device support]: Tuya 4 gang switch _TZE200_6wi2mope
Link
https://vi.aliexpress.com/item/1005006200978325.html?spm=a2g0o.productlist.main.21.322eAnWZAnWZWR&algo_pvid=3a64275f-3231-410c-a5d4-5d38a082b179&algo_exp_id=3a64275f-3231-410c-a5d4-5d38a082b179-10&pdp_npi=4%40dis%21SGD%2119.55%2112.71%21%21%21102.59%2166.68%21%40213ba0c517314964603534842e0bd8%2112000036712957270%21sea%21SG%210%21ABX&curPageLogUid=eG0FtYXOlkZo&utparam-url=scene%3Asearch%7Cquery_from%3A
Database entry
{"id":21,"type":"Router","ieeeAddr":"0xe498bb57c1ecad6a","nwkAddr":20635,"manufId":4660,"manufName":"_TZE200_6wi2mope","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,4,5,61184],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":100,"stackVersion":2,"hwVersion":3,"dateCode":"20210625","swBuildId":"600+TZZUT11HH102","zclVersion":2,"interviewCompleted":true,"meta":{},"lastSeen":1731495916187}
Zigbee2MQTT version
1.41.0
Comments
Hi Dev
Thank you for looking into this. What is weird id that i bought the same 4 gang switch from the same seller but with a different color and it ended up not supported in zigbee2mqtt...
External definition
const definition = {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: '_TZE200_6wi2mope',
description: 'Automatically generated definition',
extend: [],
meta: {},
};
module.exports = definition;
What does/doesn't work with the external definition?
I tried the following external converters but it didn't work
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 ota = require('zigbee-herdsman-converters/lib/ota'); const tuya = require('zigbee-herdsman-converters/lib/tuya'); const utils = require('zigbee-herdsman-converters/lib/utils'); const globalStore = require('zigbee-herdsman-converters/lib/store'); const e = exposes.presets; const ea = exposes.access;
const definition = { fingerprint: tuya.fingerprint('TS0601', ['_TZE200_aqnazj70', '_TZE204_6wi2mope', '_TZE200_k6jhsr0q', '_TZE200_di3tfv5b', '_TZE200_mexisfik']), model: 'TS0601_switch_4_gang', vendor: 'TuYa', description: '4 gang switch', exposes: [e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET), e.switch().withEndpoint('l2').setAccess('state', ea.STATE_SET), e.switch().withEndpoint('l3').setAccess('state', ea.STATE_SET), e.switch().withEndpoint('l4').setAccess('state', ea.STATE_SET)], fromZigbee: [fz.ignore_basic_report, fz.tuya_switch], toZigbee: [tz.tuya_switch_state], meta: {multiEndpoint: true}, endpoint: (device) => { // Endpoint selection is made in tuya_switch_state return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1}; }, };
module.exports = definition;
Can you try to:
- Stop Z2M
- Open
data/database.dbwith a text editor and change all occurrences of_TZE200_aqnazj70to_TZE200_di3tfv5b - Start Z2M and see if the device now works
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days