[External Converter]: TS0003 from _TZ3000_nrdwow8a

Aperta
#33,831 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
backend, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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"]}}}
Lingua principale
TypeScript
Stelle
15.9k
Fork
2.1k
Merge medio
12h 11m
PR unite (30g)
32

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Koenkk/zigbee2mqtt

Tutte le issue di Koenkk/zigbee2mqtt

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.