Home Automation Lockin Smart Locks Troubleshooting
23 sept 2026
official Lockin

Why Should a Home Assistant Automation Treat an Unknown Lockin State Differently?

A woman holding a phone rests her other hand on a blue front door beside a video smart lock at dusk.

Treat an unknown lock state as missing evidence, not as a result that grants permission to act. Pause the access-changing decision that depends on that state, notify the responsible person and verify the actual condition before resuming. The same missing-evidence rule applies when the entity is unavailable. Keep the installed model and its exposed capabilities in scope: an automation should use a specific supported observation rather than turning every result other than locked into an assumed unlock or a reassuring status message.

What unknown means in Home Assistant

An unknown state means the entity has no state value. An unavailable state means it cannot currently provide that value, for example because its connection is unavailable. Neither tells you that the lock is secured or unsecured. Check the lock’s actual condition through an authorized local method or another working supported path. A separate door contact can report door position, but it cannot supply the missing lock state.

Why a security automation should fail closed

Use the exception branch to stop an unsupported automated decision rather than to guess what the lock did. The table below separates final states, movement and missing information, each of which leads to a different next action. A routine may have requested locking without receiving a confirmed result, so a reassuring notification would be premature. Keep the event and attempted action available for investigation, and have an authorized person check the door or another supported path before the routine treats the entrance as secured.

Reported condition What Home Assistant knows Safer automation behavior
Locked The lock reports that it is secured Continue only if any required door/contact checks also pass
Unlocked The lock reports that it is not secured Decide whether to request locking, then verify the result
Locking or Unlocking A transition is in progress Wait for a final state or notify; do not assume success
Jammed The lock tried to move and got stuck Stop repeating commands and check alignment/latch conditions
Unknown The current lock result is not known Do not claim secure or issue an unattended safety decision
Unavailable The entity cannot currently be reached Diagnose connectivity and use a separate fallback/check

unknown is not the same as unlocked

Require the exact state needed for the decision instead of using a broad not-locked condition. The examples below illustrate a confirmed-locked check, followed by a version that also requires a separately verified contact. Adapt the entity identifiers and contact interpretation to the installation before use. If the required signal is absent, keep that limitation explicit rather than relaxing the condition until it passes; the purpose is to establish the evidence the decision needs, not merely to obtain a successful template result.

conditions:
  - condition: template
    value_template: >-
      {{ has_value('lock.front_door')
         and is_state('lock.front_door', 'locked') }}

Apply the contact condition only when its entity and closed-state meaning have been verified independently. The next example adds that requirement to the usable lock-state check; it does not establish that every Lockin Matter setup exposes such a contact. Check the actual entity identifiers and compare the contact with ordinary door movement during an attended test. If the signal is unavailable, do not manufacture it from the lock report or describe the entrance as physically closed solely because the bolt reports locked.

conditions:
  - condition: template
    value_template: >-
      {{ has_value('lock.front_door')
         and is_state('lock.front_door', 'locked')
         and has_value('binary_sensor.front_door_contact')
         and is_state('binary_sensor.front_door_contact', 'off') }}

Why recovery needs its own branch

Handle recovery as a separate verification step rather than assuming the original action will replay when communication returns. The notification example below hands the unresolved state to a person without commanding the lock again. Check the trigger type used by the actual routine and test its recovery behavior under controlled conditions, because different trigger configurations need not behave alike. Preserve the missing-state event and the attempted action so a restored connection can be assessed against what happened before the interruption. Replace notify.mobile_app_phone with the notification action actually registered for the intended phone, and replace the lock entity with your installed entity. Test that the message reaches that phone before relying on this exception path; a successful trigger with an invalid notification target still leaves the household uninformed.

alias: Front door lock state needs verification
triggers:
  - trigger: state
    entity_id: lock.front_door
    to: "unknown"
    id: unknown
  - trigger: state
    entity_id: lock.front_door
    to: "unavailable"
    id: unavailable
actions:
  - action: notify.mobile_app_phone
    data:
      title: "Front door state not confirmed"
      message: >-
        Home Assistant cannot confirm the Lockin lock state. Check the Lockin
        Smart App or the door in person before treating the entry as secure.

Resume the routine only after a fresh usable observation agrees with the physical situation or another appropriate supported check. If the lock is reported unlocked, use the normal authorized locking procedure; if the reading remains unavailable or disagrees with the door, keep the affected automation paused. A returned connection is not proof that the earlier command completed. Record the recovery outcome separately so the household can distinguish restored communication from the access result it was waiting to confirm.

What to check on a Lockin installation

Investigate the actual Lockin model and installed Matter path when the state remains unresolved. Confirm the device identity, controller communication and native-app observation before attributing the problem to a generic platform capability. Use the matching manual for power or installation symptoms and keep local access available while gathering evidence. Do not create a physical jam to test an exception display; existing diagnostics or an isolated display test can inform the investigation without deliberately obstructing the operating door.

Sources and scope

Actualizado October 15, 2026