-
Notifications
You must be signed in to change notification settings - Fork 45
Install on Windows 11
1. Download: https://www.python.org/ftp/python/3.12.3/python-3.12.3-amd64.exe
2. Install python for Windows
1. Open a CMD (Windows) with admin rights
> Execute command: pip install virtualenv
> Source: https://mothergeo-py.readthedocs.io/en/latest/development/how-to/venv-win.html
1. Download: https://github.com/kormax/apple-home-key-reader/archive/refs/heads/main.zip
2. Unpack the contents of the ZIP file, e.g. to "C:\Home Key\apple-home-key-reader\"
3. Open a CMD (Windows) with admin rights
> Execute command: cd C:\Home Key\apple-home-key-reader\
> Execute command: virtualenv --python py venv
> Execute command: .\venv\Scripts\activate
> Execute command: py -m pip install -r requirements.txt
4. Connect the pn532 to the computer
5. Determine com port (pn532) over the Windows Device-Manager (in the example COM3)
6. Change the file "C:\Home Key\apple-home-key-reader\main.py" with a editor (case sensitive)
> from:
> to:
7. Change the file "C:\Home Key\apple-home-key-reader\configuration.json" with a editor (case sensitive)
> from:
> to: (your com port)
8. Change the file "C:\Home Key\apple-home-key-reader\venv\Lib\site-packages\pyhap\accessory_driver.py" with a editor (case sensitive)
> Source: https://github.com/ikalchev/HAP-python/blob/aa27eb49953007993cd02b85189ac67a7d1b875a/pyhap/accessory_driver.py
> from:
> to:
1. Open a CMD (Windows) with admin rights
> Execute command: cd C:\Home Key\apple-home-key-reader\
> Execute command: .\venv\Scripts\activate
> Execute command: py main.py
2. Connect your apple device with the code
> It is normal that an error occurs at the first start due to the missing configuration
> If you have set up the "home key reader" on your Apple device, you will no longer receive an error message the next time you start it up
3. Enjoy the "home key reader" :)