Skip to content

Commit 78468e7

Browse files
committed
Add 5 ZTU-board switch modules (YBJ TS0003 + _TZ3210 variant, Milfra TS0002/TS0001/TS0004)
Adds device_db entries for Tuya ZTU-board (6-button capable PCB) switch modules, all Telink TLSR8258, pinouts verified on hardware: - MODULE_YBJQJSUZ_TS0003 (_TZ3000_ybjqjsuz, TS0003, 3-gang) + _TZ3210 variant - MODULE_MRIGI9IJ_TS0002 (_TZ3210_mrigi9ij, TS0002, 2-gang) - MODULE_GSQXCWQR_TS0001 (_TZ3000_gsqxcwqr, TS0001, 1-gang) - MODULE_03VS3KS5_TS0004 (_TZ3210_03vs3ks5, TS0004, 4-gang, Milfra) firmware_image_type assigned to free values 47100-47104 (no collision with existing entries). Module names follow chip-suffix; feel free to rename to brand convention.
1 parent f1efb16 commit 78468e7

1 file changed

Lines changed: 141 additions & 0 deletions

File tree

device_db.yaml

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5788,3 +5788,144 @@ SWITCH_ZEMISMART_TS0601_6GANG:
57885788
info: Needs pinout. Secondary MCU. 6-gang!
57895789
threads: https://github.com/romasku/tuya-zigbee-switch/issues/209
57905790
store: https://www.zemismart.com/products/tb26-6
5791+
5792+
MODULE_YBJQJSUZ_TS0003:
5793+
human_name: 3-gang switch module (ZTU, _TZ3000_ybjqjsuz)
5794+
category: switch
5795+
power: mains
5796+
neutral: required
5797+
output: relay
5798+
device_type: router
5799+
stock_model_name: TS0003
5800+
stock_manufacturer_name: _TZ3000_ybjqjsuz
5801+
stock_converter_manufacturer: Tuya
5802+
stock_converter_model: TS0003_switch_module_2
5803+
override_z2m_device: null
5804+
tuya_module: ZTU
5805+
mcu_family: Telink
5806+
mcu: TLSR8258
5807+
config_str: ybjqjsuz;TS0003-YBJ;BB6u;LA0i;SB6u;RB4;IA1i;SC0u;RD2;IC4i;SD3u;RC3;ID4i;
5808+
alt_config_str: null
5809+
old_manufacturer_names:
5810+
- _TZ3000_nPGIPl5D
5811+
old_zb_models: null
5812+
stock_manufacturer_id: 4417
5813+
stock_image_type: 54179
5814+
firmware_image_type: 47100
5815+
build: yes
5816+
status: mostly_supported
5817+
info: 3-gang switch module on Tuya ZTU board (6-button capable PCB). Pin mapping from stock firmware dump analysis. master B6, net LED A0i; ch1 S=B6 R=B4 I=A1i, ch2 S=C0 R=D2 I=C4i, ch3 S=D3 R=C3 I=D4i.
5818+
threads: null
5819+
store: null
5820+
5821+
MODULE_YBJQJSUZ_TS0003_TZ3210:
5822+
human_name: 3-gang switch module (ZTU, _TZ3210_ybjqjsuz variant)
5823+
category: switch
5824+
power: mains
5825+
neutral: required
5826+
output: relay
5827+
device_type: router
5828+
stock_model_name: TS0003
5829+
stock_manufacturer_name: _TZ3210_ybjqjsuz
5830+
stock_converter_manufacturer: Tuya
5831+
stock_converter_model: TS0003_switch_module_2
5832+
override_z2m_device: null
5833+
tuya_module: ZTU
5834+
mcu_family: Telink
5835+
mcu: TLSR8258
5836+
config_str: ybjqjsuz;TS0003-YBJ;BB6u;LA0i;SB6u;RB4;IA1i;SC0u;RD2;IC4i;SD3u;RC3;ID4i;
5837+
alt_config_str: null
5838+
old_manufacturer_names: null
5839+
old_zb_models: null
5840+
stock_manufacturer_id: 4417
5841+
stock_image_type: 2050
5842+
firmware_image_type: 47101
5843+
build: yes
5844+
status: mostly_supported
5845+
info: Same hardware and pinout as MODULE_YBJQJSUZ_TS0003 but stock module is from the _TZ3210_ family (stock image_type 2050 instead of 54179). Same config_str.
5846+
threads: null
5847+
store: null
5848+
5849+
MODULE_MRIGI9IJ_TS0002:
5850+
human_name: 2-gang switch module (ZTU, _TZ3210_mrigi9ij)
5851+
category: switch
5852+
power: mains
5853+
neutral: required
5854+
output: relay
5855+
device_type: router
5856+
stock_model_name: TS0002
5857+
stock_manufacturer_name: _TZ3210_mrigi9ij
5858+
stock_converter_manufacturer: Tuya
5859+
stock_converter_model: TS0002_basic
5860+
override_z2m_device: TS0002_basic_2
5861+
tuya_module: ZTU
5862+
mcu_family: Telink
5863+
mcu: TLSR8258
5864+
config_str: ybjqjsuz;TS0002-YBJ;BB6u;LA0i;SB6u;RB4;IA1i;SD3u;RD2;ID4i;
5865+
alt_config_str: null
5866+
old_manufacturer_names: null
5867+
old_zb_models: null
5868+
stock_manufacturer_id: 4417
5869+
stock_image_type: 2050
5870+
firmware_image_type: 47102
5871+
build: yes
5872+
status: mostly_supported
5873+
info: 2-gang switch on the same 6-button ZTU board as the 3-gang module. Pinout verified on hardware. master B6, net LED A0i; ch1 S=B6 R=B4 I=A1i, ch2 S=D3 R=D2 I=D4i.
5874+
threads: null
5875+
store: null
5876+
5877+
MODULE_GSQXCWQR_TS0001:
5878+
human_name: 1-gang switch module (ZTU, _TZ3000_gsqxcwqr)
5879+
category: switch
5880+
power: mains
5881+
neutral: required
5882+
output: relay
5883+
device_type: router
5884+
stock_model_name: TS0001
5885+
stock_manufacturer_name: _TZ3000_gsqxcwqr
5886+
stock_converter_manufacturer: Tuya
5887+
stock_converter_model: TS0001_basic
5888+
override_z2m_device: TS0001_basic_1
5889+
tuya_module: ZTU
5890+
mcu_family: Telink
5891+
mcu: TLSR8258
5892+
config_str: gsqxcwqr;TS0001-MIL;BC0u;LA0i;SC0u;RB4;IC4i;
5893+
alt_config_str: null
5894+
old_manufacturer_names: null
5895+
old_zb_models: null
5896+
stock_manufacturer_id: 4417
5897+
stock_image_type: 54179
5898+
firmware_image_type: 47103
5899+
build: yes
5900+
status: mostly_supported
5901+
info: 1-gang switch on the same 6-button ZTU board. Pinout verified physically on hardware. Single button is the middle channel (C0, also master), relay B4, indicator C4. Note the relay is B4 (not D2 nor C3).
5902+
threads: null
5903+
store: null
5904+
5905+
MODULE_03VS3KS5_TS0004:
5906+
human_name: 4-gang switch module (ZTU, Milfra _TZ3210_03vs3ks5)
5907+
category: switch
5908+
power: mains
5909+
neutral: required
5910+
output: relay
5911+
device_type: router
5912+
stock_model_name: TS0004
5913+
stock_manufacturer_name: _TZ3210_03vs3ks5
5914+
stock_converter_manufacturer: Tuya
5915+
stock_converter_model: TS0004
5916+
override_z2m_device: null
5917+
tuya_module: ZTU
5918+
mcu_family: Telink
5919+
mcu: TLSR8258
5920+
config_str: 03vs3ks5;TS0004-MIL;BB6u;LA0i;SB6u;RC2;IA1i;SC0u;RC3;IC4i;SD7u;RD2;IC1i;SD3u;RB4;ID4i;
5921+
alt_config_str: null
5922+
old_manufacturer_names: null
5923+
old_zb_models: null
5924+
stock_manufacturer_id: 4417
5925+
stock_image_type: 2050
5926+
firmware_image_type: 47104
5927+
build: yes
5928+
status: mostly_supported
5929+
info: 4-gang switch (Milfra) on the 6-button ZTU board. Pinout traced physically from PCB silkscreen N02B/04B CTRL V0.2. master B6, net LED A0i; ch1 S=B6 R=C2 I=A1i, ch2 S=C0 R=C3 I=C4i, ch3 S=D7 R=D2 I=C1i, ch4 S=D3 R=B4 I=D4i.
5930+
threads: null
5931+
store: null

0 commit comments

Comments
 (0)