This is a set of projects related to using TTLock locks locally with ESPHome. 90% of the code was generated with Claude Code.
-
ttlock-sdk-py A Python rewrite of ttlock-sdk-js, adapted to work with the ESPHome Bluetooth Proxy.
-
grab-locks-from-app A script to extract lock secrets from the TTLock app database. Requires a rooted phone or emulator.
-
esphome-ttlock A custom ESPHome component that implements:
- lock/unlock functionality
- passage mode on/off
- battery level sensor