zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[External Converter]: TS0002 from _TZ3000_dershnvx

Open slippery-carrot opened this issue 6 months ago • 2 comments

Link

https://asthome.com.au/products/1-4-gang-zigbee-no-neutral-smart-switch-glass-saa-approved-for-australia-black-or-white

Database entry

{"id":21,"type":"Router","ieeeAddr":"0xa4c138e06a28e0c5","nwkAddr":60939,"manufId":4417,"manufName":"_TZ3000_dershnvx","powerSource":"Mains (single phase)","modelId":"TS0002","epList":[1,2,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"bq)1\u0012","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_dershnvx","zclVersion":3,"appVersion":83,"modelId":"TS0002","powerSource":1}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":3,"moesStartUpOnOff":2,"tuyaBacklightSwitch":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2,"switchType":0}},"manuSpecificTuya4":{"attributes":{"inching":"AAAAAgAA"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002e1244fb","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002e1244fb","endpointID":1}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1779066992372}

Zigbee2MQTT version

2.10.1

External converter

import reporting from "zigbee-herdsman-converters/lib/reporting";
import tuya from "zigbee-herdsman-converters/lib/tuya";

export default {
    fingerprint: tuya.fingerprint("TS0002", ["_TZ3000_dershnvx"]),
    model: "TS0002_switch_2_gang_ASTHome",
    vendor: "Tuya / ASTHome",
    description: "2-gang switch with LED backlight",

    extend: [
        tuya.modernExtend.tuyaBase(),
        tuya.modernExtend.tuyaOnOff({
            switchType: true,
            powerOnBehavior2: true,
            onOffCountdown: true,
            indicatorMode: true,
            endpoints: ["l1", "l2"],
        }),
    ],
    endpoint: (device) => {
        return {l1: 1, l2: 2};
    },

    meta: {multiEndpoint: true,},

    configure: async (device, coordinatorEndpoint) => {
        await tuya.configureMagicPacket(device, coordinatorEndpoint);
        await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ["genOnOff"]);
        await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ["genOnOff"]);
    },
};

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

What Works

  • Switch toggle
  • Power off countdown
  • LED backlight control
  • Link quality
  • Switch type (seems to work after a reboot but need to confirm)

Notes

No response

slippery-carrot avatar May 18 '26 03:05 slippery-carrot

🙏 Thank you for creating this issue and sharing your external converter!

In case all features work, please submit a pull request on this repository so the device can be supported out-of-the-box with the next release. For instructions on how to create a pull request see the docs.

If NOT all features work, please follow the How To Support new devices. Since this is a Tuya also consider How To Support new Tuya devices.

If you need help with the process, feel free to ask here and we'll be happy to assist.

github-actions[bot] avatar May 18 '26 03:05 github-actions[bot]

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

github-actions[bot] avatar Jul 18 '26 00:07 github-actions[bot]