Open Zoneykid opened 2 years ago
I have a suspicion, that characteristic.read_value()
returns None
instead of an empty list. Can you try with a special branch of this project? It is called fix_231
.
One thing I forgot to mention is I kept getting the following error
File "/home/kevin/homekitble/homekit_python-timed_write_ble/homekit/pair_ble.py", line 72, in <module> finish_pairing = controller.start_pairing_ble(args.alias, args.mac, args.adapter, args.auth_method) File "/home/kevin/homekitble/homekit_python-timed_write_ble/homekit/controller/controller.py", line 583, in start_pairing_ble pair_method = self._get_pair_method(auth_method, feature_flags) File "/home/kevin/homekitble/homekit_python-timed_write_ble/homekit/controller/controller.py", line 364, in _get_pair_method raise PairingAuthError(f'auth_method: invalid value "{str(auth_method)}"') homekit.exceptions.PairingAuthError: auth_method: invalid value "sw"
Which I was able to resolve with some help by modifying pair_ble.py to change line 72 from args.auth_method
to ['auto', 'hw', 'sw'].index(args.auth_method)
As for the fix_231 branch, I get this blelog.txt
Ok, so you already used the master branch in the first place? Could you please also give it a shot with 0.19.0
?
Which I was able to resolve with some help by modifying pair_ble.py to change line 72 from args.auth_method to ['auto', 'hw', 'sw'].index(args.auth_method)
I'll have a quick look
Ok, so you already used the master branch in the first place? Could you please also give it a shot with
0.19.0
?
The build that gets installed through pip is 0.19.0, and was the first one I tried, then the timed write branch, just now I also grabbed the master and installed that manually (pip install showed 0.18.0), which gave me the same error.
`2022-02-27 22:10:52,692 init.py:0658 DEBUG sent 00021a2200d00109010101ff06010303ffb4dfd90614fd89654c26d3acfcbba916bd24102220609fdcf8c9af0469c579f2ec98ea4aa7f68d0d580b80300df06f8e23b4ec7798b7e402abc033e7d4f2661a661365d0b6a76e4689edda359c7eca509bb6a51fa7ad5916a84de71b8fe45c54178ff577431116c31d0728247220f13f6cd44530b4c3b54e6fe1b1b550f9852da943ad35854d119938c56f239308abae292adc37aa7d19be3e9d2bea544382804507783b5a98fc7f2829efa247883ac431e23beb643172da0c1e1a06eb758606599b33a282c63f4777dc9923d1513c2bc945a5780e3d5b91b77eddec9e754c5f6904faef7ca3daf9e3c7fe3ec522c3385e12ad0319f78b6d9f1801cadc98fcd4840381c16962527e24c9ff5a833c10f9b2d3aef02b266a792941a1511eba56497ab56bbecf490557795c66b11f1e41fa2558db88085edc1f463506c505266c7cea5feb16d5e88a7d8df84c4f5ad2650d896203475bf67bf3adfa2cea14309e3cd714b21bba650a709d87c81a83333edb27b6dd1e07da1b729777902eed619687e634d01304400148ab1672f68a850c427433199e033c1dd269c52868cbe48173d162c7604b81b9a46ba5ef9cbf4d368b8466548d5cac6b84df9907c03cbe3b73f31305f00dd2
2022-02-27 22:10:53,696 init.py:0667 DEBUG reading characteristic
2022-02-27 22:10:53,698 device.py:0112 DEBUG read failed: 0000004c-0000-1000-8000-0026bb765291 Not connected object of type 'NoneType' has no len()
2022-02-27 22:10:53,698 pair_ble.py:0080 DEBUG object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/home/kevin/.local/lib/python3.9/site-packages/homekit/pair_ble.py", line 73, in
Part of me also wonders if this might just be something specific to Nanoleaf as even when I use nrfConnect on my phone or the nrf BLE tool to try and read profiles it'll disonnect me pretty quick. And should the manufacturer data be malformed like that? Could it potentially even be interference from neighboring bulbs or devices?
Hi, trying to pair with Nanoleaf Essentials and I get the following result. Not sure what to do about error with length of manufacturer data, I tried the timed writes edit as well but got the same result. This is using a radxa zero's built in bluetooth adapter.