homekit_python: IP Discovery not working on MacOS
Following the example in the README results in an exception.
Platform: macOS Mojave Python 3.6 ( virtual env ) homekit[ip] 0.13.0
Happy to provide more info upon request but hoping this is enough to point me in the right direction.
(venv) Christophers-MacBook-Air:HomekitPythonPlaying christopheryoung$ python3 -m homekit.discover
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/discover.py", line 49, in <module>
results = Controller.discover(args.timeout)
File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/controller/controller.py", line 88, in discover
return discover_homekit_devices(max_seconds)
File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/zeroconf_impl/__init__.py", line 142, in discover_homekit_devices
d['category'] = Categories[int(category)]
File "/Users/christopheryoung/PycharmProjects/HomekitPythonPlaying/venv/lib/python3.6/site-packages/homekit/model/categories.py", line 83, in __getitem__
raise KeyError('Item {item} not found'.format(item=item))
KeyError: 'Item 22 not found'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (19 by maintainers)
Commits related to this issue
- add some more logging for #131 — committed to jlusiardi/homekit_python by jlusiardi 5 years ago
- add some more logging for #131 — committed to jlusiardi/homekit_python by jlusiardi 5 years ago
Boo - this was in XCode FWIW