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

Support for Govee Water/Leak sensor #2619

Closed
ifuchs opened this issue Sep 12, 2023 · 14 comments
Closed

Support for Govee Water/Leak sensor #2619

ifuchs opened this issue Sep 12, 2023 · 14 comments

Comments

@ifuchs
Copy link

ifuchs commented Sep 12, 2023

I have several Govee H5054 water leak sensors that I would like to bring into Home Assistant. rtl_433 Autodiscovery is seeing the device but only shows the battery status. My guess is that the key of interest is "event" which shows if there is a leak or if the button on the device is pressed. Home Assistant is adding the device but only with the battery_ok status. Could "event" be added as a valid key and would this solve the problem I am seeing?
If it helps, here is what MQTT explorer shows:
Screenshot 2023-09-12 at 8 14 20 AM

@zuckschwerdt
Copy link
Collaborator

There is some discussion to this in #2605

@ifuchs
Copy link
Author

ifuchs commented Sep 12, 2023

@zuckschwerdt OK, well I already have the Govee water sensors but that last comment does not give much hope of making it work in HA. It would appear that all I can do is return them. Sigh.

@gdt
Copy link
Collaborator

gdt commented Sep 12, 2023

@ifuchs I think you can probably make them work,but you'll need to code up "if wet event then wet, and if no wet event for 30 minutes then dry" somehow. I don't have any and am understanding only from reading list/github traffic. So take my comments in that light.

@ifuchs
Copy link
Author

ifuchs commented Sep 12, 2023

Can someone explain to me why when I run the rtl_433 (rtl_433 version nightly-33-gf775d1ac branch master at 202304221552 inputs file rtl_tcp RTL-SDR) on my raspberry pi with mqtt going to HA, the Govee device is seen (although I am still trying to get the payload recognized) but if I simply run rtl_433 from the CLI on my Mac w v22.11, the Govee does not show up. Did this work in the older RPi version and break in the most recent version?

@ifuchs
Copy link
Author

ifuchs commented Sep 13, 2023

Further simplified failure: rtl_433 on the RPi0W shows the Govee when button pressed. Same command on Mac does not. Mac is running v22.11. FWIW, GQRX and URH both see the Govee transmissions.

@gdt
Copy link
Collaborator

gdt commented Sep 13, 2023

22.11 is ancient. compile git master.
(also this belongs as discussion or mailing list, not as an issue, IMHO)

@ifuchs
Copy link
Author

ifuchs commented Sep 13, 2023

Sorry, but if 22.11 is ancient why is that what shows up on the Github page as the latest release?

Screenshot 2023-09-13 at 12 43 45 PM

@zuckschwerdt
Copy link
Collaborator

It's a year old, we still need to debug an rare exit failure before we release. Check the nightly changelog for interesting changes. E.g.

Add support for new revision of Govee H5054 water leak detector (#2273)

@ifuchs
Copy link
Author

ifuchs commented Sep 13, 2023

OK, I upgraded to the master branch and my Mac with rtl_sdr now sees the Govee (as does the Rpi0W.) Now if I could just get it to work with HA I could go on to something else. I will refrain from using issues for this sort of thing in the future. Thanks.

@deviantintegral
Copy link
Contributor

@ifuchs if you switch to the “next” addon that ships rtl_433 master. It’s the same idea with the auto discovery addon.

https://github.com/pbkhrv/rtl_433-hass-addons/tree/main/rtl_433-next

@ifuchs
Copy link
Author

ifuchs commented Sep 17, 2023

I replaced the rtl_433_mqtt_hass.py file in the rtl_433_mqtt_autodiscovery addin (by using portainer and going into the addin container). I am not clear what else needs to be replaced. I don't run the rtl_433 addin, I run rtl_433 on a Raspberry Pi to send MQTT messages to HA. If I cause the Govee sensor to send a water leak message, it shows up in the HA MQTT broker (I see that with MQTT explorer on my Mac) but I do not see any entity in HA for this event. What am I missing? Do I need to replace rtl_433 on my Raspberry Pi? (HA does show a Govee device, but no entity for the event.) Any help would be very much appreciated. (On the RPi0W, I am running: rtl_433 version nightly-33-gf775d1ac branch master at 202304221552).

@ifuchs
Copy link
Author

ifuchs commented Sep 17, 2023

FWIW, I updated rtl_433 on the RPI0w to 202308211241 with no noticeable change.

@gdt gdt added the device support Request for a new/improved device decoder label Sep 26, 2023
@gdt
Copy link
Collaborator

gdt commented Oct 15, 2023

At least something has been merged and I can't immediately understand what is left to do. Should this issue be closed? If not, please add a comment with a very brief summary of the remaining work.

@gdt gdt added the feedback request for more information; may be closed id 30d if not received label Oct 15, 2023
@theshaww
Copy link

Has anyone gotten these leak detectors to work? I just want it to notify me when there's a leak so I can flip off my water pump breaker with HA.

@zuckschwerdt zuckschwerdt removed device support Request for a new/improved device decoder feedback request for more information; may be closed id 30d if not received labels Jan 18, 2024
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

No branches or pull requests

5 participants