Tuya Thermostat for Floor Heating Zigbee with custom firmware TLSR8258
Tuya Thermostat for Floor Heating Zigbee with custom firmware TLSR8258
| 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.
To keep it from spamming the network. The first instance (see above) sent 25 packets every 8 seconds.
About
Exposes
Reporting
To successfuly compile project under Windows you need installed:
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:
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
makeWith 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 announcementIn Home Assistant, it looks like this
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.
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.
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.
_TZE204_aoclfnxz. Fixed problem with OTA update._TZE204_edl8pz1k.watchdog.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.
One for the thermostat with original firmware, one for the thermostat with custom firmware. There is no need to change anything in them.
_TZE204_tagezcphChecked two thermostats, one with the rotary knob down the middle, the other down the right side.
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.
_TZE204_xyugziqvlocal_ota_index.js - explicitly specifies devices to be updated.watchdog clearing to uart operation. This situation could happen - ZTU MCU was rebooted when MCU did not answer for a long time.zigbee2mqtt 2.0.0 version have been updated_TZE204_5toc8efa from BSEED (GL86HTEZ1B)._TZE204_lzriup1j manufactured by Avatto (ZWT10016A).UART speed. According to Tuya Zigbee Serial protocol standard, the speed can be 9600 or 115200._TZE204_aoclfnxz manufactured by MOES was physically tested. Based on the results, the code for processing incoming and outgoing packets in uart was modified._TZE200_edl8pz1k signature was added to the converters.System Mode parameter to the data saved and restored at startup. When resetting the moduleNo open issues yet, or sync has not completed.