GET
/api/validatePin
Returns1
if PIN is correct and not expired, otherwise returns0
doorId
Numeric ID of device, typically ESP Chip IDpin
Numeric PIN Code
GET
/api/testForMasterPin
Returns1
if PIN is correct and does not have an expiration date, otherwise returns0
doorId
Numeric ID of device, typically ESP Chip IDpin
Numeric PIN Code
GET
/api/revokePin
Removes the supplied PIN from the databasedoorId
Numeric ID of device, typically ESP Chip IDpin
Numeric PIN CodemasterPin
Numeric PIN Code without expiration date ("Master PIN")
GET
/api/registerPin
Registers PIN for door in the databasedoorId
Numeric ID of device, typically ESP Chip IDpin
Numeric PIN CodeOPTIONAL
expireDate
UNIX Timestamp of the expiration date for the pin. If not supplied, expireDate will be null
- App is still in development
- Supported Features:
- Finding the ESP in the local network
- Opening the door
The ESP8266 is used to connect the lock to the internet. I'm using an NodeMCU devboard because of the various GPIO, the integrated powersupply and because a shield to drive the solenoid is availiable.
- NodeMCU Motor Shield
- Used to drive the solenoid as it requires far more current than a microcontroller could provide
- Solenoid
- Small "ZYE1-0530" type solenoid i got from Amazon, for application in a real house there are some availiable that can be directly mounted to the door.