Has anyone gotten the tuya humidity/temp/ light sensor working with Hubitat

This one does Fahrenheit and aa so you can run it indefinitely with a battery eliminator and with the light sensor, automations would be sweet. “If temperature is (x) and the room is extra bright, close shades”

I think that @snell has written a driver for this.

1 Like

Tuya does things with their manufacturer-specific cluster for ZigBee data rather than use the standard ones. So you would likely need a custom driver.

I just got a Tuya ZigBee Air Sensor driver going, so that could be a basis if needed or I can help make you one if you are willing to put up with some back-and-forth PMs in the evening to check the data.

Heck, my Air Sensor one may actually work if they at least used the same cluster, although it would not be recognized off the bat of course.

Edit: @aaiyar you ninja you... Mine is actually a different device and with Tuya you never know...


Would you want one? I’d be more than happy to buy you one if it’s something you’d use

Yea, I saw yours didn’t do F

Ha! My WAF might start going down if I start "collecting" too much. The 3 weather stations has her a bit tweaked already.

But if you have one, I can easily work with you to check what is being reported back and work from there.

Edit: It should do F. Temperature should be based on what your Hubitat reports the location temperature format (F for some, C for others). If it is not, that is a good on my part.
If you are saying you tried it with this device and it did not report it... THAT is a different issue and related to how Tuya reports it. Something we could check the data and correct for (hopefully).

:joy: I understand. I don’t, I was going to order one. I doubt I can do it, my computer programming goes as far as excel :rofl:. Thx though. Seems like a cool aio device, if it’s accurate

1 Like

How can I find you’re driver? I ment doesn’t yours show in c, on the device?

I can handle the programming if you do want to buy one. Main thing would be to PM me logs of what it reports. I build that into most of my drivers to begin with and I am constantly adding to my ZigBee cluster table as I figure out new parts.

Tuya was the latest. Funny that another may come up so soon.

1 Like

Here is the project page for it: [PROJECT] Tuya ZigBee Air Sensor Driver

No, the Air Sensor has no display at all. Only feedback is a simple red LED. Everything else is over the ZigBee.

Oh, I was getting you confused with Zigbee 3.0 Temperature Humidity Sensor Detector With LCD Display - #27 by pfmiller ha

The top of that thread has the “clusters”, I think

1 Like

@snell do you think it’s worth order?

Totally up to you. If you get one, it has no guarantees of course, but I volunteer to try to make a usable driver for it at least.

Thx from that thread it seems impossible or am I reading it wrong?

That other thread does say they got it working. ZigBee is more usable (in my book) with Tuya devices than their cloud/WiFi devices.

1 Like


I’m trying to use this same device, but so far I’m not having much luck. I’ve tried the related built-in drivers as well as the @snell Air Sensor Driver and the @pfmiller driver listed above (Tuneway Tuya Temp/Humidity Sensor).

When I try the Air Sensor Driver I see the following log entry:

dev:782021-07-23 20:36:31.664 debugDiagnostic enviro2 - Unhandled cluster. 0400 is Luminance measurement, descMap = [raw:1EBB0104000A0000210000, dni:1EBB, endpoint:01, cluster:0400, size:0A, attrId:0000, encoding:21, command:0A, value:0000, clusterInt:1024, attrInt:0]

When I try the Tuneway Tuya Temp/Humidity Sensor driver I see:

dev:782021-07-23 20:33:01.916 debugReturning empty map

dev:782021-07-23 20:33:01.912 debugParse returned [:]

dev:782021-07-23 20:33:01.909 warnNo condition matched: clusterInt: 1024; commandInt: null

dev:782021-07-23 20:33:01.906 debugdescription: read attr - raw: 1EBB0104000A0000210000, dni: 1EBB, endpoint: 01, cluster: 0400, size: 0A, attrId: 0000, encoding: 21, command: 0A, value: 0000

I am willing to learn how to create a driver for it, but I certainly don’t expect anyone here to hold my hand. I would very much appreciate any form of help anyone may offer to get this thing working : )


I am working creating a specific driver for this device in a separate thread here:

BUT... It is definitely not working well yet and some of the log entries you posted here seem to be what we are seeing with it otherwise. There is the Luminance reported by ZigBee (HOORAH, although the values are odd)... and nothing else. There is a special cluster it is reporting otherwise (I think the one that @pfmiller's driver is looking for and mine is checking) but the data comes back blank or with the exact same value all the time. So it does not appear to actually report the Temperature and Humidity so far.

Hi Jerry, that 0400 cluster you are getting an error for is probably the illuminance data. The device I wrote my driver for is slightly different and didn't include that sensor.

Is the temp and humidity working with my driver? If so it would probably be pretty simple to handle the illuminance too.

That said, it looks like that data being returned is 0, so I'm not sure if handling it would accomplish much.

It is a weird one. Data comes back on 0400 for illuminance (I assume his is dark at that moment). But nothing comes back on 0402 or 0405. It has a manufacturer specific cluster E002 that reports but never seems to change. It also does not appear to report anything on the "normal" Tuya cluster of EF00.

1 Like

Thank you for the replies.

The sensor is in fact sitting in a dark room; which likely explains why 0402 is reporting 0. I have also learned that this device appears to lump both temperature and humidity into one cluster (e002?), so those parameters are not reporting either. Aside from the debug logs the only response I have received from any driver is that the battery is 100%.

In the other related thread mentioned above @JasonJoel said that someone would need to review the payload and use trial and error to figure it out. I would certainly be willing to do this if I knew how. At the end of that thread it looks as if @oscensores got it working, but doesn’t really explain how (something about ZHA).

I’m still researching as well as reading the language reference documentation for Groovy. However given the device has a 30-day return policy (minus a couple of days or so) my time is limited.

Download the Hubitat app