Check whether the missing reminder was waiting on a duration-based trigger when Home Assistant restarted or reloaded automations. That pending wait does not survive those interruptions, but the symptom should be confirmed from the actual trigger and run history before assigning the cause. Preserve the reminder deadline in a supported helper when persistence is needed, then check the current lock state before notifying. A lost timer does not establish that the door locked, and an unavailable entity is not evidence that it remains unlocked.
Why a smart lock reminder resets after a Home Assistant restart
Inspect the lock entity used by the automation and the trigger that was pending when the interruption occurred. The example below illustrates a duration wait, while the actual installation may use another mechanism or notification path. Compare the run history with the restart or reload and keep the lock’s physical condition separate from the automation’s memory. This establishes whether the documented timer behavior explains the missing message instead of treating every reminder failure after a restart as the same problem.
triggers:
- trigger: state
entity_id: lock.front_door
to: "unlocked"
for: "00:10:00"
actions:
- action: notify.send_message
target:
# Replace this with your configured notify entity.
entity_id: notify.front_door_recipient
data:
message: "The front door is still unlocked."
The for value is a duration that Home Assistant is waiting to observe. It is not, by itself, a durable appointment stored for later. If Home Assistant restarts or automations are reloaded during those 10 minutes, the pending duration is reset. That is why a smart lock reminder can vanish even though the lock has not changed state.
The safer pattern: save a deadline, then check the lock
Store the intended reminder deadline separately when the workflow needs to continue across a restart, using the helper pattern described by Home Assistant. The sequence below records the due time and checks the lock again before notifying, rather than assuming the saved appointment proves an uninterrupted physical state. Clear the pending reminder when its purpose ends and keep uncertainty explicit while the entity is unknown or unavailable. Persistence preserves when to evaluate the condition; it does not supply observations that the controller missed.
- When the lock becomes
unlocked, calculate a reminder deadline. - Save that deadline in an
input_datetimehelper. - Use the helper as a time trigger.
- At the deadline, check that the lock is still exactly
unlocked. - Send a reminder only if the state check passes.
- Clear or replace the deadline when the lock becomes
locked.
The important detail is step four. A saved deadline tells Home Assistant when to evaluate the reminder; it does not prove what happened while Home Assistant was restarting. The final state check prevents a stale appointment from producing a misleading notification.
Example structure
Replace lock.front_door with the installed lock entity and replace notify.mobile_app_your_phone in the longer example with your configured notification action. Send a test message through that action before testing the reminder. If your setup instead uses a notify entity, configure notify.send_message with that entity as its target. Validate the adapted helpers and automations in your editor; this example is not an execution test of your lock.
input_boolean:
front_door_unlocked_reminder_pending:
name: Front door unlocked reminder pending
input_datetime:
front_door_unlocked_reminder_at:
name: Front door unlocked reminder at
has_date: true
has_time: true
automation:
- alias: "Record a restart-safe unlocked reminder deadline"
triggers:
- trigger: state
entity_id: lock.front_door
to: "unlocked"
conditions:
- condition: template
value_template: >-
{{ trigger.from_state is not none
and trigger.from_state.state not in ['unknown', 'unavailable'] }}
- condition: template
value_template: >-
{% set deadline = as_timestamp(states('input_datetime.front_door_unlocked_reminder_at'), none) %}
{{ deadline is none or deadline <= as_timestamp(now()) }}
actions:
- action: input_datetime.set_datetime
target:
entity_id: input_datetime.front_door_unlocked_reminder_at
data:
# Set this to your chosen reminder time using a template or helper.
datetime: "{{ (now() + timedelta(minutes=10)).strftime('%Y-%m-%d %H:%M:%S') }}"
- action: input_boolean.turn_on
target:
entity_id: input_boolean.front_door_unlocked_reminder_pending
- alias: "Remind me if the front door is still unlocked"
mode: single
triggers:
- trigger: time
at: input_datetime.front_door_unlocked_reminder_at
- trigger: homeassistant
event: start
- trigger: state
entity_id:
- lock.front_door
- input_datetime.front_door_unlocked_reminder_at
- input_boolean.front_door_unlocked_reminder_pending
to: null
conditions:
- condition: state
entity_id: lock.front_door
state: "unlocked"
- condition: state
entity_id: input_boolean.front_door_unlocked_reminder_pending
state: "on"
- condition: template
value_template: >-
{% set deadline = as_timestamp(states('input_datetime.front_door_unlocked_reminder_at'), none) %}
{{ deadline is not none and deadline <= as_timestamp(now()) }}
actions:
- action: notify.mobile_app_your_phone
data:
message: "The front door is still unlocked. Check the lock before leaving it unattended."
- action: input_boolean.turn_off
target:
entity_id: input_boolean.front_door_unlocked_reminder_pending
- alias: "Clear the unlocked reminder deadline when the door locks"
triggers:
- trigger: state
entity_id: lock.front_door
to: "locked"
actions:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.front_door_unlocked_reminder_pending
- action: input_datetime.set_datetime
target:
entity_id: input_datetime.front_door_unlocked_reminder_at
data:
datetime: "1970-01-01 00:00:00"
Use the pending helper to distinguish a live reminder from a cleared appointment. Confirm its saved state and the deadline are restored as intended, and initialize the new workflow through an assisted ordinary state change after installation. Observe startup and later entity recovery separately, because a helper can be restored before the lock supplies a usable report. A past deadline may represent an overdue pending reminder rather than invalid data; evaluate it with the pending flag and current state instead of rejecting it solely because the due time has passed.
What to check after Home Assistant restarts
1. Confirm the automation is enabled
Confirm the reminder automation is enabled under Settings → Automations & scenes and inspect its recent runs. A reload can interrupt a duration wait as well as a full restart, so record which operation happened and whether the trigger was pending. Check the notification action separately if the automation ran but no message arrived. This keeps the investigation tied to the observed stage of failure rather than replacing the workflow before establishing whether it was disabled, interrupted or unable to deliver its output.
2. Check the actual lock entity
Read the actual entity referenced by the reminder rather than an old notification or unrelated dashboard card. Require the intended explicit state and check the integration’s available freshness evidence before presenting it as current. Unknown and unavailable values leave the physical condition unresolved, so allow recovery or arrange a direct check where needed. Do not send an unlock or relock command merely to obtain a convenient state for the reminder, because that changes the door instead of resolving the reporting uncertainty.
3. Confirm the deadline helper survived
Inspect the deadline value together with the pending marker, timezone and intended date after restart. An empty or malformed helper needs investigation, while an overdue pending deadline should follow the tested recovery behavior rather than being dismissed automatically. Compare the helper with the recorded trigger and clear actions to see whether it represents the latest reminder. This distinguishes a genuinely lost appointment from a restored appointment awaiting a usable lock state and prevents a stale cleared value from creating another message.
4. Check the integration path
Verify the installed Matter entity and its supported behavior if reporting remains unavailable after controller recovery. A model’s general Matter compatibility does not establish that every firmware and controller exposes identical attributes or state timing. Check the local integration path and native Lockin status while preserving ordinary entry, then provide the actual error and model context to the relevant support channel. Keep this connection investigation separate from the deadline mechanism so a repaired timer is not mistaken for a repaired lock report.
5. Test the reminder without controlling the lock
Test notification timing and cancellation without adding an automatic unlock or latch-release action to the reminder. Use a controlled short test with assistance available, observe the pending deadline across the intended restart scenario and confirm that locking clears the reminder through the configured workflow. Check that recovery from an unavailable state produces only the intended result. The purpose is a message prompting human review, so validate the notification and state checks without converting the example into an unrequested door-control automation.
Reminder versus auto-lock: choose the outcome carefully
Choose the household’s desired outcome before combining reminders with automatic locking. A reminder asks someone to inspect or act, while native Auto-Lock and controller commands can move the bolt under their own conditions. Keep the matching model’s installation and access instructions separate from the notification example and test physical behavior independently if automatic locking is later configured. This prevents a missing reminder from being addressed by silently adding an action whose effect the household did not intend.
Sources
-
Home Assistant automation triggers —
forwaits reset on restart or automation reload;input_datetimeis the documented persistence pattern. - Home Assistant Lock integration — lock states, triggers, conditions, and reminder example.
- Home Assistant Matter integration — Matter controller and local Wi-Fi/Thread conditions.
- Lockin Veno Solar Palm — current model-level features and support links.























