wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
430 stars 26 forks source link

WiFi Water Leak Detector 2 (gateway + sensors) #118

Open etho201 opened 8 months ago

etho201 commented 8 months ago

Govee Device SKU

H5043+H5058

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

I have the WiFi Water Leak Detector 2 which uses a WiFi Gateway to connect to the sensors. The sensors (H5058) appear to be ble_only=true, but the gateway (H5043) is detected and appears as one of the devices connected via Govee to MQTT. Is it possible to interface with the sensors through the gateway with govee2mqtt?

Startup Diagnostics

[2024-01-29T21:42:10 INFO  govee::service::state] requesting update via Platform API H5043_54E2 (01:23:45:67:XX:XX:XX:XX H5043) Some(DeviceState { on: false, light_on: Some(false), online: None, kelvin: 0, color: DeviceColor { r: 0, g: 0, b: 0 }, brightness: 0, scene: None, source: "AWS IoT API", updated: 2024-01-29T21:29:22.942989566Z })

[2024-01-29T22:12:20 INFO  govee::commands::serve] H5058_4D90 (01:23:45:67:XX:XX:XX:XX H5058)
[2024-01-29T22:12:20 INFO  govee::commands::serve]   Undoc: room=None supports_iot=false ble_only=true
[2024-01-29T22:12:20 WARN  govee::commands::serve]   Unknown device type. Cannot map to Home Assistant.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

wez commented 8 months ago

See:

KyleStilkey commented 8 months ago

Question for you WEZ I've not looked too much into these Gateway and Water Sensros I have both Gen1 and 2 but do they both use BLE and that's how they are communicating with the Gateway hubs?

If that's the case, do you have a suggestion on a device I could use or possibly a place I could follow instructions to maybe see if I could packet sniff these and maybe capture data that could be of any use to you?

Thanks!

wez commented 8 months ago

@KyleStilkey see https://github.com/wez/govee2mqtt/issues/99#issuecomment-1902721370 As mentioned there, I'm not going to investigate this class of issue further without some kind of funding.

sdaltons1 commented 8 months ago

Question for you WEZ I've not looked too much into these Gateway and Water Sensros I have both Gen1 and 2 but do they both use BLE and that's how they are communicating with the Gateway hubs?

If that's the case, do you have a suggestion on a device I could use or possibly a place I could follow instructions to maybe see if I could packet sniff these and maybe capture data that could be of any use to you?

Thanks!

Just to give a little extra context. The gen 1 version is not Bluetooth. It is RF. You could search in the HA community forum for H5054 and get some tips but it can be tracked in HA using rtl_433.

I think our best bet for gen 2 is to get it added to the core Govee Bluetooth integration. I will probably open a request there eventually.