Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tuya_thermostat_zrd

> 编程语言
Open source

Tuya Thermostat for Floor Heating Zigbee with custom firmware TLSR8258

196 stars0 likes0 views
WebsiteGitHub

About

Tuya Thermostat for Floor Heating Zigbee with custom firmware TLSR8258

Tuya Thermostat for Floor Heating Zigbee with custom firmware

Описание на русском

Custom firmware for Tuya thermostat models

Custom Zigbee Model Original Zigbee Manufacturer Description
Tuya_Thermostat_r01 _TZE204_u9bfwha0 _TZE204_aoclfnxz :bookmark_tabs:
Tuya_Thermostat_r02 _TZE200_edl8pz1k _TZE204_edl8pz1k :bookmark_tabs:
Tuya_Thermostat_r03 _TZE204_tagezcph :bookmark_tabs:
Tuya_Thermostat_r04 _TZE204_xyugziqv :bookmark_tabs:
Tuya_Thermostat_r05 _TZE204_5toc8efa :bookmark_tabs:
Tuya_Thermostat_r06 _TZE204_lzriup1j _TZE204_oh8y8pv8 _TZE204_gops3slb _TZE284_cvub6xbb :bookmark_tabs:
Tuya_Thermostat_r07 _TZE204_mpbki2zm :bookmark_tabs:
Tuya_Thermostat_r08 _TZE204_7rghpoxo _TZE200_7rghpoxo _TZE200_lndsb16m :bookmark_tabs:
Tuya_Thermostat_r09 _TZE204_6a4vxfnv :bookmark_tabs:
Tuya_Thermostat_r0A _TZE284_xalsoe3m _TZE204_xalsoe3m :bookmark_tabs:
Tuya_Thermostat_r0B _TZE204_8byfmxdv :bookmark_tabs:
Tuya_Thermostat_r0C _TZE204_szbxmorb :bookmark_tabs:
Tuya_Thermostat_r0D _TZE204_lpedvtvr :bookmark_tabs:

The author assumes no responsibility if you turn your smart thermostat into a half-witted thermostat by using this project.

Only the thermostats listed above were checked. If you have a different signature, it is better not to flash without checking for a datapoint match.

Theoretically, the firmware can be adapted for any thermostat with an IEEE beginning with

A4 C1 38

If the IEEE start is different from the specified one, then the thermostat has a different chip in the Zigbee module, you can't use this project.

Only tested in zigbee2mqtt. As of the April 2025 version of zigbee2mqtt, no external converter is needed. Support is enabled globally.

Why.

To keep it from spamming the network. The first instance (see above) sent 25 packets every 8 seconds.

Result.

About

Exposes

Reporting

How to compile.

To successfuly compile project under Windows you need installed:

  1. TeLink toolchain (sometimes named Telink IoT Studio)
  2. Git
  3. Python3

Ensure your %PATH% variable contains paths to git,make,tc32-elf- executables so they can be invoked by executable name only*

Next, open with you favorite text editor makefile and makefile.bootloader and patch variable named COMPILE_PREFIX. They should point to your telink toolchain executables prefix. For example C:/TelinkIoTStudio/opt/tc32/bin/tc32 if installed in C:\TelinkIoTStudio

Next invoke provided in repo win_make.cmd file. It will compile bootloader and next main firmware.

In Linux or in Windows via WSL:

bash
apt update
apt install git make python3
wget https://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2
sudo tar -xvjf tc32_gcc_v2.0.tar.bz2 -C /opt/

make -f makefile.bootloader
rm -rf out/proj out/platform
make

How to update.

With the release of the new version, zigbee2mqtt updating has become much easier.

You just need to switch to the new interface - zigbee2mqtt-windfront.

So, let's download it from the repository Update file. Go to the device. And on the right, you'll see Firmware versiona cloud icon. This is where we'll go.

Next, select Custom firmware from the list that opens.

After this, select the file you downloaded earlier (see above).

And click update.

To see if the update has started, look at the thermostat icon a rotating circle with arrows should appear. In Recent activity the remaining time in seconds and the download percentage will be displayed.

And all this will be recorded in the log.

After the update is complete, the first time you launch the custom firmware, it copies bootloader and clears the memory area where the device's network address is stored. Therefore, after the update, simply allow pairing, zigbee2mqtt and the thermostat will automatically connect to the network. All that remains is to forcefully uninstall the old version of the thermostat.

That's it, the thermostat is ready to go.

[!WARNING] Attention!!! If in the process you find a new updateon other Tuya devices that you may still have in your system, you do not need to update anything!!! Otherwise you will flash into this device firmware from the thermostat and get a brick!!! If the update process has already started by mistake, just turn off the device!!!

This is what the log looks like on the first startup after upgrading from Tuya to custom firmware.

OTA mode enabled. MCU boot from address: 0x8000
Firmware version: v1.0.22
Tuya signature found: "lndsb16m"
Use modelId: Tuya_Thermostat_r08
Sent announcement

In Home Assistant, it looks like this

How to update in ZHA

Put 1141-d3a3-1111114b-tuya_thermostat_zrd.zigbee in /config/zigbee_ota on HA filesystem

Edit configuration.yaml adding:

…

Goto Settings -> Devices -> ZHA -> Thermo Device On Device Info click 3 dots -> Manage Zigbee Device Select OTA cluster (0x0019), select commands -> image notify. Select payload type QueryJitter, put queryjitter parameter > 0 (foe example 100) Input Manufacturer code: 4417 Image Type: 54179 File Version: 270807041 or which one you have, this parameters can be found running tools/read_ota_header.py with zigbee firmware as parameter

Click send, and on configuration update firmware.

After updating Add new device via Zigbee search and remove old one.

How to write a new firmware version into an already updated thermostat.

All updates will be available via z2m as new releases are released; you don't need to do anything specifically for this.

That's it!

P.S. Not tested in real work, requires extensive testing.

A more detailed description of the very first thermostat here


You can contact me at Telegram.

If you would like to thank the author, you can do so via YouMoney.


Thanks :))))

  • @ruslikx3m for the first provided thermostat _TZE204_u9bfwha0 to tear apart.

  • @immortal_serg for providing the thermostat _TZE204_edl8pz1k.

  • @chernyshevruslan for providing the thermostats _TZE204_tagezcph in two different versions and _TZE204_xyugziqv.

  • @Alleol for providing the thermostat _TZE204_lzriup1j.

  • @terekhins for providing the _TZE204_aoclfnxz thermostat made by MOES.

  • @shadow_by for providing the _TZE204_aoclfnxz thermostat made by MOES.

  • @dbunevich for providing the thermostat _TZE204_mpbki2zm.

  • @liberatemei for providing the thermostat _TZE204_oh8y8pv8.

  • @rheinx for providing the thermostat _TZE204_6a4vxfnv

  • @Nobodevi4 for providing the thermostat _TZE284_cvub6xbb

  • https://github.com/doctor64 @doctor_64 - for always wanting to help and point me in the right direction.

  • https://github.com/devbis @Belokobylskiy - for ideas and writing scripts in Python and for the z2m converter.

  • @goofyk - for patience and for knowing z2m well.

  • https://github.com/pvvx - for a wonderful programmer for Telink chips.

Version History

  • 1.0.01
    • Initial version.
  • 1.0.02
    • Release. Removed due to an issue with the OTA update.
  • 1.0.03
    • Fixed an issue with being able to set the heating temperature above the threshold set in maxHeatSetpoint.
    • Corrected the converter for thermostat wiring in Home Assistant.
    • Added callback functions of remote commands to DataPoints structure.
    • Tested thermostat with signature _TZE204_aoclfnxz. Fixed problem with OTA update.
  • 1.0.03a
    • PreRelease.
  • 1.0.04
    • Added a thermostat with the signature _TZE204_edl8pz1k.
    • Added callback functions of local commands to DataPoints structure.
    • Added watchdog.
    • The formation of zb_modelId has been changed.

      When upgrading to custom firmware, thermostats with different signatures, but which are essentially the same device, will now receive the same group name, regardless of signature.

    • Changed z2m covetors, now it's just two files.

      One for the thermostat with original firmware, one for the thermostat with custom firmware. There is no need to change anything in them.

  • 1.0.05
    • Added thermostat with signature _TZE204_tagezcph

      Checked two thermostats, one with the rotary knob down the middle, the other down the right side.

    • Edited the internal variable names associated with the model number.

      It used to count from 0. Now it counts from 1. It's just for convenience, so that you don't get confused. For example, it used to be type0, now it is type1, etc.

    • Converters have been updated.
  • 1.0.06
    • Added thermostat with signature _TZE204_xyugziqv
    • Increased uart buffer to 512 bytes. The last thermostat sends a lot of packets at one time.
    • Converters updated
  • 1.0.07
    • Fixed a problem with the number of running timers. In z2m everything worked, but in ZHA it was overloading.
  • 1.0.08
    • Updated SDK to version V3.7.1.2
    • Updated local_ota_index.js - explicitly specifies devices to be updated.
    • The upgrade instructions have been changed - at the end you do not need to uninstall the device, just go through the interview and configuration procedures again.
  • 1.0.09
    • Fixed a bug with saving settings and then restoring them when power is applied.
    • Added watchdog clearing to uart operation. This situation could happen - ZTU MCU was rebooted when MCU did not answer for a long time.
    • Converters for zigbee2mqtt 2.0.0 version have been updated
    • Updated instructions.
  • 1.0.10
    • Added thermostat with signature _TZE204_5toc8efa from BSEED (GL86HTEZ1B).
    • The converters and the local update download file have been updated.
    • Updated instructions.
  • 1.0.11
    • Added thermostat with signature _TZE204_lzriup1j manufactured by Avatto (ZWT10016A).
    • Added autodetection of UART speed. According to Tuya Zigbee Serial protocol standard, the speed can be 9600 or 115200.
    • Added to the converter for z2m to display the schedule already available in the thermostat.
    • The converters and the local update download file have been updated.
    • Updated instructions.
  • 1.0.12
    • A thermostat with signature _TZE204_aoclfnxz manufactured by MOES was physically tested. Based on the results, the code for processing incoming and outgoing packets in uart was modified.
    • The _TZE200_edl8pz1k signature was added to the converters.
    • Added System Mode parameter to the data saved and restored at startup. When resetting the module

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言