Button to call any lock.* service is not asking for code

Hi,

I have Nuki 3.0 Pro integrated via the UI. I can lock, unlock and open the door.

I was pleased to see that you can add a code when creating a button calling any of the lock.* services. However, when I click the button, HA will never ask me for the code.

I’m a bit confused about what is going wrong here.

I’ve tried the lock.unlock, lock,lock and lock.open service, and different codes (text and numeric only).

Running the HA docker image 2022.11.2

Thank you in advance!

show_name: true
show_icon: true
type: button
tap_action:
  action: call-service
  service: lock.open
  data:
    code: '12345'
  target:
    entity_id: lock.nuki_812681190
icon: mdi:door-open
hold_action:
  action: none

I think I found my answer…

And my solution

type: button
tap_action:
  action: call-service
  service: lock.lock
  target:
    entity_id: lock. nuki_812681190
  confirmation:
    text: Are you sure you want to open the door?
1 Like