Skip to content

Commit

Permalink
fix: Fix invalid 0 measurements for _TZ3000_cehuw1lw Koenkk/zigbee2…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored Oct 20, 2023
1 parent e5b3f20 commit 75d2870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ 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',
'_TZ3000_b28wrpvx', '_TZ3000_1h2x4akh'].includes(meta.device.manufacturerName)) {
'_TZ3000_b28wrpvx', '_TZ3000_1h2x4akh', '_TZ3000_cehuw1lw'].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 75d2870

Please sign in to comment.