Skip to content

Conversation

@McGiverGim
Copy link
Contributor

My _TZE200_dwcarsat shows some strange peaks very out of range:

image

So I added the two values (43521 and 43522) that I see in the zigbee2mqtt log to the actual rule that filters this kind of values. Maybe its better to simply filter any value bigger than 0xaa00 (43520) or simply the max value of PM2.5 that for this device is 100.

@McGiverGim McGiverGim force-pushed the tuya_air_filter_big_pm25 branch from c6ed206 to 2e49f01 Compare February 27, 2025 10:49
@McGiverGim
Copy link
Contributor Author

Added the 9254 (0x2426), it appears in the logs as strange value too.

@Koenkk
Copy link
Owner

Koenkk commented Mar 1, 2025

Maybe its better to simply filter any value bigger than 0xaa00 (43520)

This sounds like a more durable solution, could you update this PR?

@McGiverGim
Copy link
Contributor Author

Added the 9254 (0x2426), it appears in the logs as strange value too.

@Koenkk there is at least one bad value smaller than 43520. I can put the 9254 or the maximum value of the valid range of the device. I will look in the manual and change it.

@McGiverGim McGiverGim force-pushed the tuya_air_filter_big_pm25 branch from 2e49f01 to 418eb43 Compare March 2, 2025 09:41
@McGiverGim
Copy link
Contributor Author

@Koenkk done.

I found more big bad values, so I ended filtering any value bigger than the range published in the manual, for PM2.5 the valid range is 0-1000 ug/m3.

@Koenkk Koenkk merged commit abb6bd8 into Koenkk:master Mar 2, 2025
3 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Mar 2, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants