Insufficient Authentication #660
Unanswered
jasonrepos
asked this question in
Q&A
Replies: 1 comment
-
The output you got seems to work fine until you get to the It seems you specified your handle as a hex string, making Bleak interpret it as uuid string. If you change it to test_handle = 0x0009 # integer value 9 will be stored in test_handle instead of string "0x0009" it should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
bluetoothctl -v
) in case of Linux: bluetoothctl: 5.50Description
I am trying to write a python script to control my HEATSTORE heater, which I will eventually try to get into homeassistant through bt-mqtt-gateway.
The HEATSTORE heater does have a pairing function which then requires the input of a predetermined pin which consists of 6 digits.
What I Did
I have paired the heater with Linux using bluetoothctl and used gatttool to grab a value from a handle with no issue.
I then started to try and get something together with bleak and have found in the tcpdump that I am getting "Insufficient Authentication" and what looks to be the device requesting authentication, which I can only imagine is the pairing PIN.
Here is the bleak script - heat.py:-
Output from the console for the script heat.py:-
Attached are the tcpdumps which shows the behaviour from both the bleak script and the gatttool commands.
tcpdumps.zip
Any idea how I can get this to work? Is bleak meant to be using the pairing from bluetootctl or am I mean to pair through Bleak?
Beta Was this translation helpful? Give feedback.
All reactions