Skip to content
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

Add support for raw soil moisture values #145

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

dcmeglio
Copy link
Contributor

@dcmeglio dcmeglio commented Feb 1, 2024

This is an alternative to #127

That PR ignores soil moisture raw values, but what if someone wants access to the values? Why discard them? This instead adds support for them. This would help resolve Home-Assistant issue home-assistant/core#102738

I spoke with Ecowitt directly and the soilad values are a raw analog to digital conversion. This value gets converted to the percentage using the formula Soil_Moisture = (Now_AD - 0%AD) * 100% / (100% AD - 0%AD ) so if someone wants the raw value, this will now be exposed.

@pvizeli pvizeli merged commit d6a1351 into home-assistant-libs:main Feb 5, 2024
1 check passed
@pvizeli pvizeli added the enhancement New feature or request label Feb 5, 2024
pantonvich added a commit to pantonvich/aioecowitt that referenced this pull request Feb 5, 2024
* Bump release-drafter/release-drafter from 5.25.0 to 6.0.0 (home-assistant-libs#146)

Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.25.0 to 6.0.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](release-drafter/release-drafter@v5.25.0...v6.0.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add support for raw soil moisture values (home-assistant-libs#145)

* Push version to 2024.2.0

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dcmeglio <[email protected]>
Co-authored-by: Pascal Vizeli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants