[RELEASE] Tuya Wall Mount Thermostat (Water/Electric Floor Heating) Zigbee driver

I guess we could add it to HY367 and just log the missing DP functionality. Maybe a isWhatever(). I will be away for a few days, but intend to get the rest of the functionality working for HY367 after I get back.

Much appreciated on the valve issue, I don't yet know how everything works, was trying to get the valve to show up in my InfluxDB somehow, missing as of yet.

I am using Alexa, and have successfully changed the Setpoint. But, as with all integrations, it is not 100% working. I sometimes have to tell her to turn my Hue lights on twice, and to set the thermostat twice. It usually works the second time, if the first was unsuccessful, even though Alexa reports it as successful.

1 Like

Hi @kkossev and all,
I have spent a lot of time searching for the right thermostst for my need but no luck so far so I am reaching out for your help.
My underfloor heating system is water based. I have 8 different zones controlled by separate 230v thermostats, each controlling an electric valve (Normaly Closed) with a relay rated 3 Amp. Each thermostat is located on the wall in the room it controls.
I would like to replace all thermostats to a smart thermostat (Zigbee to fit @kkossev driver if possible).
The current wall electric boxes are Gewiss 3 gang boxes which are 119mm wide and I would like to avoid replacing them with an EU box (55mm).
All thermostats on this post go well inside a 55 mm electric box but will not cover the 3 gang box I have as they are typically 86*86mm.
Did anyone see a suitable product I should look at?
Thanks,

1 Like

@amithalp I don't have much experience with water-based underfloor heating systems...
As I understand it, you will reuse the existing electric valves and you are looking for new control thermostats only, that must fit into the existing electric boxes, that are 86*86mm.

Just out of curiosity, are these electric boxes used in Italy?

BTW, these are new, interesting and feature-reach thermostats that I discovered for myself in the last few days :

Hi @kkossev ,
Actually, the in-wall electric box is a standard (at least here in Israel) triple module box.
The dimentions are 119mm wide * 80mm tall
You can fill it with any Gewiss, Bticino or other brands' accessories.
The problem is that it seems most uthermostats are suitable for the smaller electric boxes that people ahrdly use anymore in my country.

Probably some adaptor plates exist aimed to accommodate EU style electrical devices into the 119mm wide * 80mm tall electrical boxes? Something that is produced / sold locally?

Anyone using the Tuya / Moes BRT-100 TRV can try the new driver:
[ALPHA] Tuya / Moes BRT-100 TRV driver
The code for this device remains in this driver, but any improvements will be done in the new driver in the future.

1 Like

@kkossev,
I have set the hysteresis for the Tuya thermostat a few times.
Unfortunately, it does not seem to stick, any advise please?

Summary

image


Logs

dev:28492023-12-04 10:36:03.716 AMinfoTuya wall thermostat heatingSetpoint is: 18.0°C

dev:28492023-12-04 10:36:03.598 AMinfoTuya wall thermostat Thermostat mode reported is: heat

dev:28492023-12-04 10:35:58.732 AMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 10:35:57.241 AMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 10:35:57.104 AMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 10:35:56.979 AMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 10:35:56.625 AMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 0C (dp=106, fncmd=0)

dev:28492023-12-04 10:35:56.388 AMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 10:35:56.138 AMinfoTuya wall thermostat Update finished

dev:28492023-12-04 10:35:55.953 AMinfoDebug logging is false; Description text logging is true

dev:28492023-12-04 10:35:55.951 AMinfoForce manual is false; Resend failed is false

dev:28492023-12-04 10:35:55.948 AMinfoUpdating Tuya wall thermostat (Tuya Wall Thermostat) model TS0601 manufacturer _TZE200_ye5jkfsb modelGroupPreference = Auto detect (AVATTO)

If you change the hysteresis manually from the thermostat panel, is the new value reflected correctly in the driver? (always press F5 to refresh the web page)

1 Like

Actually, I am not sure how to enter the settings menu on the panel, will need to find a manual. Thanks

Every device has different procedures for entering the system menu, for pairing, etc.. :frowning:

1 Like

Found this on Aliexpress sellers page.
Looks like the hysteresis range is from 1-5, not 0.5.

1 Like

Does it work if you set numerical only value?

I've entered 1.0 and it seems to be sticking.
Will check the settings on the panel later today.

1 Like

@kkossev,
I've entered the panel settings during my lunch break and found the hysteris is still "0".
Changing it on the panel worked.
Unfortunately, it seems that everytime I save the preferences then the hysteresis gets reset to 0, see logs.

Summary

dev:28492023-12-04 02:08:48.785 PMinfoTuya wall thermostat heatingSetpoint is: 17.0°C

dev:28492023-12-04 02:08:48.684 PMinfoTuya wall thermostat Thermostat mode reported is: heat

dev:28492023-12-04 02:08:44.023 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 02:08:43.791 PMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 02:08:43.636 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 02:08:43.305 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 02:08:42.910 PMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 0C (dp=106, fncmd=0)

dev:28492023-12-04 02:08:42.667 PMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 02:08:42.510 PMinfoTuya wall thermostat Update finished

dev:28492023-12-04 02:08:42.435 PMinfoDebug logging is false; Description text logging is true

dev:28492023-12-04 02:08:42.434 PMinfoForce manual is false; Resend failed is false

dev:28492023-12-04 02:08:42.432 PMinfoUpdating Tuya wall thermostat (Tuya Wall Thermostat) model TS0601 manufacturer _TZE200_ye5jkfsb modelGroupPreference = Auto detect (AVATTO)

dev:28492023-12-04 02:06:57.997 PMinfoTuya wall thermostat heatingSetpoint is: 17.0°C

dev:28492023-12-04 02:06:57.912 PMinfoTuya wall thermostat Thermostat mode reported is: heat

dev:28492023-12-04 02:06:52.651 PMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 02:06:52.626 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 02:06:52.351 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 02:06:52.086 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 02:06:51.813 PMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 0C (dp=106, fncmd=0)

dev:28492023-12-04 02:06:51.658 PMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 02:06:51.413 PMinfoTuya wall thermostat Update finished

dev:28492023-12-04 02:06:51.337 PMinfoDebug logging is false; Description text logging is true

dev:28492023-12-04 02:06:51.336 PMinfoForce manual is false; Resend failed is false

dev:28492023-12-04 02:06:51.334 PMinfoUpdating Tuya wall thermostat (Tuya Wall Thermostat) model TS0601 manufacturer _TZE200_ye5jkfsb modelGroupPreference = Auto detect (AVATTO)

dev:28492023-12-04 01:26:34.633 PMinfoTuya wall thermostat temperature is: 20.0°C

dev:28492023-12-04 01:24:15.278 PMinfoTuya wall thermostat temperature is: 21.0°C

dev:28492023-12-04 01:24:02.222 PMinfoTuya wall thermostat heatingSetpoint is: 17.0°C

dev:28492023-12-04 01:24:02.025 PMinfoTuya wall thermostat Thermostat mode reported is: heat

dev:28492023-12-04 01:23:56.292 PMinfoTuya wall thermostat Antifreeze mode is on (1)

dev:28492023-12-04 01:23:56.215 PMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 1C (dp=106, fncmd=1)

dev:28492023-12-04 01:23:56.145 PMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 01:23:56.065 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:23:55.987 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:23:55.891 PMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 01:23:55.754 PMinfoTuya wall thermostat Sensor is: in (0)

dev:28492023-12-04 01:23:41.071 PMinfoTuya wall thermostat Antifreeze mode is on (1)

dev:28492023-12-04 01:23:40.929 PMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 1C (dp=106, fncmd=1)

dev:28492023-12-04 01:23:40.861 PMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 01:23:40.805 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:23:40.694 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:23:40.599 PMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 01:23:40.518 PMinfoTuya wall thermostat Sensor is: in (0)

dev:28492023-12-04 01:23:25.170 PMinfoTuya wall thermostat heatingSetpoint is: 17.0°C

dev:28492023-12-04 01:23:24.995 PMinfoTuya wall thermostat switchState reported is: OFF

dev:28492023-12-04 01:22:55.031 PMinfoTuya wall thermostat Dead Zone temp (hysteresis) is: 0C (dp=106, fncmd=0)

dev:28492023-12-04 01:22:54.878 PMinfoTuya wall thermostat AVATTO Program Mode (104) received is: off (0)

dev:28492023-12-04 01:22:54.858 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:22:54.716 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:22:54.498 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:22:54.357 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:22:54.198 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:22:54.086 PMinfoTuya wall thermostat AVATTO Max Temp Limit is: 32 C (dp=19, fncmd=32)

dev:28492023-12-04 01:22:53.918 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:22:53.705 PMinfoTuya wall thermostat Min temperature limit is: 10 C (dp=26, fncmd=10)

dev:28492023-12-04 01:22:53.278 PMinfoTuya wall thermostat temperature calibration (correction) is: 0.0 (dp=27, fncmd=0)

dev:28492023-12-04 01:22:53.129 PMinfoTuya wall thermostat Update finished

dev:28492023-12-04 01:22:52.860 PMinfoDebug logging is false; Description text logging is true

dev:28492023-12-04 01:22:52.858 PMinfoForce manual is false; Resend failed is false

dev:28492023-12-04 01:22:52.855 PMinfoUpdating Tuya wall thermostat (Tuya Wall Thermostat) model TS0601 manufacturer _TZE200_ye5jkfsb modelGroupPreference = Auto detect (AVATTO)

dev:28492023-12-04 01:22:52.705 PMinfoTuya wall thermostat Update finished

dev:28492023-12-04 01:22:52.602 PMinfoDebug logging is false; Description text logging is true

dev:28492023-12-04 01:22:52.600 PMinfoForce manual is false; Resend failed is false

dev:28492023-12-04 01:22:52.598 PMinfoUpdating Tuya wall thermostat (Tuya Wall Thermostat) model TS0601 manufacturer _TZE200_ye5jkfsb modelGroupPreference = Auto detect (AVATTO)

1 Like

Hi @iEnam,
Good news - I reproduced and fixed the problem with the Avatto thermostat hysteresis setting. Will publish an update later tonight. Thank you for the detailed logs and the report!

1 Like

I guess this change is only for the _TZE200_ye5jkfsb
My device is OK --> _TZE200_2ekuz3dz

Yes, the change is in only one line of code and affects the AVATTO thermostats only. The bug was in the conversion of the hysteresis preference from double to integer type. (AVATTO thermostats allow only integer values - 0, 1, 2, 3, etc.. while the BEOK thermostats allow centigrade values.

@iEnam - please update to the dev. branch version 1.3.7 2023/12/05 7:52 PM"

2 Likes

Great, thanks for the quick bug fix. All working now; I can make changes in preferences, and they are saved on the device :smiley:

2 Likes

At some point (sorry, don't know how recently) the driver appears to have mixed up thermostat mode and thermostat operating state, so that the mode is being set to "heating" which is not in the supported thermostat modes list for the device.

I'm using the driver with BRT-100 TRVs.

My apologies if this is an intentional change and I've missed the post about it.

Guy

1 Like

It was a bug, fixed in version 1.3.8. Thank you for the report!

1 Like