Skip to content

Commit

Permalink
fix(detect): Detect _TZ3000_n2egfsli as Tuya WL-19DWZ Koenkk/zigbee…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 13, 2024
1 parent de535a3 commit a551de6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/devices/sonoff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
temperature,
} from '../lib/modernExtend';
import * as reporting from '../lib/reporting';
import * as tuya from '../lib/tuya';
import {DefinitionWithExtend, Fz, KeyValue, KeyValueAny, ModernExtend, Tz} from '../lib/types';
import * as utils from '../lib/utils';

Expand Down Expand Up @@ -636,7 +637,7 @@ const definitions: DefinitionWithExtend[] = [
zigbeeModel: ['DS01', 'SNZB-04'],
model: 'SNZB-04',
vendor: 'SONOFF',
whiteLabel: [{vendor: 'eWeLink', model: 'RHK06'}],
whiteLabel: [{vendor: 'eWeLink', model: 'RHK06'}, tuya.whitelabel('Tuya', 'WL-19DWZ', 'Contact sensor', ['_TZ3000_n2egfsli'])],
description: 'Contact sensor',
exposes: [e.contact(), e.battery_low(), e.battery(), e.battery_voltage()],
fromZigbee: [fz.ias_contact_alarm_1, fz.battery],
Expand Down

0 comments on commit a551de6

Please sign in to comment.