Skip to content

fix: some Cotech-367959 clones do not have the light sensor installed. #2305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

obones
Copy link
Contributor

@obones obones commented Jan 9, 2023

I have a NicetyMeter 0366 weather station here that gets picked up as Cotech-367959 just fine.
The only thing is that Light intensity and UV index values are never changing and completely bogus which is quite expected as this model does not have a light sensor.
To avoid confusion, this PR removes the values from the output if it finds them to match what has been observed with my device.

If need be, I can create a PR on the tests projects with a sample signal final.

@zuckschwerdt
Copy link
Collaborator

Thanks, this is a good sanity check.
Can you rewrite the change to simply
"uv", "UV Index", DATA_COND, ((uv & 0xf0) == 0), DATA_FORMAT, "%u", DATA_INT, uv,
Easier to see that it's a single output with one optional field then.

@obones obones force-pushed the device-nicetymeter0366 branch from e902f38 to a2f4b79 Compare January 9, 2023 16:16
@obones
Copy link
Contributor Author

obones commented Jan 9, 2023

I've done just that. My initial version was also changing the model field value, but I guess it's not desirable and I can live with it being static anyway.

@obones obones force-pushed the device-nicetymeter0366 branch from a2f4b79 to 26b24ab Compare January 11, 2023 16:45
@zuckschwerdt zuckschwerdt merged commit 2cd5623 into merbanan:master Jan 11, 2023
obones added a commit to obones/rtl_433 that referenced this pull request Jan 30, 2023
@obones obones deleted the device-nicetymeter0366 branch February 14, 2023 08:58
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