[RELEASE] TTLock API Integration

First time creating a Hubitat driver. I do plan on trying to create an app to handle a callback URL from the TTLock API side to get quicker unlock/lock updates.

I've tested this on 4 locks and 2 gateways I have. (No WiFi locks). So far it can unlock/lock the locks and get the status.

Let me know any feedback and I'll do my best to be responsive. I can plan to integrate into Hubitat Package Manager.

This will require you sign up for a TTLock API account.

3 Likes

Been using it for a while now. I adjusted it as well to add an "app" code to take incoming changes via the callback URL. (optional).

I just submitted to HPM for this, but keeping version at 0.9 for now. It works mostly for routines I have that act on unlocking a door for us when we come home.

Hi,

Love the concept. However when I use the app it has a blank callback url. Any ideas?

You just want to right-click and copy the URL that is "Remote URL". Or is that blank as well?
image

Morning, @x86cpu

Thank you. Have managed to now copy and paste that into the ttlock app i created on the ttlock website but no events are coming back. Does it work right away or does it take time?

Thanks

Dagaz

update some notifications come through. if you use the app it doesnt. if you use nfc or passcode it does. but a bit delayed. now a bit hit and miss, some come through others dont.