Take actions on opening/locking door (outgoing webhooks)

When the lock’s status changes (open, unlock, lock), the Loqed backend can call a URL to notify another smart device of this event. For example, you can turn on the lights when you open the door, or close the blinds when you lock the door. Most platforms support webhooks, such as IFTTT and Homey. See our specific FAQ’s for these platforms to help you get started with that.

The URLs can be added to your lock via https://webhooks.loqed.com/ .

Additional JSON data is sent to this URL:

  • requested_state
    • OPEN
    • DAY_LOCK
    • NIGHT_LOCK
  • lock_id
  • key_local_id (null if e.g. manual opening by knob or pressing button)
  • key_name_user (null if e.g. manual opening by knob or pressing button)
  • key_name_admin (null if e.g. manual opening by knob or pressing button)
  • key_account_e-mail (null if e.g. manual opening by knob or pressing button or if PIN of a key that is not bound to an account)
  • key_account_name (null if e.g. manual opening by knob or pressing button or if PIN of a key that is not bound to an account)

Because not all systems support JSON, it is also possible to, for example, call one URL for opening and one URL for locking (obviously, the requested_state variable then is always the same).

Testing

We recommend to use Webhook.site if you want to verify that your smart lock is calling the Webhook URL. You will also be able to see the JSON data there.

Security

When you call a third party URL, this does only gives them information about status changes of your lock. They cannot open your door.