[RELEASE] Tuya Zigbee mmWave Sensors (code moved from the Tuya 4 In 1 driver)

TS0601 _TZE200_ppuj1vem should be a PIR motion sensor, not a mmWave radar…

Try using the [RELEASE] Tuya Zigbee Multi-Sensor 4 In 1 (PIR motion sensors) w/ healthStatus driver instead.

Even using that one, it does nothing.

Here’s what I have it set to now:

  • deviceType : mmWaveSensor
  • deviceProfile : TS0601_24GHZ_PIR_RADAR
  • lastTx : {cmdTime=1724528839220}
  • lastRx : {}
  • stats : {cfgCtr=1, rxCtr=0, txCtr=50}
  • driverVersion : 3.2.4 2024/07/31 5:20 PM (TS0601 _TZE200_ppuj1vem) (C-8 2.3.9.166)
  • health : {checkCtr3=37, offlineCtr=0}
  • motionStarted : 2024-08-18 09:18:32.475
  • states : {isRefresh=false, isDigital=false, isPing=false}

Ok, I think I remember now what type of device it is….

Last screenshot shows 50 packets transmitted (txCtr=50) , but nothing received from the device (rxCtr=0)

Your device seems to have dropped off the Zigbee network, try to pair it again.

For C-8 hubs, this workaround has succeeded to pair reliably the problematic Zigbee 3.0 devices many times already.

1 Like

Hi @kkossev

I have the following Tuya Zigbee mmWave Sensor TS0601_24GHZ_PIR_RADAR. The details are:

  • Endpoint ID: 01
  • Application: 91
  • Manufacturer: _TZE200_2aaelwxk
  • Model: TS0601
  • Tuya Version: 2.1.1

I’m noticing the following error in the logs:

app:842 2024-08-31 01:51:54.802 PM error java.lang.StringIndexOutOfBoundsException: begin 22266, end 21883, length 33312 on line 183 (method mainPage)

Is there something I should configure differently to prevent this error?

Any help would be appreciated, thanks in advance.

Hi David,

I am a bit confused what type of device is that ... There is a 5.8 GHz radar * Manufacturer: _TZE200_2aaelwxk, but the model is TS0225

Can you post a link to the site where the TS0601 model was purchased?

EDIT: I found it - is it this one?

image

What is this driver version that you are using?
(The driver version is shown in the 'State Variables' section

Mine is 2.1.0 - maybe that's why I don't experience a problem... Will try to update the firmware of my sensor tomorrow, if an update is available using Tuya GW.

Update: unfortunately, no firmware update is available on Tuya GWs, so I can't replicate the issue myself.

Make sure you are on the latest 'Tuya Zigbee mmWave Sensor' driver version - currently it is "3.2.4" , time stamp "2024/07/31 5:20 PM".

Then, enable the Debug logs and try to relate the error :

I’m noticing the following error in the logs:

app:842 2024-08-31 01:51:54.802 PM error java.lang.StringIndexOutOfBoundsException: begin 22266, end 21883, length 33312 on line 183 (method mainPage)

Is there something I should configure differently to prevent this error?

Actualy, this error is not from this driver, but is generated by an app ?

Oops, looks like I grabbed the wrong screenshot! Let's hit the reset button and give it another go:

  • endpointId: 01
  • application: 91
  • manufacturer: _TZE200_kb5noeto
  • model: TS0601
  • tuyaVersion: 2.1.1

And the plot thickens with this error:

dev:613 2024-09-05 11:00:06.290 AM error:
groovy.lang.MissingPropertyException: No such property: cluster for class: java.lang.String on line 1341. (method parse)

I have two of these and the error appears around every hour or so.

Edit: That is the correct Picture you provided.

Edit 2:

State Variables

  • deviceProfile : TS0601_24GHZ_PIR_RADAR
  • deviceType : mmWaveSensor
  • lastTx : {cmdTime=1722893962476}
  • lastRx : {checkInTime=1722893964289, illumTime=1725544825914}
  • stats : {cfgCtr=3, rxCtr=122065, txCtr=102, illumCtr=45423, rejoinCtr=8}
  • driverVersion : 3.2.2 2024/06/04 8:36 PM (TS0601 _TZE200_kb5noeto) (C-7 2.3.9.176)
  • health : {checkCtr3=0, offlineCtr=0}
  • motionStarted : 2024-09-04 22:10:41.664
  • states : {isRefresh=false, isDigital=false, isPing=false}

So this is what I have but when I go to Habitat Package Manager there are no updates for it.

Where would I find the driver version you are suggesting?

Edit 3:
I tried a Match up and a repair, but the version did not update.

image

1 Like

David, thank you for the report. I think the error that you see in the logs in fixed in the latest development branch, however it is not put for automatic updates via HPM yet.

Can you update the driver manually to the latest dev. branch version 3.2.4 ?
This is the update link :
https://raw.githubusercontent.com/kkossev/Hubitat/development/Drivers/Tuya%20Zigbee%20mmWave%20Sensor/Tuya_Zigbee_mmWave_Sensor_lib_included.groovy

You can use this procedure for a quick manual update:

If this fixes the exception in the logs, I will force the update via HPM tomorrow.

Thanks. I have imported and saved the update. Will report back after I have monitored it for a few hours.

1 Like

It looks to be fixed. Just checked the past logs between 6:30am back to 10:30pm and found no errors.

Thanks for the fix.

1 Like

Thank you for the tests!

The latest version, 3.2.4, was pushed for an update via HPM.

1 Like

Your welcome, thanks for the update.

tried this one, still no dice

oh nvm. I missed your message about pairing on the C8. followed those directions and now it looks like its working.

(post deleted by author)

(post deleted by author)

I have a few of the white box human presence detectors. Can't seem to get them working. Below is the info I'm seeing. Tried the white square basic profile and a few others, but it's a no go, the presence state doesn't show and doesn't change if I set it manually.

  • endpointId: 01
  • application: 4A
  • manufacturer: _TZE204_ex3rcdha
  • model: TS0601
  • tuyaVersion: 1.0.10 ####

State Variables
deviceProfile : UNKNOWN
lastTx : {cmdTime=1726266859225}
lastRx : {checkInTime=1726266871003}
stats : {cfgCtr=1, rxCtr=6, instCtr=1, txCtr=2}
driverVersion : 3.2.4 2024/07/31 5:20 PM (TS0601 _TZE204_ex3rcdha) (C-7 2.3.9.180)
health : {checkCtr3=0}
motionStarted : 2024-09-13 18:34:16.543
states : {}

Just for grins, try resetting and repairing the device WITHOUT removing it from HE.