From 99defa3625f750263892fa5ba8d367c62e8b7a67 Mon Sep 17 00:00:00 2001 From: Ondrej Pecta Date: Mon, 19 Aug 2024 20:48:32 +0200 Subject: [PATCH] fix(detect): Detect `_TZ3000_zjchz7pd` as Immax 07573L (#7870) Signed-off-by: Ondrej Pecta --- src/devices/tuya.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index 529cc864ffcd1..8d093c5e8f332 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -8209,7 +8209,14 @@ const definitions: Definition[] = [ configure: tuya.configureMagicPacket, }, { - fingerprint: tuya.fingerprint('TS011F', ['_TZ3000_cayepv1a', '_TZ3000_lepzuhto', '_TZ3000_qystbcjg', '_TZ3000_zrm3oxsh', '_TZ3000_303avxxt']), + fingerprint: tuya.fingerprint('TS011F', [ + '_TZ3000_cayepv1a', + '_TZ3000_lepzuhto', + '_TZ3000_qystbcjg', + '_TZ3000_zrm3oxsh', + '_TZ3000_303avxxt', + '_TZ3000_zjchz7pd', + ]), model: 'TS011F_with_threshold', description: 'Din rail switch with power monitoring and threshold settings', vendor: 'Tuya', @@ -8226,7 +8233,7 @@ const definitions: Definition[] = [ toZigbee: [tzLocal.TS011F_threshold], exposes: (device, options) => { const exposes: Expose[] = [e.linkquality()]; - if (device?.manufacturerName !== '_TZ3000_303avxxt') { + if (device?.manufacturerName !== '_TZ3000_303avxxt' && device?.manufacturerName !== '_TZ3000_zjchz7pd') { exposes.push( e.temperature(), e @@ -8295,6 +8302,7 @@ const definitions: Definition[] = [ tuya.whitelabel('EARU', 'EAYCB-Z-2P', 'Smart circuit breaker with leakage protection', ['_TZ3000_zrm3oxsh']), tuya.whitelabel('UNSH', 'SMKG-1KNL-EU-Z', 'Smart circuit Breaker', ['_TZ3000_qystbcjg']), tuya.whitelabel('Tomzn', 'TOB9Z-M', 'Smart circuit breaker', ['_TZ3000_303avxxt']), + tuya.whitelabel('Immax', '07573L', 'Smart circuit breaker', ['_TZ3000_zjchz7pd']), ], }, {