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

Version 1.4.4 (2023-08-18) was pushed for automatic update via HPM. It adds support for several newly released Tuya 24Ghz radars.

The next dev. branch version 1.5.0 will contain major internal code changes/refactoring, so it may take a while before it is published.

4 Likes

I deleted the other driver and installed the new hpm pack. It seems to be all good! Thank you sir!

1 Like

You are a miracle worker. It worked like a charm. Thanks a lot. Apologies for the late reply. I just got back home from a two weeks vacation.

1 Like

Got one of these

Seems to be using the * deviceProfile : TS0225_2AAELWXK_RADAR

Did anyone who have pets (I have cats) manage to find the sweet spot for the settings?
If yes could you share your settings
The sensor seems to be detecting small movements when the cats are roaming or even sleeping.
I mean It does what it supposed to be doing but was wondering what should I be tweaking to take the animals out of the equation :cat:

Thank you

I have purchased from Aliexpress this PIR sensore:
https://www.aliexpress.com/item/1005005720385521.html?spm=a2g0o.order_list.order_list_main.16.4ca91802CiksNB
When attached to my HE using this driver, it reports this data:

  • endpointId: 01
  • application: 46
  • inClusters: 0001,0500,0003,0000
  • manufacturer: _TZ3000_bsvqrxru
  • model: TS0202
  • outClusters: 1000,0006,0019,000A
  • softwareBuild:

But unfortunately, no motion is picked up.

After initializing, here is an extract from the log:
dev:3872023-09-06 12:02:29.989debugMotion sensor (Tuya #3) sendZigbeeCommands (cmd=[he raw 0x5EEE 1 0x01 0x0000 {10 00 00 07 00}, delay 200, he raw 0x5EEE 1 0x01 0x0001 {10 00 00 20 00}, delay 200, he raw 0x5EEE 1 0x01 0x0001 {10 00 00 21 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 00 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 01 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 02 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 10 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 11 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 12 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 13 00}, delay 200, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 01 F0}, delay 200, he cmd 0x5EEE 0x01 0xEF00 0x03 {}, delay 2000])

dev:3872023-09-06 12:02:29.962infoMotion sensor (Tuya #3) refresh()...

dev:3872023-09-06 12:02:28.935infoMotion sensor (Tuya #3) Initialization finished
version=1.4.5 (Timestamp: 2023/08/26 1:44 PM)

dev:3872023-09-06 12:02:28.933infoMotion sensor (Tuya #3) manufacturer = _TZ3000_bsvqrxru

dev:3872023-09-06 12:02:26.957infoMotion sensor (Tuya #3) preferencies updates are sent to the device...

dev:3872023-09-06 12:02:26.953debugMotion sensor (Tuya #3) sendZigbeeCommands (cmd=[he wattr 0x5EEE 0x01 0x0500 0x0013 0x20 {02} {}, delay 200, he wattr 0x5EEE 0x01 0x0500 0xF001 0x20 {00} {}, delay 200])

dev:3872023-09-06 12:02:26.952debugMotion sensor (Tuya #3) sending the changed AdvancedOptions

dev:3872023-09-06 12:02:26.950debugMotion sensor (Tuya #3) changing IAS Keep Time to : 10 seconds (0)

dev:3872023-09-06 12:02:26.947debugMotion sensor (Tuya #3) Motion sensor (Tuya #3) sending IAS Keep Time : 10 seconds (0)

dev:3872023-09-06 12:02:26.941debugMotion sensor (Tuya #3) Motion sensor (Tuya #3) sending IAS sensitivity : high (2)

dev:3872023-09-06 12:02:26.931debugMotion sensor (Tuya #3) changing IAS sensitivity to : high (2)

dev:3872023-09-06 12:02:26.927debugMotion sensor (Tuya #3) state.deviceProfile=TS0202_MOTION_IAS, settings.forcedProfile=Tuya TS0202 Motion sensor (IAS), getProfileKey()=TS0202_MOTION_IAS

dev:3872023-09-06 12:02:26.919infoMotion sensor (Tuya #3) Debug logging will be turned off after 24 hours

dev:3872023-09-06 12:02:26.894infoMotion sensor (Tuya #3) Debug logging is true; Description text logging is true

dev:3872023-09-06 12:02:26.892infoMotion sensor (Tuya #3) Updating Motion sensor (Tuya #3) (Tuya TS0202 Motion Sensor) model TS0202 manufacturer _TZ3000_bsvqrxru deviceProfile=TS0202_MOTION_IAS

dev:3872023-09-06 12:02:26.889infoMotion sensor (Tuya #3) updated()...

dev:3872023-09-06 12:02:25.837debugMotion sensor (Tuya #3) sendZigbeeCommands (cmd=[he raw 0x5EEE 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200, he wattr 0x5EEE 0x01 0x0000 0xFFDE 0x20 {13} {}, delay 200, he wattr 0x5EEE 0x01 0x0500 0x0010 0xF0 {26314216006F0D00}, delay 2000, he raw 0x5EEE 1 0x01 0x0500 {01 23 00 00 00}, delay 2000, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 00 00}, delay 2000])

dev:3872023-09-06 12:02:25.831debugMotion sensor (Tuya #3) Enrolling IAS device: [he raw 0x5EEE 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200, he wattr 0x5EEE 0x01 0x0000 0xFFDE 0x20 {13} {}, delay 200, he wattr 0x5EEE 0x01 0x0500 0x0010 0xF0 {26314216006F0D00}, delay 2000, he raw 0x5EEE 1 0x01 0x0500 {01 23 00 00 00}, delay 2000, he raw 0x5EEE 1 0x01 0x0500 {10 00 00 00 00}, delay 2000]

dev:3872023-09-06 12:02:25.745infoMotion sensor (Tuya #3) configure()..

dev:3872023-09-06 12:02:25.599infoMotion sensor (Tuya #3) device model TS0202 manufacturer _TZ3000_bsvqrxru was set to : deviceProfile=TS0202_MOTION_IAS : deviceName=Tuya TS0202 Motion Sensor

dev:3872023-09-06 12:02:25.573debugMotion sensor (Tuya #3) found exact match for model TS0202 manufacturer _TZ3000_bsvqrxru : profileName=TS0202_MOTION_IAS deviceName =Tuya TS0202 Motion Sensor

dev:3872023-09-06 12:02:25.561infoMotion sensor (Tuya #3) All current states (attributes) DELETED

dev:3872023-09-06 12:02:25.556debugMotion sensor (Tuya #3) deleting detectionDelay

dev:3872023-09-06 12:02:25.552debugMotion sensor (Tuya #3) deleting batteryVoltage

dev:3872023-09-06 12:02:25.548debugMotion sensor (Tuya #3) deleting maximumDistance

dev:3872023-09-06 12:02:25.545debugMotion sensor (Tuya #3) deleting unacknowledgedTime

dev:3872023-09-06 12:02:25.541debugMotion sensor (Tuya #3) deleting battery

dev:3872023-09-06 12:02:25.538debugMotion sensor (Tuya #3) deleting illuminance

dev:3872023-09-06 12:02:25.534debugMotion sensor (Tuya #3) deleting tamper

dev:3872023-09-06 12:02:25.526debugMotion sensor (Tuya #3) deleting healthStatus

dev:3872023-09-06 12:02:25.522debugMotion sensor (Tuya #3) deleting leave_time

dev:3872023-09-06 12:02:25.518debugMotion sensor (Tuya #3) deleting humidity

dev:3872023-09-06 12:02:25.515debugMotion sensor (Tuya #3) deleting radarStatus

dev:3872023-09-06 12:02:25.511debugMotion sensor (Tuya #3) deleting humanMotionState

dev:3872023-09-06 12:02:25.507debugMotion sensor (Tuya #3) deleting fadingTime

dev:3872023-09-06 12:02:25.501debugMotion sensor (Tuya #3) deleting motion

dev:3872023-09-06 12:02:25.497debugMotion sensor (Tuya #3) deleting distance

dev:3872023-09-06 12:02:25.494debugMotion sensor (Tuya #3) deleting temperature

dev:3872023-09-06 12:02:25.490debugMotion sensor (Tuya #3) deleting radarSensitivity

dev:3872023-09-06 12:02:25.482debugMotion sensor (Tuya #3) deleting powerSource

dev:3872023-09-06 12:02:25.478debugMotion sensor (Tuya #3) deleting minimumDistance

dev:3872023-09-06 12:02:25.474debugMotion sensor (Tuya #3) deleting motionType

dev:3872023-09-06 12:02:25.469debugMotion sensor (Tuya #3) deleting existance_time

dev:3872023-09-06 12:02:25.461debugMotion sensor (Tuya #3) deleting checkInterval

dev:3872023-09-06 12:02:25.438infoMotion sensor (Tuya #3) Motion sensor (Tuya #3) InitializeVars( fullInit = true )...

dev:3872023-09-06 12:02:25.405infoMotion sensor (Tuya #3) Initialize( fullInit = true )...

This appears to show motion is not working.

Your thoughts please?

The logs show that nothing is received from the device.

Try pairing it again, very close to the hub.

Updated the main version to 1.5.0 dated 2023-08-27, which adds support for a bunch of new Tuya mmWave radars.

This update will not be pushed via HPM, as it is still a bit risky - there are a lot of code changes in this major version update.

Updating from HPM can be done using the "Repair a package" function:
image

This actually updates the driver the latest 'production' version.

1 Like

Thank you! Pairing close to the hub solved the issue.
May I also thank you for such a great driver. I see you have also created a Tuya smoke detector driver, so that will encourage me to enhance my HE with smoke detectors too.

2 Likes

Depending on your need you can a few things. You can adjust the sensor min/max distances. That can work well if you have it mounted on the ceiling and only want to capture humans or tall pets. You can lower the sensitivity for small movements etc.

2 Likes

Thank you.

In my mind I had this idea that being an mWave sensor it would maybe detect the size of the object moving hence the name "human presence detector" This is why I was kinda confused.
I mounted it on the wall not on the ceiling maybe that also plays a role. Will try playing with the settings. Thank you :+1:

Yea, the newer boards might be able to do that at some point. The fact that these can detect breathing and hand movements means pets are included. If you don't mind turning off small movement sensing you may have some luck.

What do you want it to sense or whats your use case?

I need to play around with it I didn't get around it much. Essentially it will stay in the livingroom and once i'm done for the day and go sleeping I would like to turn off the lights etc, Mind you I will restrict it it let's say maybe between 10PM- 11:30
Something like that

Hi there...if the sensor is on your wall, you could try maybe play with the inclination of the sensor

The sensor has a range of 110 de grades or something like that of cover so....try to find maybe an angle up when the sensor dont read the floor, where im guessing is the main transit of your pet.

Im doing the opposite of that,having one sensor angle down,to try to avoid a ceeling fan from detecting it when is on, but still reading me when i walk arround and i made it,try and error,also try different values on distance,sensitivity etc

Good luck.

Interesting!
I will do some tests this weekend and see how it performs.

Thank you!

1 Like

Spammy device 24G
image

Pair easily with HE using this driver

Reports distance every second. Oddly it will pause reporting for a few seconds every once in a while.

Will report inactive for a few milliseconds than back to active again while I'm present.


Will do this every 10 seconds or so then there will be a long period where just distance events are reported.

1 Like

@bbholthome please update to the dev.branch version 1.5.2

There are some small changes in it, trying to achieve the MVP - presence detection (motion) working and reducing the spamming messages. Let's see if this true 24Ghz radar will work OK with the default settings.

The logs are much cleaner.


I sat still on purpose to get the inactive event. I see no evidence of the flicker between active and inactive for a few milliseconds. Great work but are you not concerned about all the distance reports putting a heavy load on the hub? So far I see no evidence of it.

1 Like

I purchased the Tuya ZigBee Multi-Sensor 3 in 1.
Is it possible to disable the led indicator?
There is a parameter called "radarLedIndic" but i don't know the relevent string to insert.

I have pushed version 1.5.2 (last changed on 2023-09-14) for an update via HPM.

1 Like

@yanivsh23 I haven't found a way to disable the 3-in-1 sensor LEDs. This function works for the 4-in-1 sensor only.

1 Like