Add a confirmation to the intended Home Assistant button action after the Lockin lock already works as the correct responsive entity. Configure the card to call lock.unlock for that exact door, with a clearly named confirmation prompt and no unintended alternate gestures. This adds a deliberate choice before that dashboard action sends a command; it does not authenticate the person holding the device or protect every other control path. Verify cancel and confirm separately with ordinary entry and assistance available.
Before you start
Confirm the actual entity, working integration and authority to edit the dashboard before using the example. The walkthrough assumes a responsive Lockin lock already commissioned through the supported Matter arrangement in this installation, not a universal result for every model or firmware. Record the entity shown for the intended door and preserve an authorized entry fallback before testing. If ordinary control is already failing, resolve that issue first so the confirmation change can be evaluated independently of an underlying connection problem.
The Button card YAML
Use the example below as a card configuration to adapt to the actual lock entity. Set the displayed entity and action target consistently, keep the prompt specific to the door and review the hold and double-tap actions before saving. The configuration describes the intended dashboard behavior; it does not establish that the physical installation has passed a test. If the integration requires additional authentication data, use its documented private configuration rather than placing a real entry code in a shared article or screenshot.
type: button
name: Unlock front door
icon: mdi:lock-open-outline
entity: lock.lockin_front_door
show_state: true
tap_action:
action: perform-action
perform_action: lock.unlock
target:
entity_id: lock.lockin_front_door
confirmation:
title: Unlock front door?
text: Confirm that you want to send the unlock command.
confirm_text: Unlock
dismiss_text: Cancel
hold_action:
action: none
double_tap_action:
action: none
Add it from the dashboard editor
Use these steps for a card managed in the dashboard editor. If another configuration source manages the card, edit it there rather than taking control without checking the consequences.
- Open the dashboard you manage and choose Edit dashboard.
- Add a standard Button card, or edit the existing Lockin lock button.
- Select the actual Lockin lock entity. Confirm that the displayed state belongs to the intended door.
- Set the tap action to Perform action.
- Choose
lock.unlockas the action and select the same, exact entity under Target. - Turn on the action’s Confirmation option.
- Give the dialog a specific title such as Unlock front door? and use a clear confirmation button such as Unlock.
- Set hold and double-tap actions to None if you do not want another gesture to operate the lock.
- Save the card and test it while you are physically able to secure the door again.
Test cancel and confirm separately
Test with the door in a known state, assistance available and a working fallback. Observe the physical lock as well as Home Assistant during the checks below; seeing the dialog alone does not verify its action.
- Start with the door in a known, safe state and keep your physical key or the supported emergency method available.
- Tap the button once. Check that the dialog names the intended door.
- Choose Cancel or dismiss the dialog. Confirm that the lock did not change state.
- Repeat the test and choose Unlock deliberately.
- Read the lock state back in Home Assistant and, when safe, verify the physical door behavior.
- Re-lock the door using the method you intend to rely on, then confirm the locked state.
- Test that an accidental hold or double tap does not trigger an unplanned action if you set those gestures to
none.
Common mistakes to avoid
Using a broad target
Keep the action target limited to the exact intended lock entity. A broader area, device, floor or label selection can include more accessories than the door named in the prompt, so inspect the saved target after editing and after entity changes. The card’s visible name is not a substitute for checking that target. If the household intends to control additional locks, define and test that broader action explicitly rather than allowing it to emerge accidentally from a convenient grouping.
Treating the prompt as authentication
Protect dashboard access and the lock’s other permissions independently of the confirmation dialog. The prompt asks for a deliberate choice but does not establish who is holding the phone or prevent an authorized automation, native app or different card from sending another command. Review those routes according to the household’s intended access arrangement. This keeps a useful accidental-tap control from being described as a server-side security rule or as a replacement for account authentication and credential management.
Confusing unlock with open
Keep lock.unlock distinct from any supported latch-opening action when selecting the command. Use only the action actually exposed by the installed integration and intended for the household’s routine; a generic example does not establish that latch release is available on the specific lock. Repeat the targeted cancel and confirm checks after entity renaming, re-pairing or dashboard changes. Preserve the model’s native entry instructions so an unavailable dashboard does not become the household’s only way to operate the door.























