Repository navigation
Conversation
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.
REMOTE_TUYA_TS0041wasin_progresswith "Needs pinout" (#171). This adds the pinout and enables the build.Tuya 1-button wireless switch TS0041 (_TZ3000_4upl1fcj)
Z2M device link: https://www.zigbee2mqtt.io/devices/Push_LE.html
ESW-4ZAA-CN KER_V1.2.1(the shared 1-4 gang board, only the middle key K5 and LED D6 populated), stickerESW-0ZBD-EUSwitch config:
4upl1fcj;TS0041-TUYA;SA4d;IC0i;BTA0;M;Pinout
Taken from the stock user data page (
0x0FE00000), read over SWD before flashing:With the ZS3L map from
helper_scripts/extract_pinout_from_silabs_data.py:bt1_pin:5= A4, active high (bt1_lv:1) →SA4dled1_pin:10= C0, active low (led1_lv:0) →IC0iThis is the same pair as the third button of
REMOTE_TUYA_TS0044(SA4d;IC0i), andBTA0is taken from there.Flashing
The SWD pins are the six unpopulated ZS3L holes at the end opposite the antenna (module pins 17-22: 3V3, SWDIO, SWCLK, GND, RST2, GND). Flashing steps: mass erase, then
bin/efr32mg21_bootloader_generic.s37, then the end-device build of this branch.Tested
Tested on 1.11.2026 with Zigbee2MQTT 2.14.2 and an EmberZNet coordinator:
press/long_press/releasedare reported (long press after 0.8 s); the indicator LED lights on pressNot tested:
Notes
device/interviewon the already paired stock device reported success after ~5 s without any answer from the sleeping remote, and Zigbee2MQTT kept the stock model ID. Removing the device, resetting it and pairing again worked.Photos
PCB front and back, the ZS3L pins (from the Tuya datasheet, mirrored to the top view) and the SWD wires used for the dump and flashing.