[External Converter]: TS0003 from _TZ3000_nrdwow8a

Open
#33,831 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
backend, devtools

Research direction

Start by reading the external converter and the reported endpoint and attribute data for model TS0003 from _TZ3000_nrdwow8a. Check the existing Tuya converter support for the listed backlight, switch type, power-on behavior, indicator mode, and countdown options, then compare their behavior with the reported results. Done means the converter correctly exposes and operates the supported options across endpoints l1, l2, and l3.

Written by the indexing model from the issue text.

Description

external converter
Link

https://www.ekaza.com.br/automacao/interruptor-inteligente-painel-touch-zigbee-3-0/

Database entry

{"id":106,"type":"Router","ieeeAddr":"0xa4c13806a4d43d51","nwkAddr":8960,"manufId":4417,"manufName":"_TZ3000_nrdwow8a","powerSource":"Mains (single phase)","modelId":"TS0003","epList":[1,2,3,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAAAgAABAAA"}},"57345":{"attributes":{"53264":0,"53296":1}},"genBasic":{"attributes":{"65503":"�n�1\u0013�n�1\u0012","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_nrdwow8a","zclVersion":3,"appVersion":83,"modelId":"TS0003","powerSource":1}},"genOnOff":{"attributes":{"20480":0,"32769":2,"32770":0,"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightSwitch":0,"tuyaBacklightMode":2}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2,"switchType":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"57345":{"attributes":{"53264":0}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"3":{"profId":260,"epId":3,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"57345":{"attributes":{"53264":0}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"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":"0.0.0"},"lastSeen":1795660441657} {"id":106,"type":"Router","ieeeAddr":"0xa4c13806a4d43d51","nwkAddr":8960,"manufId":4417,"manufName":"_TZ3000_nrdwow8a","powerSource":"Mains (single phase)","modelId":"TS0003","epList":[1,2,3,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAAAgAABAAA"}},"57345":{"attributes":{"53264":0,"53296":1}},"genBasic":{"attributes":{"65503":"�n�1\u0013�n�1\u0012","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_nrdwow8a","zclVersion":3,"appVersion":83,"modelId":"TS0003","powerSource":1}},"genOnOff":{"attributes":{"20480":0,"32769":2,"32770":0,"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightSwitch":0,"tuyaBacklightMode":2}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2,"switchType":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"57345":{"attributes":{"53264":0}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":2}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"3":{"profId":260,"epId":3,"devId":256,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"57345":{"attributes":{"53264":0}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}},"manuSpecificTuya3":{"attributes":{"powerOnBehavior":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe9c9cdb","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"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":"0.0.0"},"lastSeen":1795660441657}

Zigbee2MQTT version

2.14.3 (unknown)

External converter
import * as tuya from 'zigbee-herdsman-converters/lib/tuya';
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
    fingerprint: [{modelID: 'TS0003', manufacturerName: '_TZ3000_nrdwow8a'}],
    model: 'TS0003_nrdwow8a',
    vendor: 'Tuya',
    description: 'Interruptor 3 teclas com backlight e countdown',
    extend: [
        tuya.modernExtend.tuyaBase(),
        m.deviceEndpoints({endpoints: {l1: 1, l2: 2, l3: 3}}),
        tuya.modernExtend.tuyaOnOff({
            endpoints: ['l1', 'l2', 'l3'],
            powerOnBehavior2: true,
            switchType: true,
            backlightModeOffOn: true,
            indicatorMode: true,
            onOffCountdown: true,
        }),
    ],
};
What does/doesn't work with the external definition?

Tested on a Tuya 3-gang wall switch (TS0003, _TZ3000_nrdwow8a) with an external definition using tuyaBase() and tuyaOnOff().

Works

  • Backlight mode (ON/OFF) using backlightModeOffOn

Doesn't work

  • backlightModeOffNormalInverted: the LED did not change and reading backlight_mode failed with status FAILURE (tested without tuyaBase())

Not tested yet

  • On/off for l1, l2 and l3
  • Power-on behavior for l1, l2 and l3
  • Switch type
  • Indicator mode
  • Countdown for l1, l2 and l3

Not included

  • Inching (not added to this definition, so not tested)
Notes

software_build_id: undefined
date_code: ``
endpoints:

{"1":{"clusters":{"input":["genIdentify","genGroups","genScenes","genOnOff","57344","manuSpecificTuya3","genBasic"],"output":["genOta","genTime"]},"name":"l1"},"2":{"clusters":{"input":["genGroups","genScenes","genOnOff","manuSpecificTuya3"],"output":[]},"name":"l2"},"3":{"clusters":{"input":["genGroups","genScenes","genOnOff","manuSpecificTuya3"],"output":[]},"name":"l3"},"242":{"clusters":{"input":[],"output":["greenPower"]}}}
Dominant language
TypeScript
Stars
15.9k
Forks
2.1k
Avg merge
12h 11m
Merged PRs (30d)
32

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Koenkk/zigbee2mqtt

All issues in Koenkk/zigbee2mqtt

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.