Skip to content

python functions to use the unpublished danalock and danabridge api to lock/unlock and access/change pin codes

Notifications You must be signed in to change notification settings

Dan1001/danabridge-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

danabridge-python

Some python functions to use the unpublished danalock and danabridge api to lock/unlock and access/change pin codes. Intended to be incorporated into home automation code. Requires a danabridge and (obviously) danapad for the PIN code functionality.

I'm not very good at this. The clever stuff reverse-engineering the api was done by @gechu, who has implemented an openapi and node-red flow here: https://github.com/gechu/unofficial-danalock-web-api. All I've done is translate into python functions, made it work if you have multiple danalocks, and done a teensy bit more probing so the functions can also read, change and delete PINs. I am horrible at coding so I'm sure this could be improved in a million ways. It does, however, seem to work. I didn't bother trying to implement the timed PIN code function, because it's always seemed unreliable and buggy, and I can use these functions to achieve the same thing more reliably

I reckon this ends up easier and faster than danalock's app or website. Dana make excellent and reliable hardware, but their app and website are slow and annoying, and they don't publish their API.

Hopefully self-documented, more or less.

Have fun!

About

python functions to use the unpublished danalock and danabridge api to lock/unlock and access/change pin codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages