Skip to content

Commit

Permalink
fix(detect): Detect _TZE200_vvmbj46n as TuYa TH05Z (#6705)
Browse files Browse the repository at this point in the history
* Update tuya.ts for TH05Z aka _TZE200_vvmbj46n

New Device TH05Z, another temperature/humidity sensor with display and clock. Similar to JM-TRH-ZGB-V1 / SZ-T04 / TH01Z. Exposes same datapoints like SZ-T04 by NOUS.
Still need to be updated in the list of supported devices of zigbee2mqtt.io.

* Update tuya.ts

changed errors marked by test

* Update tuya.ts

* Update tuya.ts

* Update tuya.ts

* TH05Z merged with JM-TRH-ZGN-V1

using tuya.whitelabel

* Update tuya.ts

---------

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
xs400dohc and Koenkk authored Dec 16, 2023
1 parent 69bd6a6 commit 11ddeb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4903,7 +4903,7 @@ const definitions: Definition[] = [
},
},
{
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_whkgqxse'}],
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_whkgqxse'}, {modelID: 'TS0601', manufacturerName: '_TZE200_vvmbj46n'}],
model: 'JM-TRH-ZGB-V1',
vendor: 'TuYa',
description: 'Temperature & humidity sensor with clock',
Expand Down Expand Up @@ -4932,8 +4932,10 @@ const definitions: Definition[] = [
e.numeric('min_humidity', ea.STATE_SET).withUnit('%').withValueMin(0).withValueMax(100)
.withDescription('Alarm humidity min'),
],
whiteLabel: [
tuya.whitelabel('TuYa', 'TH05Z', 'Temperature & humidity sensor with clock', ['_TZE200_vvmbj46n']),
],
},

{
fingerprint: [{modelID: 'TS004F', manufacturerName: '_TZ3000_kjfzuycl'},
{modelID: 'TS004F', manufacturerName: '_TZ3000_ja5osu5g'}],
Expand Down

0 comments on commit 11ddeb5

Please sign in to comment.