Skip to content

Commit

Permalink
Revert "fix: Fix electrical measurements not working for TuYa plug wi…
Browse files Browse the repository at this point in the history
…th appVersion 112 (#6731)"

This reverts commit 3554e43.
  • Loading branch information
Koenkk authored Dec 20, 2023
1 parent aca4d58 commit 61f6a85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3336,15 +3336,14 @@ const definitions: Definition[] = [
},
},
{
fingerprint: [160, 112, 100, 69, 68, 65, 64].map((applicationVersion) => {
fingerprint: [160, 100, 69, 68, 65, 64].map((applicationVersion) => {
return {modelID: 'TS011F', applicationVersion, priority: -1};
}),
model: 'TS011F_plug_3',
description: 'Smart plug (with power monitoring by polling)',
vendor: 'TuYa',
whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}, {vendor: 'BlitzWolf', model: 'BW-SHP15'},
{vendor: 'AVATTO', model: 'MIUCOT10Z'}, {vendor: 'Neo', model: 'NAS-WR01B'}, {vendor: 'Neo', model: 'PLUG-001SPB2'},
{vendor: 'TuYa', model: 'BSD33_20A', fingerprint: [{manufacturerName: '_TZ3000_okaz9tjs', applicationVersion: 112}]},
tuya.whitelabel('TuYa', 'BSD29_1', 'Smart plug (with power monitoring by polling)', ['_TZ3000_okaz9tjs']),
],
ota: ota.zigbeeOTA,
Expand All @@ -3360,7 +3359,7 @@ const definitions: Definition[] = [
onEvent: (type, data, device, options) =>
tuya.onEventMeasurementPoll(type, data, device, options,
true, // polling for voltage, current and power
[100, 112, 160].includes(device.applicationVersion), // polling for energy
[100, 160].includes(device.applicationVersion), // polling for energy
),
},
{
Expand Down

0 comments on commit 61f6a85

Please sign in to comment.