pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
239 stars 109 forks source link

Support for Govee Water leak sensor #157

Closed ifuchs closed 1 year ago

ifuchs commented 1 year ago

The problem

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

What addon are you reporting the bug for?

rtl_433_mqtt_autodiscover

What is the addon version?

0.6.0

What type of MQTT Broker are you using?

Home Assistant Mosquitto MQTT Broker

Addon log messages

INFO:root:Published Govee-Water/29010:  time
INFO:root:Skipped Govee-Water/29010:  event, code

Additional information

No response

ifuchs commented 1 year ago

I finally figured out how to replace the rtl_433_mqtt_hass.py file in the rtl_433 autodiscovery addin in HA. I restarted it and I caused a water leak transmission but although there is a Govee-water-29010 device, there are no entities (e.g., event) from the payload. MQTT explorer shows the mqtt received by HA.

deviantintegral commented 1 year ago

There’s some crossover, but given there’s more participation at https://github.com/merbanan/rtl_433/issues/2619 I’ll close this one for now. Thanks!