Aqara Door Lock U200 automation

Hi there all.

I have a door lock U200, near that i have a Aqara Light Switch H2 EU, so i’m trying to look for an automation, then i press the wireless switch to lock or unlock the door, but it seems the door lock do not have this trigger option, is lock or unlock as separate options, basically the lock doesn’t read the present status.
Any idea how can i make it to press the same switch one click for lock or unlock? Basically as a light bulb, on/off trigger

Hello, show me the automation screenshot.

1 Like

You can make a virtual switch. In the WHEN section, write “open the lock”, THEN - “off the automation”. Similarly, in the reverse order, WHEN - “close the lock”, THEN - " turn on the automation". Automation 2.0, lesson 12, blitz topic, VIRTUAL Aqara switch

2 Likes

Hi, first of all thanks for the reply. So, if I try to add a simple automation, the options lock unlock are separate, if I try to add a condition like yo check the status first, and reverse, there is no option for lock unlock, only some battery status. Here you have some photos.


https://youtube.com/shorts/K8zmL28ZtpI?si=AVRpjrzazL6lvEm5

I found this on Youtube, this is kinda what i want to do, but with the switch button from my Aqara Light Switch H2, and the same button to lock and unlock the U200, not to autolock when close the door.

1 Like

It can be done easier. Do you have a wired switch (1 channel) that is not involved in the work?

2 Likes

Unfortunately it’s not currently possible in Aqara Home, but if you have Apple Home, then you can configure such automation there.

The wireless button should be exposed to Apple Home, when you open it, then you should see configuration for click, double click and long press. Select the action and scroll to the bottom, you should see “Convert to shortcut” and now you should be able to add an IF that checks if your lock is unlocked, and if it is, it will lock the door (and otherwise - lock it).

I can show you how to configure it in a moment

4 Likes

I think the problem is that there is no “is locked” or “is unlocked” condition to be used in the AND section.

When you configure and automation, you can select IF “single click” but you need an AND “U200 is locked” for the automation because THEN can only have “lock” or “unlock”.

The only AND you can use is the battery status (as shown above in the screenshots)

There is no universal “lock/unlock”, because those are two separate actions. And @Andrei.C probably wants a universal button that does that.

So he wants something like “IF single click AND U200 is locked THEN unlock” and “IF single click AND U200 is unlocked THEN lock”

1 Like

If you don’t use Apple Home then you can emulate this behavior in Aqara Home by making 4 automations.

  1. IF single click THEN lock (enable “trigger once”)
  2. IF single click THEN unlock (enable “trigger once”)
  3. IF U200 unlock THEN enable automation 1
  4. IF U200 lock THEN enable automation 2

Immediately disable automations 1 and 2 (by clicking the toggle next to them).

Although there is no “is locked” or “is unlocked” for the AND section, “lock” and “unlock” can be used as triggers in the IF sections.

1 Like

Hello, I did it without any problems in Aqara home. There are two options, a virtual switch or a physical switch that is not involved. You control the command “lock closed” or “lock open” to turn the switch (or virtual switch) On or Off, respectively. Then comes the technical part, these switches (their state) we use in the automation section IF. This is an analogue of controlling the light bulb that I described.





Lesson 3, pictures 15,16. Instead of the command for the lamp, we give a command to the lock On/Off. Automation 2.0. Lesson 3. Controlling lighting devices

3 Likes

By the way, @Andrei.C, why don’t you make pressing (short) the On lock and long pressing the Off lock.
Simple and fast😊

2 Likes

Oooh, you mean like this. Nice trick, I’ll remember this trick, thanks.

But if you don’t have a free relay channel to act as a state indicator (as in your example) then I think that my trick with the 4 automations is also ok :slight_smile:

1 Like

No, I have a spare version with a virtual switch😊.
Everything is the same, only the On/Off virtual switch. Automation 2.0, lesson 12, blitz topic, VIRTUAL Aqara switch

1 Like

The screenshot of my working automation is a visual about the lock status On/Off. A low-current transformer (24 volts) simultaneously works for the lock and the relay on which the red signal lamp (indicator, low-current) turns on. The woman is happy, she can see visually that the door is closed🤣

2 Likes

In my case the lock is fully battery powered and I forgot about the 24V option, so I just didn’t take such solution into consideration

2 Likes

@gafich10 @cezary806 I have this Aqara Light Switch H2 EU, 2 buttons, 1 channel, the upper part is used for the entrance light on/off, and I intend to use the lower part, as wireless switch to make the door lock/unlock. I do not have NEUTRAL LINE.

I will now write an extended lesson on your question and give you a link to it by the end of the day.

2 Likes

I do not have a apple home bridge. I do have all the devices in apple home, but not yes a homepod mini or something, so I can see them only when i`m home

2 Likes

Thank you very much, you saved my day. It`s just extremely annooying not to have a button on the lock to push for lock/unlock and you always have to turn the knob for this.

2 Likes

I have just tried this 4 automations, its just working for a first time, but its not enabling back the automations 1 and 2, i don`t know why…