Need Help for Automation

Hi everyone,

I need some help with an automation I’ve been thinking about for days, but I just can’t seem to get it working.

I’m also not sure if this is even possible within the Aqara ecosystem.

Here’s the thing: I want to receive a notification if a contact sensor hasn’t been opened at 6:30 AM.

However, if the sensor was opened before that time, I don’t want to receive a notification.

Do you think this is even possible and if I’ve configured it correctly?

Thats my last try for tomorrow.

Thank you

1 Like

Hello, this is how it should be done. You will not receive the exact time of the notification at 6.30.
You will receive the notification between 05.00-08.00 when the IF condition is met. In the WHEN condition (door closed for 2 minutes), you need to set a delay of 5 seconds so that the IF condition is ready to be polled.

Explanation, when the door is closed for 2 minutes, the sensor state in IF goes into readiness, so that this same condition (sensor state closed for 2 minutes) from the WHEN section polls the IF section without failure, we make a delay of 5 seconds.

Once again, the push will come between 05.00-08.00 when the automation starts (the specified conditions are met).

3 Likes

You can also do this, I won’t describe the work, think for yourself according to the algorithm I wrote above, I need to do something at home.:wink:

4 Likes

Thank U @gafich10✌️

I will check this tomorrow.

I also have to something at home :wink:

1 Like

I changed it based on your first pic/workflow:

Hope it works :muscle::v:

2 Likes

If something goes wrong, write, we will fix the error. Maybe add another 5 seconds to the first condition in the WHEN section.

2 Likes

So this unfortunately does not work :tired_face:

So disapointing

I will protest to myself and write back to you, OK.

1 Like

You are the best ! That is what a cool community is all about.

Thank you so much​:v::smiling_face_with_three_hearts:

1 Like

Hello, everything works.
Explanation.
This automation works perfectly (even without a delay).
In this example, we made a permanent notification (we do not set a time limit).

  1. If the IF condition occurs, you will immediately see a notification from the application.
  2. This condition is met IF, after you receive a notification (see point 1), the IF section is always executed, ready to be executed when requested from the WHEN section.
  3. I specially placed a button (short press) to start executing the IF condition, by pressing the button you will immediately receive a notification (simulated the question as at 06.30).
    Fig.1

Now we will finalize the notification limit (06.00-08.00) in this automation. and add a start time of 06.30
Explanation.

  1. If the automation is triggered at the specified notification time 06.00-08.00, the notification will come immediately.
  2. If the automation triggered outside the time 06.00-08.00, the notification will not come but the IF condition will be ready for execution.
  3. The automation execution time (automation start) will be 06.30, according to the 2nd explanation, the IF section is ready for execution.
    Fig. 2.

I checked this automation personally, everything works.

1 Like

That all sounds very logical, I have to admit.

Then the approach with the sensor as a trigger was actually wrong:

the time is the trigger.

I’m just not quite clear yet whether I need to implement both of your screenshot automations or if the second one is sufficient.

You only included the button as a trigger as an additional testing option, correct?

I’ve now configured the following in the hope that it works.

If I want to adjust the test time, I only need to change the “if” condition, which is currently set to 6:30, right?

Thanks a million in advance for your efforts and dedication, really!

1 Like

Yes Yes

1 Like

Yes Yes

1 Like

I also thank you for the question.
As a bonus to the obedient student, see how my cat is integrated into the smart home :slightly_smiling_face:Cat+button+AqaraC1. 🥰

3 Likes

Thats Genius :joy::wink:

I will give u a feedback if it works tomorrow.

2 Likes

Unfortunately, it didn’t work on the first day after the change.

I had to rearrange things a bit and restart the M3 Hub. Since then, the automation has been working perfectly.

I also adjusted the start time slightly. 6:30 was too early for a reminder.

The scenario I still need to test is: what happens if I open the /door before the start time? I don’t want to receive a reminder then.

I haven’t been able to test this yet. But I’m optimistic. Thanks a million again!

1 Like

Hello, tell me what changes you made.
I’m curious what you corrected.
Regarding the start message (I’m writing as an example), then you need to set the range in the TNEH section 06.29-08.00. If you set 06.30 in the WNEH section, then the following will happen: if the IF condition is met by time 06.29 (example 06.20), then the start time 06.30 will start the check trigger and give a notification. If the condition in IF is repeated and occurs (open/closed doors) in the interval 06.32 to 08.00, the notification will be as many as the number of times the condition in IF occurs (in your case, two doors are closed).

I only changed the Start Time to 6:55.

Will it work tomorrow morning?

As i said: i am curious what happens when i open the sensor, for example, at 6:45…hopefully there will no notifacation then

1 Like

Yes, we won’t get a notification, the notification will come after you close the door.
I wonder why you don’t do the experiment now. Shift the time to the current range and do a lab one🙂

1 Like

Good Idea…to change the time to now.

You wrote that notification will come afterwards. But that is not what i want.

I want NO notification if i open the door before the start time.
Is that possible? Maybe you missunderstood my…or i missunderstand you :wink: