Skip to content

TS/JS API client for Gainsborough Freestyle Tri Lock

License

Notifications You must be signed in to change notification settings

mcchas/freestyle-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gainsborough Freestyle Tri Lock API client

Constants

Cognito user pool, client ID and client secret were retrived from the Android APK.

At this time it only supports the first registered property and first lock for that property (as I only have 1 door).

Example

Tested with node v20 (requires crypto).

import Freestyle from "freestyle-client";

const freestyle = new Freestyle("[email protected]", "password123");

// Authenticate
await freestyle.init()

// Watch for lock state changes
await freestyle.watch();

// Unlock the door
await freestyle.unlock();
    

example.ts

Edit the username and password and run with ts-node Use this to find your BLE mac address and offline AES key.

nvm use 20
npm install
npm i -g ts-node
ts-node ./example.ts

Disclaimer

This is a reverse engineered project and is not affiliated with Gainsborough or Allegion.

About

TS/JS API client for Gainsborough Freestyle Tri Lock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published