U200 Auto Lock just during night time

Hi everyone!

I’m now using U200 for about a month and I’m quite happy so far.

I got two questions @AqaraBot (read below for explanation):
- Will it be possible to restrict the U200’s auto lock feature by time of day?
- Will there be a sensor to get an error state via Matter for integration with Home Assistant?

I integrated it into Home Assistant and Apple Home.

I got this lock because we got a son with ADHD and we can’t give him a key because he would instantly lose it or forget it at home when leaving.

So the U200 really makes our lives easier because it enables him to enter the house on his own.
BTW we got a front door without a handle.

Because ADHD makes him very impatient we usually keep the door unlocked during day time so he gets in quickly just with fingerprint and the U200 retracting the latch.

But we want the door locked at night.
And our son often goes into the garden at night and does not lock the door again.

So we need auto lock just during night time.

I created two automations in Home Assistant to achieve this.

The first one to initially lock the U200 at 10 PM and the second one the lock it after 5 minutes if it has been unlocked between 10 PM and 6 AM.

This works pretty well until you run into a problem.

It could be that it was unlocked by mistake and the latch opened the door just a little bit.
In this state the automation cannot lock the U200 and gets stuck in an endless loop.

The other problem I encountered was that the U200 had the error Latch not fully extended or retracted.
Same effect - the automation got stuck in a loop.

Any ideas how to prevent the loop?
Is there a state of the lock I could check?

I know there’s a possible state of the lock: jammed
But I’m not sure if it would apply in my cases.

Any help appreciated!

Andi

@LtKowalski Hi Andi!

Thanks for sharing your experience and the thoughtful automations you’ve set up—sounds like you’ve really tailored the U200 to your family’s needs. I’ll address your two main questions:


1. Will it be possible to restrict the U200’s auto lock feature by time of day?

Currently, the U200’s auto-lock feature can be toggled on or off via the Aqara Home app, but there isn’t an official built-in scheduling function to restrict auto-lock by time of day directly within the lock’s own settings. Your approach of using Home Assistant automations to control locking at night is the right workaround for now. Aqara Home’s automations offer similar flexibility, but as of now, time-based control for auto-lock isn’t natively supported on the lock itself.


2. Will there be a sensor to get an error state via Matter for integration with Home Assistant?

Regarding error states, such as when the latch is not fully extended or retracted, the U200 does generate error notifications—for example, you may see messages like “the bolt doesn’t fully extend or retract”. However, direct Matter-exposed error sensors are not specifically documented in the reference materials, so it’s uncertain whether these error states are currently available for automation triggers through Home Assistant via Matter. You might be able to monitor the lock’s “jammed” state or use a status entity if your integration exposes it, but do note that this may depend on the specific Home Assistant/Matter integration and might not cover all error scenarios. For reference only.


About the endless automation loop:
This is a common challenge when the lock is physically unable to complete the locking action (e.g., if the latch isn’t fully extended/retracted). One workaround is to add a condition in your Home Assistant automation that checks for the “jammed” or “failed” state before retrying, if such a state is exposed. If Home Assistant does not surface these states, you may want to consider building in a maximum retry count or a notification to alert you after several failed attempts, to avoid endless loops.


If you have suggestions for making error states more accessible via Matter or automation platforms, I encourage you to submit feedback through Aqara’s customer service channels. This helps the team better understand user needs.

Thanks again for sharing your setup! If anyone else in the community has solved similar automation challenges, please jump in and share your solutions.

Thx @AqaraBot this actually helped a bit to refine my Home Assistant automations.

I am now also checking the state jammed before running the lock command.
This won’t prevent the endless loop but at least prevent the U200’s battery from being drained by further lock attempts.

I’m thinking about creating more automations to counter the state jammed:

  • Send a notification if the U200 is jammed
  • Disable the locking automation if this is possible

I also checked which states are available in Home Assistant via the Matter integration by testing which triggers are available matching this format:

triggers:

  • device_id: ### DEVICE_ID ###
    domain: lock
    entity_id: ### ENTITY_ID ###
    type: ### STATE ###
    trigger: device

So testing in Home Assistant which triggers I can create for my U200 following the above format I found these states that I can check for:

  • opening
  • open
  • jammed
  • locking
  • locked
  • unlocking
  • unlocked

Would be a nice feature to have an error state in case the U200 encounters a physical problem.

Just my 2 cents
Andi

@LtKowalski Thanks for your detailed follow-up, Andi! It’s great to hear that monitoring the jammed state is helping you refine your Home Assistant automations—especially as it can help protect your U200’s battery from unnecessary drain in those tricky edge cases.

Your approach of sending a notification when the lock is jammed and potentially disabling the locking automation is both practical and proactive. While the reference materials confirm that the U200 supports standard states like locked, unlocked, and jammed, there isn’t explicit documentation for an “error” state exposed through Matter or Home Assistant at this time. So, your findings about available triggers (opening, open, jammed, locking, locked, unlocking, unlocked) align well with what’s officially supported via integration.

Having a more granular “error” state for physical issues would indeed be a useful addition for automation reliability—thanks for highlighting this need! If you’d like to suggest improvements around error handling or additional state exposure, I encourage you to submit your feedback through Aqara’s customer service channels. It really helps the community and the support team understand what power users like you are looking for.

And if anyone else has creative solutions for handling jammed or error scenarios with the U200 and Home Assistant, feel free to jump in and share!

Hello, welcome to the forum.
Maybe you should buy an M100 gateway and a door sensor. With this combination, you will have no problems with controlling access to the house. The door sensor will always clearly control your automations.
This is how I did it.
Also, maybe you have a G5 camera, it can also be configured for your son’s face and access will always be without a key.

1 Like

Hi @gafich10

Thank you! I’m happy to be here!

Could you please elaborate a bit more on how the M100 and a door sensor would improve the current setup?

I already got a Thread border router running on my Home Assistant.
And the U200 usually reports its state quite well.
It’s only problematic in certain situations where human interaction is required. Like the latch is not fully retracted or extended or the door is opened just a few millimeters.
I don’t think the door sensor would help here.

Thanks for the hint with the camera and face recognition!
I didn’t know this option yet.

But for access without a key the unlocking of the U200 with fingerprint and iPhone NFC is good enough. Fortunately our son does not forget or lose his phone. :sweat_smile:

Cheers,
Andi

Hello, the M100 gateway supports Matter, so by linking the U200 to it via the Aqara home application, you can easily monitor and control the lock. The opening sensor on the door will ensure high-quality closing of the door with the lock. I have such automation, if the door is closed (door sensor) for more than 10 minutes, “close the door with the U200 lock”.

You’re definitely right about the door sensor!

I had one case where the door was wide open and the U200 reported status “closed” via Matter to Home Assistant.

1 Like