Koenkk / Koenkk/zigbee2mqtt

[Wrong device]: I have bought 3 Channel Tuya switch SWT23 for 3 momentary switches -- but it is recognized as just binary one

Open
#32,391 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
TypeScript
Stars
15.7k
Forks
2k
Avg merge
18h 55m
Merged PRs (30d)
35

Description

Link

https://allegro.pl/produkt/modul-oxt-mini-przekaznik-3-obwody-wifi-tuya-8f7e0a74-5145-4651-acfa-7f149ee764f2?offerId=14246121350

Model

OXT SWTZ23 or SWT23

Description

3 gang switch

Vendor

OXT

Picture (link)

https://s.alicdn.com/@sc04/kf/Hf8dce2efe7ac40889e517da774b22d8f7.jpg_300x300.jpg

Database entry

{"id":50,"type":"Router","ieeeAddr":"0xa4c138ff4b7858c7","nwkAddr":52478,"manufId":4417,"manufName":"_TZ3210_aksyshpw","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":{"53296":0}},"genBasic":{"attributes":{"65534":0,"manufacturerName":"_TZ3210_aksyshpw","zclVersion":3,"appVersion":74,"modelId":"TS0003","powerSource":1,"stackVersion":2,"hwVersion":1,"deviceEnabled":1}},"genOnOff":{"attributes":{"32770":1,"onOff":0,"onTime":0,"offWaitTime":0}},"genIdentify":{"attributes":{"identifyTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xbc8d7efffe9e28f0","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,57344,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xbc8d7efffe9e28f0","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,57344,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xbc8d7efffe9e28f0","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":74,"stackVersion":2,"hwVersion":1,"zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1782291742481}

Notes

Hello,

I bought: https://www.zigbee2mqtt.io/devices/TS0003_switch_module_1.html

It is recognized as: https://www.zigbee2mqtt.io/devices/TS0003.html#tuya-ts0003

I was trying external converters, but no result, or result with "invalid" added after file name.

how to recognized it properly?

Contributor guide

Open the contributing guide

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.

Research direction

Start by comparing the linked TS0003 and TS0003_switch_module_1 device definitions with the reported modelId, manufacturer name, and three endpoint entries. Trace how the matching device definition is selected and verify the result against the supplied interview data. Done means the SWT23 is recognized with three controllable channels rather than as a binary device.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.