Mic92 / hue-ble-ctl

Control your Phillips Hue light bulb over bluetooth
MIT License
39 stars 12 forks source link

gatttool insufficient encryption #2

Closed drink1 closed 3 years ago

drink1 commented 3 years ago

Hello everyone, I can't make the project work. I have done countless resets of the Phlips Hue lamp, but still: I always get the error "Could not read characteristic". The BLE protocol says that there is an "insufficient encryption". --> The underlying error could be gatttool: How can I get an encrypted connection to the Philips hue lamp with gatttool? I tried all three security levels (low, medium, high) but nothing works. Thanks for your help!

Mic92 commented 3 years ago

I had the same issue on iOS/watchOS. The issue there is that I could not get the bonding to work. After bonding is set up, you no longer get insufficient encryption. I think the bonding process can be initiated after turned the lamp on.

drink1 commented 3 years ago

Perfect! It worked when I first paired the hue lamp with bluetoothctl after turning on the lamp. Then gatttool and your script work fine.