Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
857 stars 2.84k forks source link

Add support for TS0601 _TZE200_d0yu2xgi LTECH CCT SE-20-250-1000-W2Z2 #7649

Closed morcus closed 2 weeks ago

morcus commented 3 weeks ago

Hello,

Can you please help to add support for the LTECH CCT SE-20-250-1000-W2Z2 zigbee device?

It's advertised as "TS0601" "_TZE200_d0yu2xgi".

This external converter is working fine for me.

Thank you.

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 legacy = require('zigbee-herdsman-converters/lib/legacy');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    fingerprint: [
        {modelID: 'TS0601', manufacturerName: '_TZE200_2gtsuokt'}
    ],
    model: 'CCT SE-20-250-1000-W2Z2',
    vendor: 'LTECH',
    description: 'Tuya LED (CCT mode)',
    fromZigbee: [legacy.fz.tuya_light_wz5],
    toZigbee: [legacy.tz.tuya_dimmer_state, legacy.tz.tuya_light_wz5],
    exposes: [e.light().withBrightness().setAccess('state', ea.STATE_SET).setAccess('brightness', ea.STATE_SET).withColorTemp([250, 454]).setAccess('color_temp', ea.STATE_SET)],
    meta: {},
};

module.exports = definition;
Koenkk commented 2 weeks ago

Added, thanks!

Changes will be available in the dev branch in a few hours from now.