From bae525499d31e42867ab3b0ffd64f14903faf37e Mon Sep 17 00:00:00 2001 From: Chartreusito <88147733+Chartreusito@users.noreply.github.com> Date: Sat, 12 Aug 2023 09:56:42 +0200 Subject: [PATCH] fix(detect): Detect `_TZ3000_msl6wxk9` as TuYa ZMS-102 (#6065) * _TZ3000_msl6wxk9 AKA ZMS-102 * Update tuya.ts --------- Co-authored-by: Koen Kanters --- src/devices/tuya.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index b4a949dcd2b51..df623106986e7 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -1041,7 +1041,7 @@ const definitions: Definition[] = [ }, }, { - fingerprint: tuya.fingerprint('TS0202', ['_TZ3000_msl6wxk9', '_TZ3040_fwxuzcf4', '_TZ3040_msl6wxk9']), + fingerprint: tuya.fingerprint('TS0202', ['_TZ3040_fwxuzcf4', '_TZ3040_msl6wxk9']), model: 'ZM-35H-Q', vendor: 'TuYa', description: 'Motion sensor', @@ -1053,11 +1053,11 @@ const definitions: Definition[] = [ ], configure: tuya.configureMagicPacket, whiteLabel: [ - tuya.whitelabel('Aubess', '40ZH-O', 'Motion sensor', ['_TZ3000_msl6wxk9', '_TZ3040_msl6wxk9']), + tuya.whitelabel('Aubess', '40ZH-O', 'Motion sensor', ['_TZ3040_msl6wxk9']), ], }, { - fingerprint: tuya.fingerprint('TS0202', ['_TZ3000_mcxw5ehu', '_TZ3000_6ygjfyll', '_TZ3040_6ygjfyll']), + fingerprint: tuya.fingerprint('TS0202', ['_TZ3000_mcxw5ehu', '_TZ3000_6ygjfyll', '_TZ3040_6ygjfyll', '_TZ3000_msl6wxk9']), model: 'IH012-RT01', vendor: 'TuYa', description: 'Motion sensor', @@ -1073,6 +1073,9 @@ const definitions: Definition[] = [ await reporting.batteryPercentageRemaining(endpoint); await reporting.batteryVoltage(endpoint); }, + whiteLabel: [ + tuya.whitelabel('TuYa', 'ZMS-102', 'Motion sensor', ['_TZ3000_msl6wxk9']), + ], }, { fingerprint: tuya.fingerprint('TS0202', ['_TZ3000_o4mkahkc']),