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 new revision of Govee H5054 water leak detector #2273

Merged
merged 5 commits into from
Jan 22, 2023

Conversation

jasonmichalski
Copy link
Contributor

This adds support for the updated protocol used by newer revisions of the Govee H5054 water leak detector.

Closes #2265

GOVEE_WATER_LEAK = 2,
} govee_h5054_event_t;

static int govee_decode_h5054(r_device *decoder, bitbuffer_t *bitbuffer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name it govee_h5054_decode, add a doc-comment

@@ -231,6 +231,7 @@
DECL(fineoffset_wn34) \
DECL(rubicson_pool_48942) \
DECL(badger_orion) \
DECL(govee_h5054)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a \ at the end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi - it seems like clang-format strips it out, but i added it back in manually

@aav7fl
Copy link
Contributor

aav7fl commented Jan 12, 2023

@zuckschwerdt , has @jasonmichalski managed to resolve your review comments?

I'd love to see this get merged as some of my newer sensors aren't sending quarterly battery updates (and I'm guessing it's related to the updated firmware).

@zuckschwerdt
Copy link
Collaborator

Yes, this is good. To be merged soon.

@drew-hill
Copy link

drew-hill commented Apr 10, 2023

I'm unable to pull in any Protocols above 223 on v22.11 on my computer or on my separate Home Assistant device.

Instead, while trying to use the Govee 5054 Protocol 231 that I believe was the result of Issue 2273 (the one I'm currently writing this message in), I receive the error: "Protocol number specified (231) is larger than number of protocols".

Has anyone else had this problem while trying to read from the Govee 5054 Protocol 231? I'm considering starting an issue -- search currently pulls up 0 matches in Issues at the moment -- but imagine I'm probably just doing something stupid as an rtl_433 newbie.

@zuckschwerdt
Copy link
Collaborator

There are 223 protocols in release 22.11. You need a newer version for e.g. 231. See https://triq.org/rtl_433/BUILDING.html

@drew-hill
Copy link

This is exactly what I meant re: newbie growing pains. 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.

Unable to read Govee Leak Detector Sensors
4 participants