[RELEASE] Tuya Temperature Humidity Illuminance LCD Display with a Clock

This driver can be installed from Hubitat Package Manager, search for "Tuya Temperature Humidity Illuminance LCD Display with a Clock" or by Tag 'Zigbee'.

The (hopefully) stable version code is here:
https://raw.githubusercontent.com/kkossev/Hubitat/main/Drivers/Tuya%20Temperature%20Humidity%20Illuminance%20LCD%20Display%20with%20a%20Clock/Tuya_Temperature_Humidity_Illuminance_LCD_Display_with_a_Clock.groovy

Supported models :

Manufacturer : _TZE200_lve3dvpy

image


Manufacturer : _TZE200_locansqn

image

Driver status: basic functionalities working OK!


Manufacturer : _TZ3000_qaaysllp

image

Driver status: basic functionalities working OK!


Manufacturer : _TYZB01_kvwjujy9

image

Driver status: this is a problematic device that is reported to be not working stable by different users in many different home automation platforms. Not recommended for purchase at this stage of the integration to HE!

Note

While the same driver may work with other Tuya temperature/humidity/illuminance models (different than these listed above), but this is not guaranteed because of the commands differences between the models and manufacturers.

Features

Currently, not all of the functionalities and settings that are available from Tuya SmartLife app for the specific model are implemented into this HE driver.

The basic functions that are working at the moment are:

  • Synchronizes the sensor clock to HE hub time and day of the week.

  • Reports the sensor temperature (0.1 C resolution), as frequently as sent by the device.

  • Reports the sensor humidity (1% RH resolution), as frequently as sent by the device.

  • Reports battery level (%)

  • Dynamic parameters configuration, depending on the device model:

    • Auto-detect or force Celsius/Fahrenheit scale setting
    • Temperature Sensitivity setting
    • Humidity Sensitivity setting
    • Illuminance Sensitivity setting
    • Minimum and Maximum Temperature Alarm settings
    • Minimum and Maximum Humidity Alarm settings
    • Minimum and Maximum Temperature and Humidity reporting interval settings
  • Extended debug and info logging

3 Likes

Revisions history:

  • ver. 1.0.0 2022-01-25 - Initial test version
  • ver. 1.0.2 2022-02-06 - Tuya commands refactoring; TS0222 T/H poll on illuminance change (EP2); modelGroupPreference bug fix; dynamic parameters depending on the model; Tuya commands refactoring; TS0222 T/H poll on illuminance change (EP2); modelGroupPreference bug fix; dyncamic parameters
  • ver. 1.0.3 2022-02-13 - _TZE200_c7emyjom fingerprint added;
  • ver. 1.0.4 2022-02-20 - Celsius/Fahrenheit correction for TS0601_Tuya devices
  • ver. 1.0.5 2022-04-25 (dev. branch) - added TS0601_AUBESS (illuminance only); ModelGroup is shown in State Variables
  • ver. 1.0.6 2022-05-09 (dev. branch) - new model 'TS0201_LCZ030' (_TZ3000_qaaysllp)

As this project is still a work-in-progress, the latest development version is available from the development branch in GitHub: https://raw.githubusercontent.com/kkossev/Hubitat/development/Drivers/Tuya%20Temperature%20Humidity%20Illuminance%20LCD%20Display%20with%20a%20Clock/Tuya_Temperature_Humidity_Illuminance_LCD_Display_with_a_Clock.groovy

@jtmpush18 The Zemismart ZXZTH model should be working with this driver, please select "TS0201" model group:

image

Thank you @ kkossev.
The driver is working for me as is. I added config as my Tuya device report temp in C, so I added config to report it in F.

Thank you for the feedback, @tosantoshic !
The temperature scale used for reporting depends on the HE hub settings

image
I will add rounding to 1 digit after the decimal point in the next version.

Can you send me your device details data, so that I include it in the driver supported devices fingerprints? It can be found on the device 'data' section in the bottom of teh device page and should look like this:

endpointId: 01
application: 4B
softwareBuild:
inClusters: 0000,0001,0400
outClusters: 0019,000A
model: TS0222
manufacturer: _TYZB01_kvwjujy9

Hello @kkossev,

Yes, I have set location correctly, but still I was reading in C.
Do you have driver update for changing LCD display settings of device?

Here are the details of my device

  • endpointId: 01
  • application: 43
  • softwareBuild:
  • inClusters: 0004,0005,EF00,0000
  • outClusters: 0019,000A
  • model: TS0601
  • manufacturer: _TZE200_locansqn

I am researching how to do it now.

Does your device clock keep accurate with HE time?

Yes, with your driver, the clock and date updated correctly.

Can you first update the driver from the link on the first post and try again? The temperature scale is now sent to the device when you press 'Save Preferences' button. With my device, I receive confirmation that the Celsius/Fahrenheit setting was changed, but the readings and the scale symbol on the LCD display do not change. Your model is a bit better and richer on options, let me know if anything changes.
I have also added an option to adjust the temperature reporting sensitivity ( range 0.1 .. 5.0 deg. C)

Mine is _TZE200_c7emyjom, identical in appearance to your first depicted model, and it gives the following

Current States

  • maxHumidityAlarm : inactive
  • maxTempAlarm : inactive
  • minHumidityAlarm : inactive
  • minTempAlarm : inactive

State Variables

  • packetID : 0
  • rxCounter : 0
  • driverVersion : 1.0.2 2022/02/05 6:35 AM
  • txCounter : 62

  • endpointId: 01
  • model: TS0601
  • application: 40
  • manufacturer: _TZE200_c7emyjom

@Inge_Jones your device is from a new manufacturer, so it's fingerprint is not in the driver yet. I will add it later today, but before doing this can you try to 'force' the device model group from the preferences section to "TS0601 Tuya" ? After saving the preferences please press the 'Ínitialize' button. Are the temperature and the humidity reported? Is the clock set correctly?

No, nothing changed. The clock is not showing on the device just a space where it should be. Btw it did pick up the driver when I paired it.

Which driver was selected automatically when you paired the device to the Hub?

If it was 'device' type, please pair it again now, after you have manually changed the driver.

Before painting it again with this driver - please remove the batteries wait few minutes and insert the batteries again. Any output in the logs?

Unless I am going bonkers it was yours. Just to check my mental status I will delete and start over

Yes it picks up yours automatically upon zigbee pairing. I did remove the batteries for a few minutes first, as you asked.

dev:5782022-02-07 17:04:57.758 warnTuya Temperature Humidity Illuminance LCD Display with a Clock NOT PARSED : [raw:5ACC0100001801002040E2FF2022E4FF2001, dni:5ACC, endpoint:01, cluster:0000, size:18, attrId:0001, encoding:20, command:0A, value:40, clusterInt:0, attrInt:1, additionalAttrs:[[value:22, encoding:20, attrId:FFE2, consumedBytes:4, attrInt:65506], [value:01, encoding:20, attrId:FFE4, consumedBytes:4, attrInt:65508]]]

dev:5782022-02-07 17:04:52.984 warnTuya Temperature Humidity Illuminance LCD Display with a Clock NOT PARSED : [raw:5ACC01000068040042105F545A453230305F6337656D796A6F6D0000002003010000204005000042065453303630310700003003FEFF003000, dni:5ACC, endpoint:01, cluster:0000, size:68, attrId:0004, encoding:42, command:01, value:_TZE200_c7emyjom, clusterInt:0, attrInt:4, additionalAttrs:[[value:03, encoding:20, attrId:0000, consumedBytes:4, attrInt:0], [value:40, encoding:20, attrId:0001, consumedBytes:4, attrInt:1], [value:TS0601, encoding:42, attrId:0005, consumedBytes:9, attrInt:5]]]

dev:5782022-02-07 17:04:52.899 infoTuya Temperature Humidity Illuminance LCD Display with a Clock InitializeVars()... fullInit = false

dev:5782022-02-07 17:04:52.892 debugTuya Temperature Humidity Illuminance LCD Display with a Clock updating the settings from the current driver version null to the new version 1.0.2 2022/02/05 6:35 AM

dev:5782022-02-07 17:04:52.577 traceTuya Temperature Humidity Illuminance LCD Display with a Clock sendZigbeeCommands(cmd=[he raw 0x5ACC 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200])

dev:5782022-02-07 17:04:52.566 infoTuya Temperature Humidity Illuminance LCD Display with a Clock configure()..

dev:5782022-02-07 17:04:52.555 infoTuya Temperature Humidity Illuminance LCD Display with a Clock installed()

OK, now force the model group to be TS0601 Tuya.

When pressing the Initialize button again, please press the small button on the top of the device to make sure it is awaken at this time.

dev:5782022-02-07 17:14:39.524 infoTuyaTry2 Initialization finished version=1.0.2 (Timestamp: 2022/02/05 6:35 AM)

dev:5782022-02-07 17:14:39.521 infoTuyaTry2 manufacturer = _TZE200_c7emyjom ModelGroup = TS0601_Tuya

dev:5782022-02-07 17:14:36.495 traceTuyaTry2 sendZigbeeCommands(cmd=[he raw 0x5ACC 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200])

dev:5782022-02-07 17:14:36.492 infoTuyaTry2 configure()..

dev:5782022-02-07 17:14:36.489 traceTuyaTry2 sendZigbeeCommands(cmd=[he cmd 0x5ACC 0x01 0xEF00 0x00 {00011302000400000005}, delay 2000, he cmd 0x5ACC 0x01 0xEF00 0x00 {00020B02000400000190}, delay 2000, he cmd 0x5ACC 0x01 0xEF00 0x00 {00030A02000400000064}, delay 2000])

dev:5782022-02-07 17:14:36.486 infoTuyaTry2 Update finished

dev:5782022-02-07 17:14:36.484 traceTuyaTry2 sendTuyaCommand = [he cmd 0x5ACC 0x01 0xEF00 0x00 {00030A02000400000064}, delay 2000]

dev:5782022-02-07 17:14:36.481 traceTuyaTry2 changing minTempAlarm to= 10.0

dev:5782022-02-07 17:14:36.479 traceTuyaTry2 sendTuyaCommand = [he cmd 0x5ACC 0x01 0xEF00 0x00 {00020B02000400000190}, delay 2000]

dev:5782022-02-07 17:14:36.476 traceTuyaTry2 changing maxTempAlarm to= 40.0

dev:5782022-02-07 17:14:36.473 traceTuyaTry2 sendTuyaCommand = [he cmd 0x5ACC 0x01 0xEF00 0x00 {00011302000400000005}, delay 2000]

dev:5782022-02-07 17:14:36.471 traceTuyaTry2 changing temperatureSensitivity to= 0.5

dev:5782022-02-07 17:14:36.468 warnTuyaTry2 temperatureScaleParameter NOT MATCH!

dev:5782022-02-07 17:14:36.466 traceTuyaTry2 temperatureScaleParameter = null

dev:5782022-02-07 17:14:36.463 infoTuyaTry2 Debug logging is will be turned off after 24 hours

dev:5782022-02-07 17:14:36.450 infoTuyaTry2 Debug logging is true; Description text logging is true

dev:5782022-02-07 17:14:36.447 infoTuyaTry2 Updating TuyaTry2 (Tuya Temperature Humidity Illuminance LCD Display with a Clock) model TS0601 manufacturer _TZE200_c7emyjom modelGroupPreference = TS0601_Tuya (TS0601_Tuya)

dev:5782022-02-07 17:14:36.439 infoTuyaTry2 installed()

dev:5782022-02-07 17:14:36.353 infoTuyaTry2 InitializeVars()... fullInit = true

dev:5782022-02-07 17:14:36.341 infoTuyaTry2 Initialize()...

There is not much information for this new device that can be found on the Net... The only one reference, after excluding all the swearings toward Tuya :sweat_smile:... was not very helpful.

I have included your device fingerprint into the new version 1.0.3, please update the driver from the link in the first post. I have also removed some reporting initialization, which is likely to confuse this device. Please pair the device again, there is a chance that a successful initialization may happen only during the initial pairing process.

If it doesn't work again, I suggest that you send me a PM with the logs. It may take several iterations until we have success.

This is something I've not seen before!!

Upon clicking more... they both had their own UIDs. But there is only one in the device list now. And it's working! I have messaged you the log.

1 Like

@Inge_Jones I am glad it worked for you, thank you for the logs too!

When you have a chance, please test whether your device can switched between Celsius and Fahrenheit readings on the LCD display? Although there are such settings, my device does not change C/F, even when paired to Tuya gateway and controlled by Smart Life app via Tuya cloud.

Also, if you change the 'Minimum Temperature Alarm' or 'Maximum Temperature Alarm' values, does the emoticon on the LCD display ever change if the current temperature is outside these boundaries? Mine does not, but it seems like our devices are slightly different.

Download the Hubitat app