Nuki Opener Open-Lock

Hello,

I would like to create a lock template for the “Open” action of the nuki opener. The default lock that comes with the integration is for toggling the ring to open action.

As far as now I got it kinda working. I created a lock via template which works. The only thing that i need help is the value_template.
My plan is to show the lock as locked when i lock it it should switch to unlocked for 5 seconds and then lock itself.

Also is there a way to passthrough the doorbell sensor via the lock to my homekit so i get doorbell notifications via phone and homepods?

My current code:

lock:
  - platform: template
    name: Haustür
    value_template: "{{ false }}"
    lock:
      service: lock.open
      target:
        entity_id: lock.nuki_haustur_lock
    unlock:
      service: lock.open
      target:
        entity_id: lock.nuki_haustur_lock

Thanks yall!

Did you get working and were you able to connect the doorbell sensor?