Giter Club home page Giter Club logo

augustesp32's Introduction

AugustESP32 PlatformIO Registry

What's new:

v1.2:

  • Added 'stopScanning' command to allow firmware to cancel a scan that didn't find the door.

v1.1:

  • Added finer control to bluetooth connection so connection state can be managed better. Call an 'open comms' command to establish connection ready for use eg:

User logs into app or device receives request for challenge

Establish connection:

augustLock.lockAction(ESTABLISH_CONNECTION);

... Wait for user action (user locks August lock)

augustLock.lockCommand(LOCK);

... Wait 2 mins for any other action (nothing happens)

augustLock.closeConnection();

ESP32 BlueTooth implementation for August smart lock.

Requires h2zero/NimBLE-Arduino@^1.3.1

This library is an interface library for the August/Yale smartlocks.

Based on work by Marcus Lum https://github.com/Marcus-L/xamarin-august-ble

lock-in-action.mp4

To obtain the required credentials you can use a rooted Android phone and this opensource app (which is also available on PlayStore):

GitHub repo for AugustLockCredentials

This will allow you to copy/paste the constructor for the August library instance directly into your firmware sketch program.

augustesp32's People

Contributors

jamessmartcell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

augustesp32's Issues

Yale Linus L2

I'm pretty sure the newer locks (or all lock through updates), won't be able to be used with this properly.
Never locks have more states than before. Locked, Unlock, Unlatched.
I dont know if relevant, but that specific lock also broadcasts more BlueTooth characteristics than previous locks.

Lock disconnects by itself after inactivity

I tried your sample code on my ESP32 and a Yale lock with a Smart module (BLE + Wifi). Wifi isn't enable.

The lock disconnects after couple of seconds after the lock/unlock command.
Using the "getLastError()" property on the BLE object of the connection returns 0, so it seems that the lock disconnects since there is no more activity.

Starting Arduino BLE Client application...
August: "Init Bluetooth"
August: "Starting AugustLock BLE Library"
August: "Start Bluetooth scan"
After connection
End Setup
August: "Advertised Device found: Name: Seos, Address: da:63:19:22:bd:29, manufacturer data: 4c0002150000999900001000800000177a000002aaaabbbbce"
August: "Advertised Device found: Name: , Address: 24:1f:69:be:fc:0e, manufacturer data: 060001092022adf33e05f72a7d10d7338d7d24880c8c15122fd65c4187"
August: "Advertised Device found: Name: 904A3087, Address: 89:26:90:4a:30:87, serviceUUID: 0x9900, txPower: -2"
August: "Advertised Device found: Name: M5002WU, Address: 78:9c:85:3f:47:0e, manufacturer data: d10100, serviceUUID: 0xfe24"
August: "Found Our Service"
August: "Scan Ended"
August: "New client created"
August: "Connected ..."
August: "Connected to client: 78:9c:85:3f:47:0e"
August: "Lock command channel notification listener success"
August: "Got Secure Channel"
August: "Can Indicate"
August: "Handshake channel setup complete"
August: "Got Write Channel"
August: "Session Key: 0x8A870CBFAE2D61817DDC5F7A92ACDE4D"
August: "Handshake: 0x010000008A870CBFAE2D6181C74A92BF0F01"
August: "Encrypted: 0x0471AB4DCDE66FBB5B9A9557EA02DD090F01"
August: "Write no response"
August: "Wrote new value to: bd4ac613-0b45-11e3-8ffd-0800200c9a66"
August: "Setup complete"
August: "Notification listener setup, awaiting instruction"
August: "Decrypt: 0x02000000EED70B416FB57A48A17279760F01"
August: "handshake pt1 complete"
August: "SEC_INITIALIZATION_COMMAND: 0x030000007DDC5F7A92ACDE4DEE76C1370F01"
August: "Encrypted: 0xF370335CBE336C9560F3A4898881F5700F01"
August: "Write no response SEC_INITIALIZATION_COMMAND"
August: "Wrote new value to: bd4ac613-0b45-11e3-8ffd-0800200c9a66"
August: "Decrypt: 0x040000007DDC5F7A92ACDE4DED76C1370F01"
August: "handshake pt2 complete"
August: "Lock initialised"
August: "status: 0xEE02000C0200000000000000000000000200"
August: "status(Encrypt): 0xA5754BA6FD0219ED40571B2EA88413690200"
August: "Wrote new value to: bd4ac611-0b45-11e3-8ffd-0800200c9a66"
August: "Secure Lock: 0x649D90CE0A5F1F8B5D52A9254BFE8BF50200"
August: "Decrypt: 0xBB02003C0200000003000000000000000200"
Status Callback: Unlocked
August: "Already connected"
August: "Notification listener setup, awaiting instruction"
August: "78:9c:85:3f:47:0e: Disconnected"
August: "Already connected"
August: "Notification listener setup, awaiting instruction"
August: "Already connected"
August: "Notification listener setup, awaiting instruction"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.