Skip to content

Add Avatto TS0004 ZT3L revision (_TZ3000_c6fzuhdc) - #550

Open
sarelp wants to merge 2 commits into
romasku:mainfrom
sarelp:avatto-ts0004-c6fzuhdc
Open

sarelp wants to merge 2 commits into
romasku:mainfrom
sarelp:avatto-ts0004-c6fzuhdc

Conversation

@sarelp

@sarelp sarelp commented Nov 7, 2026 •

Copy link
Copy Markdown

Summary

Add the newer Avatto 4-gang touch switch that reports stock Zigbee manufacturer _TZ3000_c6fzuhdc and model TS0004.

Avatto changed the Tuya module on this revision. The existing _TZ3000_eeswvvtm boards use a ZTU module (confirmed by opening one), and this _TZ3000_c6fzuhdc board uses a ZT3L. Both use the TLSR8258 chip, but they bring out different pins, so the button, relay and backlight wiring differs.

Stock OTA uses manufacturer code 4417 and image type 54179, the same values as the existing _TZ3000_eeswvvtm / TS0004-AVT entry. Zigbee2MQTT matches the OTA index on manufacturerName, so this id never saw an update. Because the pin map differs, this is a separate device (SWITCH_AVATTO_TOUCH_TS0004_C6FZUHDC, firmware image type 47119) instead of another name on the existing image. Existing eeswvvtm devices are unchanged.

Pinout

The buttons sit in a diamond. Endpoint order matches the physical outputs L1–L4. The working pin map, tested by editing the config on a unit already running Tuya-custom 1.1.3, is:

eeswvvtm;TS0004-AVT;LC0i;SB4u;RD7;SA0u;RD2;SD4u;RC3;SB7u;RC4;M;

Endpoint Physical button Button Relay Output
switch_0 / relay_0 Top B4 pull-up D7 L1
switch_1 / relay_1 Left A0 pull-up D2 L2
switch_2 / relay_2 Right D4 pull-up C3 L3
switch_3 / relay_3 Bottom B7 pull-up C4 L4

The backlight is C0, active low, and is the network LED (LC0i). The per-button red/green indicators follow the relays in hardware, so there are no I pins. C2 is not a relay: driving it as an output turns the backlight off. C2 and C0 must not be used as relays.

The database default uses its own manufacturer and model so later OTA updates stay on this image:

c6fzuhdc;TS0004-AVT2;LC0i;SB4u;RD7;SA0u;RD2;SD4u;RC3;SB7u;RC4;M;

Tested on hardware

Tested on two real _TZ3000_c6fzuhdc / TS0004 units. Adding that manufacturer name to a local copy of the eeswvvtm router index made Zigbee2MQTT offer the update. It flashed to Tuya-custom 1.1.3. With the pin map above, all 4 relays, all 4 buttons, and the backlight worked, and relay_0 through relay_3 drive L1 through L4.

OTA index entries for _TZ3000_c6fzuhdc are produced when firmware for this board is built.

cursoragent and others added 2 commits November 7, 2026 10:07
The newer 4-gang touch switch uses the same stock OTA manufacturer
code and image type as the eeswvvtm boards, but the GPIO map is
different. Give it a separate device entry so its OTA image and
default pinout stay independent of the existing ZTU config.

Co-authored-by: Sarel <sarelp@users.noreply.github.com>
Keep the same button and relay pairs, but order them so relay_0
through relay_3 drive physical outputs L1 through L4: top, left,
right, bottom.

Co-authored-by: Sarel <sarelp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants