kormax / apple-home-key Goto Github PK
View Code? Open in Web Editor NEWReverse-engineering Apple Home Key
Reverse-engineering Apple Home Key
String found in SEService.framework, it may stand for PTC.
I'm using Aqara A100 pro, and according to the trace that I sniffed, the length of the cryptogram is 16 (0x10). Here is an example:
> 80 80 01 01 6b 5c 02 02 00 87 41 04 34 bc de 44 04 90 01 8d 24 02 18 2b 80 46 2a d6 25 7d 52 03 64 10 5d 9c 66 5d 20 9a 51 bc 18 df 23 4a a2 c2 2b 01 2f ec ff 3c 96 d7 82 88 a6 78 75 c2 43 b5 ad b0 00 86 2a 11 9b b6 a3 22 15 8e 4c 10 d9 5f f1 ad f9 5e 35 cd 59 6f 87 a2 aa 3c 4c 6f 4d 10 f0 9d 22 85 b6 58 b8 64 5d 49 e5 ba 7f 0d 3d e3 00
< 86 41 04 F9 54 5B 77 F5 BA 34 5D 0F 0F 20 E7 D7 7F F0 9D F7 5C 06 D6 02 4B AB 48 E5 A4 C8 C1 DC BC CB B7 0F F4 0C 2D A6 29 67 9F CC E7 5A 5A 75 8C 2A 45 D4 51 32 0F F4 D3 E0 7E 5A C8 E7 1E 8D E7 E7 33 9D 10 88 C7 A3 ED A1 7E BE DA 9C F8 74 63 30 55 32 C0 90 00
I am not sure if there are different versions of HomeKey.
Hello,
I am very interested in your project. Currently, I am working on creating a home key-based door lock using hap-nodejs. I have successfully replicated the part of adding accessories in hap-nodejs. Now, I would like to know what steps I should take next.
Firstly, I would like some guidance on selecting an NFC hardware for my project, specifically the esp32. Could you recommend a few models for me to consider?
Additionally, I would like to know how I can receive NFC data using hap-nodejs, authenticate the data, and use it to unlock the door. Any advice or suggestions on implementing this functionality would be greatly appreciated.
Thank you!
I'd like to inquire about whether it's possible to set up a trigger using the Apple Home key within the provided test environment. Additionally, could you clarify the type of NFC reader that is necessary for this?
Hey
Big thanks for all this information
Do you have an example of the code you were using when you got the homekey to trigger on the phone?
https://raw.githubusercontent.com/kormax/apple-enhanced-contactless-polling/main/assets/PN532.ECP.DEMO.webp
Having a look at:
https://github.com/kormax/apple-enhanced-contactless-polling/blob/main/examples/implementations/nfcpy/main.py
Im trying to work out how to setup the broadcast variable, specifically where to obtain the "reader group identifier" or if there is other parts of the response that need to be sent after
Had managed to add the key to the phone via:
https://github.com/KhaosT/HAP-NodeJS/blob/80cdb1535f5bee874cc06657ef283ee91f258815/lock.js
Many Thanks
Please, provide us some information of your progress/setbacks. Many people wants to help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.