asednev / homebridge-plugin-govee

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

H5074 doesn't seem to be able to connect #64

Closed crookedstorm closed 2 years ago

crookedstorm commented 2 years ago

Describe Your Problem:

New H5074 tested to be working with the official app doesn't get picked up by this plugin. It seems to be complaining about vendor info. I'd be happy to figure out some hack with udev or whatever, but I'm pretty new to BLE. I did notice that the MAC vendor portion is different than what was in the issue that lead to initial support, but it is typical for recent Govee stuff, so nothing terribly strange except the "undefined" manufacturer data in debug mode?

Logs:

a4c138476b53: 88ec000908a80e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec000908a80e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec000908a80e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -47
a4c138476b53: 88ec000908a80e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -39
invalid peripheral, manufacturerData=[4c000215494e54454c4c495f524f434b535f48575075f2ffc2]
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -17
invalid peripheral, manufacturerData=[4c000215494e54454c4c495f524f434b535f48575075f2ffc2]
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -17
invalid peripheral, manufacturerData=[4c000215494e54454c4c495f524f434b535f48575075f2ffc2]
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
invalid peripheral, manufacturerData=[4c000215494e54454c4c495f524f434b535f48575075f2ffc2]

in debug mode earlier I was also getting:

invalid peripheral, manufacturerData=[undefined]

But that's not what I see now.

Plugin Config:

{
    "name": "Govee Sensors",
    "batteryThreshold": 25,
    "debug": true,
    "humidityOffset": 0,
    "platform": "GoveeHomebridgePlugin"
}

Screenshots: None right now. The logs are all that show up in debug mode.

Environment:

From the Govee app when I had it installed for testing:

crookedstorm commented 2 years ago

Tried popping the battery out of the sensor for a bit and I got back to:

discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -28
invalid peripheral, manufacturerData=[undefined]

This doesn't really seem like progress, but I thought I would report it if that's interesting. Edit: It goes back to the usual after doing that for a bit, which is likely somewhat expected.

discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec002d08de0e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec002d08de0e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec002d08de0e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec002d08de0e6402
discovered a4c138476b53 a4c138476b53 a4:c1:38:47:6b:53 disconnected -31
a4c138476b53: 88ec002d08de0e6402
crookedstorm commented 2 years ago

Ok, actually, I see the values now. It's working, but it is doing the disconnecting and possible stale values thing I see in #40, which I see closed as a possible dupe of #19. I'll close this for now pending resolution of that other thing. Thanks!