[RELEASE] Tuya Zigbee Multi-Sensor 4 In 1 (PIR motion sensors) w/ healthStatus

I confirm this worked excelent with Tuya WiFi Zigbee Human Motion Sensor Smart Home PIR Motion Sensor Detector With Light Sensor Scene Switch and it detects

  • Motion
  • illuminance (0 and 1) for general illuminance without LUX (i guess from senser)
  • button press pushed
  • double pushed
  • and battery

really nice set of basic inputs all together for automation of bathrooms or area in which the sensor can work as scene switcher or so

2 Likes

Thank you so much. All is well now. This little sensor is powerful once you get the sensitivity and distance right.

1 Like

very nice! Do you mean that there is a driver for hubitat that works directly without any special knowledge?

If your device is the same as the one posted in the link above, it is supported by this driver.

Complete newbie here. I recently purchased this device.

  • endpointId: 01
  • application: 41
  • inClusters: 0000,0003,0004,0005,E002,4000,EF00,0500
  • manufacturer: _TZ3218_awarhusb
  • model: TS0225
  • outClusters: 000A,0019
  • softwareBuild:
  • tuyaVersion: 1.0.1

I can't get it to work. I couldn't find the tuya 4-1 in the hpm, i manually installed the driver (I think i did it right). Any help would be greatly appreciated. the generic didn't work. I can get it paired no problem. It is showing motion status as active but it doesn't perform any actions.

1 Like

Hey kkossev,

Has the Tuya motion sensor and scene switch been added to this driver as yet? I added the device but I can't use the button in any automations. The device doesn't show up in the list of smart buttons. So currently, I can only use the motion sensor part of it. I just wanted to use the button to run an automation to keep the lights on/off depending on what I'm doing.

Please let me know if there is anything about the device that i need to provide.

Thanks in advance.

Hi @user6222 ,

To be able to select this device in automations it was needed to uncomment 3 lines in the driver code... Unfortunately, Hubitat platform does not allow dynamic capabilities in user drivers.

So I have created a clone of this driver where the button capabilities (PushableButton, DoubleTapableButton, HoldableButton attributes) are enabled.

Please create a new driver, copying the code from here :

https://raw.githubusercontent.com/kkossev/Hubitat/main/Drivers/Tuya%20Multi%20Sensor%204%20In%201/Tuya_Motion_Sensor_and_Scene_Switch.groovy

Let me know if this works.

This is one of the new 24GHz radars that are not yet supported in any home automation system different than Tuya. It will take some time, until enough information is available to add support for this device in the driver.

Can you post a link to the site where it was purchased?
( you may need to join Hub owners - Hubitat group to be able to post links and pictures)

@user6262, you have already received and paired this _TZ3218_awarhusb device, right?
Probably the best approach would be to do the following:

  • update to the latest development branch version of the Tuya 4 In 1 driver.
  • Hit Initialize.
  • Make sure the Debug option is on.
  • power off the device for a few seconds, then power it back on.
  • send me in a DM all the logs that follow.

I purchased a bunch of sensors from many different manufacturers. One of them was Linptech.

https://www.amazon.com/dp/B0C7C6L66J

image

I'll send you the logs

1 Like

@JumpJump thank you for the logs.
I will analyze them tomorrow, but what I see for the moment is that this Linptech device also uses the standard ZCL IAS cluster, i.e. it reports the occupancy also using the standard ZIgbee protocol, so it may even work with the HE inbuilt Generic Motion Sensor (no temp) driver ... Can you test this?

Update: a screenshot from Amazon reviewer of a similar sensor - there configuration settings, although the commands protocol is still unknown

This driver is working flawlessly for my 5GHz sensors.
But I just got the updated version with USBC and 24GHz.
Any chance these will be supported as well?

endpointId: 01
application: 4A
manufacturer: _TZE204_ijxvkhd0
model: TS0601
tuyaVersion: 1.0.10

If needed I can provide more information. With guidance :slight_smile:

Dear Krassimir

I have Some tuya TZ3000 but dont really work

dev:15972023-08-16 17:34:20.833infoTuya TS0202 Motion Sensor received device manufacturer _TZ3000_6ygjfyll

dev:15972023-08-16 17:34:20.826debugTuya TS0202 Motion Sensor parse (_TZ3000_6ygjfyll, 1.4.1 2023/08/15 4:02 PM) descMap = [raw:8B5401000068040042105F545A333030305F3679676A66796C6C0000002003010000204605000042065453303230320700003003FEFF003000, dni:8B54, endpoint:01, cluster:0000, size:68, attrId:0004, encoding:42, command:01, value:_TZ3000_6ygjfyll, clusterInt:0, attrInt:4, additionalAttrs:[[value:03, encoding:20, attrId:0000, consumedBytes:4, attrInt:0], [value:46, encoding:20, attrId:0001, consumedBytes:4, attrInt:1], [value:TS0202, encoding:42, attrId:0005, consumedBytes:9, attrInt:5]]]

dev:15972023-08-16 17:34:20.805infoTuya TS0202 Motion Sensor is present

dev:15972023-08-16 17:34:20.774debugTuya TS0202 Motion Sensor sendZigbeeCommands (cmd=[he raw 0x8B54 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200, he wattr 0x8B54 0x01 0x0000 0xFFDE 0x20 {13} {}, delay 200, he wattr 0x8B54 0x01 0x0500 0x0010 0xF0 {F5153616006F0D00}, delay 2000, he raw 0x8B54 1 0x01 0x0500 {01 23 00 00 00}, delay 2000, he raw 0x8B54 1 0x01 0x0500 {10 00 00 00 00}, delay 2000])

dev:15972023-08-16 17:34:20.771debugEnrolling IAS device: [he raw 0x8B54 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200, he wattr 0x8B54 0x01 0x0000 0xFFDE 0x20 {13} {}, delay 200, he wattr 0x8B54 0x01 0x0500 0x0010 0xF0 {F5153616006F0D00}, delay 2000, he raw 0x8B54 1 0x01 0x0500 {01 23 00 00 00}, delay 2000, he raw 0x8B54 1 0x01 0x0500 {10 00 00 00 00}, delay 2000]

dev:15972023-08-16 17:34:20.727infoTuya TS0202 Motion Sensor configure()..

dev:15972023-08-16 17:34:20.432infoTuya Multi Sensor 4 In 1 Initialize( fullInit = true )...

dev:15972023-08-16 17:34:20.425infoTuya Multi Sensor 4 In 1 installed()...

Manufacturer: _TZ3000_6ygjfyll
Endpoint 01 application: 46
Endpoint 01 endpointId: 01
Endpoint 01 idAsInt: 1
Endpoint 01 inClusters: 0001,0500,0003,0000
Endpoint 01 initialized: true
Endpoint 01 manufacturer: _TZ3000_6ygjfyll
Endpoint 01 model: TS0202
Endpoint 01 outClusters: 1000,0006,0019,000A
Endpoint 01 profileId: 0104
Endpoint 01 stage: 4

Hi @user6222 ,
Please update the driver to the development branch version 1.4.3 2023/08/17 7:34 AM
Then click on the Initialize button.

The configuration of the different preferences is not ready yet, but let me know if the basic functionality ( presence or motion active/inactive) works with the default settings.

Hi Zsolt, this sensor was added to the driver a long time ago, should be supported ... Try pairing it again, very close to the hub.

Hi

It can be added to the hub. nothing recognises it except your driver. but after being added it does nothing. shows motion all the time. Tried with tuya. it's working so it's not defective.

Kind Regards
Zsolt

Seems like a Zigbee connectivity issue…

You didn’t answer if you have tried adding it to the hub several times at very close distance (without removing it).
What is the hub, C-8or C-7 ?

Hi

Yes I have readded, without removing, it many times from abouth 1 meter distance.

If you enable the Debug logging on, and don't see any messages coming from the sensor, then it is a Zigbee connectivity issue..

C-8 or C-7?

If you remove the battery cell, wait 1 minute and put the cell back into the sensor - do you see anything in the live logs?