Skip to content

Install on Windows 11

PatcherMustermann edited this page May 28, 2024 · 4 revisions

Step 1: Install python

1. Download: https://www.python.org/ftp/python/3.12.3/python-3.12.3-amd64.exe

2. Install python for Windows

02 - Install

03 - Pfad

Step 2: Install virtual python environment

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

Step 3: Install home key reader

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)

10 - Gerätemanger

6. Change the file "C:\Home Key\apple-home-key-reader\main.py" with a editor (case sensitive)

> from:

vorher

> to:

nachher

7. Change the file "C:\Home Key\apple-home-key-reader\configuration.json" with a editor (case sensitive)

> from:

vorher2

> to: (your com port)

nachher2

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:

vorher3

> to:

nachher3

Step 4: Run home key reader

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

13 - Cmd

> 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" :)