drndos / mikettle

Xiaomi Mi Kettle Bluetooth Library
MIT License
54 stars 23 forks source link

Failed to connect to peripheral #14

Open FelixNiedermann opened 2 years ago

FelixNiedermann commented 2 years ago

I'm Executin the following:

`pi@pi:~/kettle $ python3 demo.py connect B8:7C:6F:A9:08:61 1116

DEBUG:mikettle.mikettle:Init Mikettle with mac B8:7C:6F:A9:08:61 and pid 1116 Authenticating Getting data from mi Kettle FW: 7.5.10 Traceback (most recent call last): File "/home/pi/kettle/demo.py", line 77, in main() File "/home/pi/kettle/demo.py", line 73, in main args.func(args) File "/home/pi/kettle/demo.py", line 47, in connect print("Name: {}".format(kettle.name())) File "/home/pi/kettle/mikettle/mikettle.py", line 87, in name self.connect() File "/home/pi/kettle/mikettle/mikettle.py", line 82, in connect self._p = Peripheral(deviceAddr=self._mac, iface=self._iface) File "/usr/local/lib/python3.9/dist-packages/bluepy/btle.py", line 391, in init self._connect(deviceAddr, addrType, iface) File "/usr/local/lib/python3.9/dist-packages/bluepy/btle.py", line 439, in _connect raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp) bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral B8:7C:6F:A9:08:61, addr type: public`

The kettle gives a peep sound (With other product id it does not, so I think that part is right) but it's not able to fully connect to the Mi Kettle. Any ideas?

Worrah commented 1 year ago

same for me

Miliks commented 5 months ago

Any update, i'm facing the same issue