kind3r / hass-addons

Integration of the offline TTLock sdk into Home Assistant
60 stars 21 forks source link

Notifications for lock/unlock events #1

Closed kind3r closed 3 years ago

kind3r commented 3 years ago

Placeholder issue to avoid duplicates from people asking for this feature. This is actually an upstream issue and depends on the SDK to activate those notifications.

If you want to help, please check https://github.com/kind3r/ttlock-sdk-js/issues/5

nonkronk commented 3 years ago

Is the mqtt features only able to check the lock/unlock status? I can't find the way to lock/unlock the device with lovelace ui or mqtt publish

kind3r commented 3 years ago

Hi @nonkronk , sorry for the late reply. The addon exposes a Lock device which can be added to lovelace and used ini automations just like any other lock. You can find the device and view more details under Configuration -> Integrations -> MQTT -> click on the number of devices and find it in the list. image

For those following this thread, there is now a new version available that implements reading the operation log and update HA about lock/unlock events. Due to how this works expect a delay between the unlock event and the update in HA, this is the same way the official gateway detects this events and it's a limitation of the lock protocol itself.