Repository navigation
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the newer Avatto 4-gang touch switch that reports stock Zigbee manufacturer
_TZ3000_c6fzuhdcand modelTS0004.Avatto changed the Tuya module on this revision. The existing
_TZ3000_eeswvvtmboards use a ZTU module (confirmed by opening one), and this_TZ3000_c6fzuhdcboard 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-AVTentry. Zigbee2MQTT matches the OTA index onmanufacturerName, 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. Existingeeswvvtmdevices 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;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 noIpins. 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/TS0004units. Adding that manufacturer name to a local copy of theeeswvvtmrouter 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, andrelay_0throughrelay_3drive L1 through L4.OTA index entries for
_TZ3000_c6fzuhdcare produced when firmware for this board is built.