Skip to content

Commit 6171973

Browse files
Koenkkpull[bot]
authored andcommitted
Add TS0601_switch_5_gang. Koenkk/zigbee2mqtt#14369
1 parent 25c32e2 commit 6171973

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

devices/tuya.js

+29
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,35 @@ module.exports = [
12941294
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1};
12951295
},
12961296
},
1297+
{
1298+
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_jwsjbxjs']),
1299+
model: 'TS0601_switch_5_gang',
1300+
vendor: 'TuYa',
1301+
description: '5 gang switch',
1302+
fromZigbee: [tuya.fzDataPoints],
1303+
toZigbee: [tuya.tzDataPoints],
1304+
configure: tuya.configureMagicPacket,
1305+
exposes: [
1306+
tuya.exposes.switch.withEndpoint('l1'),
1307+
tuya.exposes.switch.withEndpoint('l2'),
1308+
tuya.exposes.switch.withEndpoint('l3'),
1309+
tuya.exposes.switch.withEndpoint('l4'),
1310+
tuya.exposes.switch.withEndpoint('l5'),
1311+
],
1312+
endpoint: (device) => {
1313+
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1, 'l5': 1};
1314+
},
1315+
meta: {
1316+
multiEndpoint: true,
1317+
tuyaDatapoints: [
1318+
[1, 'state_l1', tuya.valueConverter.onOff],
1319+
[2, 'state_l2', tuya.valueConverter.onOff],
1320+
[3, 'state_l3', tuya.valueConverter.onOff],
1321+
[4, 'state_l4', tuya.valueConverter.onOff],
1322+
[5, 'state_l5', tuya.valueConverter.onOff],
1323+
],
1324+
},
1325+
},
12971326
{
12981327
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_nkjintbl'}],
12991328
model: 'TS0601_switch_2_gang',

0 commit comments

Comments
 (0)