Skip to content

Commit

Permalink
Added application version 112 to the fingerprint check for TS011F wit…
Browse files Browse the repository at this point in the history
…h powermonitoring by polling due to a misbehaving plug _TZ3000_cehuw1lw running appversion 112, and swBuild 1.0.5 which was reporting amps x 1000 and was not reporting kWh until this change
  • Loading branch information
hutchx86 committed May 3, 2024
1 parent 6696098 commit eed4ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4278,7 +4278,7 @@ const definitions: Definition[] = [
},
},
{
fingerprint: [160, 100, 69, 68, 65, 64].map((applicationVersion) => {
fingerprint: [160, 112, 100, 69, 68, 65, 64].map((applicationVersion) => {
return {modelID: 'TS011F', applicationVersion, priority: -1};
}),
model: 'TS011F_plug_3',
Expand All @@ -4302,7 +4302,7 @@ const definitions: Definition[] = [
onEvent: (type, data, device, options) =>
tuya.onEventMeasurementPoll(type, data, device, options,
true, // polling for voltage, current and power
[100, 160].includes(device.applicationVersion), // polling for energy
[100, 112, 160].includes(device.applicationVersion), // polling for energy
),
},
{
Expand Down

0 comments on commit eed4ab8

Please sign in to comment.