asednev / homebridge-plugin-govee

Govee H-series Thermometer Hygrometer plugin for Homebrige.
Apache License 2.0
53 stars 9 forks source link

Support for H5051 and H5071 #47

Open danswett opened 2 years ago

danswett commented 2 years ago

Hi,

I have two Govee temp/humidity sensors, the H5051 and H5071. They both advertise over BLE and I can see them from my RPI when I scan for BLE devices.

I have this plugin installed for Homebridge, and when debug is checked it spits out a series of “invalid peripheral” messages as it presumably discovers things it doesn’t understand.

Would it be possible to add support for these two devices? Happy to help if I can.

Thanks! Dan

danswett commented 2 years ago

Here's output for the two devices from running a scan w/ bluetoothctl:

[NEW] Device E0:12:1C:60:1C:75 Govee_H5071_1 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Key: 0xec88 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x00 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0xe6 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x08 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0xde [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x12 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x16 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x1f [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x00 [CHG] Device E0:12:1C:60:1C:75 ManufacturerData Value: 0x01

[NEW] Device E3:60:59:21:24:B1 Govee_H5051_24B1 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Key: 0xec88 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x00 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0xbb [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x08 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x5f [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x12 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x33 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x1f [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x01 [CHG] Device E3:60:59:21:24:B1 ManufacturerData Value: 0x01

I assume my actual ask here is adding support to govee-bt-client for these two devices

danswett commented 2 years ago

Here's what the homebridge console outputs for the two devices:

discovered e0121c601c75 e0121c601c75 e0:12:1c:60:1c:75 disconnected -81 invalid peripheral, manufacturerData=[88ec00e008fb12171f0001]

discovered e360592124b1 e360592124b1 e3:60:59:21:24:b1 disconnected -82 invalid peripheral, manufacturerData=[88ec00cc086712331f0101]

danswett commented 2 years ago

This morning it managed to detect one of the devices and briefly added it. The console showed "[Govee] Adding new accessory: GoveeH5051_24B1" and I saw the device in the Home app for a few minutes before it disappeared.

That said, the temperature was showing 147 degrees F, with 54% humidity (which of course did not match the physical device)

danswett commented 2 years ago

The console keeps spitting out "invalid peripheral" even though it added the H5051 into Home (although the temp and humidity are wrong). The H5071 shows up in the console too as "invalid peripheral" and that device does not get added to Home.

danswett commented 2 years ago

In the latest version of the plugin both devices now show up (as GoveeH5051_24B1 and GoveeH5071_1C75), but the temperature and humidity values are still wrong. The 5051 reports 147F and 53%, and the 5071 shows 121F and 92%.

They are in the same room about 5 feet apart.

jmlumpkin commented 2 years ago

What would have been the correct temp/humidity for them?

danswett commented 2 years ago

For the 5051, right now it reads 62.6F and 62.3% humidity. In the Home app it shows 147F and 53%.

For the 5071 it’s 64.1F and 62.2%, and 121F and 92%