Skip to content

Commit

Permalink
fix: Fix invalid 0 power measurements for TuYa _TZ3000_b28wrpvx Koe…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 11, 2023
1 parent 4d26608 commit 95e27ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ const fzLocal = {

// Wait 5 seconds before reporting a 0 value as this could be an invalid measurement.
// https://github.com/Koenkk/zigbee2mqtt/issues/16709#issuecomment-1509599046
if (result && ['_TZ3000_gvn91tmx', '_TZ3000_amdymr7l', '_TZ3000_typdpbpg', '_TZ3000_hdopuwv6'].includes(meta.device.manufacturerName)) {
if (result && ['_TZ3000_gvn91tmx', '_TZ3000_amdymr7l', '_TZ3000_typdpbpg', '_TZ3000_hdopuwv6',
'_TZ3000_b28wrpvx'].includes(meta.device.manufacturerName)) {
for (const key of ['power', 'current', 'voltage']) {
if (key in result) {
const value = result[key];
Expand Down

0 comments on commit 95e27ca

Please sign in to comment.