Skip to content

DDF for Tuya presence sensor (_TZ3000_otvn3lne)#6297

Merged
manup merged 1 commit intodresden-elektronik:masterfrom
Monofin:master
Sep 5, 2022
Merged

DDF for Tuya presence sensor (_TZ3000_otvn3lne)#6297
manup merged 1 commit intodresden-elektronik:masterfrom
Monofin:master

Conversation

@Monofin
Copy link
Contributor

@Monofin Monofin commented Aug 29, 2022

Add support for the _TZ3000_otvn3lne_presence_sensor.json
This is a relatively new sensor from Tuya, but follows the style of using an IAS Zone cluster at 0x500 rather than at 0x0406.
Tested as working on two examples of the sensor using a Conbee II.
Created using the DDF tool in the deconz app, and not externally edited.

@Smanar
Copy link
Collaborator

Smanar commented Aug 29, 2022

Hello, I m not sure you need to create a ZHABattery, can just use state/battery.
Can compare with this one https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZ3000_msl6wxk9_presence_sensor.json (this one use enrollement) but need to remove all "description" line on the sample.

@Monofin
Copy link
Contributor Author

Monofin commented Aug 30, 2022

I'll update the PR: It looks like they're both TS0202 models with the same cluster layout and behaviour (just that classic Tuya thing of renaming it for different branding....).
I'll test it by adding the MF Id. to the _msl6wxk9 DDF, tidying it up a bit (description lines and capitalisation), then renaming it to ts0202_presence_sensor.json ?

Cheers!

@Monofin
Copy link
Contributor Author

Monofin commented Aug 30, 2022

Patch tested against two examples of the _TZ3000_otvn3lne, working: (Also is non disruptive to Homebridge devices as it does not change the device types or other things that would identify it as a different device)

@Smanar
Copy link
Collaborator

Smanar commented Aug 30, 2022

For me it s perfect, it correct the old DDF and add a compatible clone.

I think there is too much model ID

 "manufacturername": ["_TZ3000_msl6wxk9", "_TZ3000_otvn3lne"],
   "modelid":["TS0202", "TS0202", "TS0202"],

2 manufacture name but 3 model id

@Monofin
Copy link
Contributor Author

Monofin commented Aug 31, 2022

Oops, sorry about that extra model ID! Nice catch...
I'll update and recommit immediately.

@Monofin
Copy link
Contributor Author

Monofin commented Aug 31, 2022

(I'm only using force push on my fork so I can rebase and have the PR updated immediately!)

@manup
Copy link
Member

manup commented Sep 1, 2022

Looks good to me, ready to merge?

@Monofin
Copy link
Contributor Author

Monofin commented Sep 2, 2022

Ready 👍

@manup manup added this to the v2.18.1-beta milestone Sep 5, 2022
@manup manup merged commit b698d7a into dresden-elektronik:master Sep 5, 2022
@manup manup changed the title Add support for _TZ3000_otvn3lne presence sensor (and other 0x0500 IAS cluster Tuya sensors). DDF for Tuya presence sensor (_TZ3000_otvn3lne) Sep 9, 2022
@jossiee
Copy link
Contributor

jossiee commented Sep 25, 2022

hi guys don't understand what changed but since the last update my presence sensor "_msl6wxk9" is not working anymore keeps saying that there is motion detected in home assistant but inside Deconz i can see the status change of the IAS zone alarm1

it does not look like there is a big change to the DDF. am i missing something here?

@Monofin
Copy link
Contributor Author

Monofin commented Sep 26, 2022

Not sure, but I've been having a few challenges that seems to relate to: #6358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants