Window and door sensor stays open for X minutes

Hello all!

I was wondering if it is possible to have an extra choice for door and window sensors like DW2 for example.

I have three garage doors at work and I want: If door is open more than 10 minutes then trigger the sonoff relay to close it.
If windows are open more than 5 minutes then turn off the AC
if a door or windows is open more than 30 minutes send a notification etc

Is it possible? Thanks!!!

Let’s put them on the request list @natalia.long.

And yes, the delay status of the DW should be supported as a trigger of the scenes, for now notification of opening remains for X minutes is available.

1 Like

Just create 2 scenes.
Scene 1:

IF
window open

THEN
wait 5 minutes
AC off

Scene 2:

IF
window closed

THEN
AC on

1 Like

Thanks for the advice but I dont ask that.

I want if a window is open for 5 minutes (continuously) then the AC goes off
If I close the door at 4 minutes for example, I want the AC keeps ON

That is very impoirtant for me for the garage doors when someone goes out and forget to close it. This is happening everyday at work…

Actually, the " continuously" feature is quite difficult for sensors, cuz the no-stop status report need stable power supply while the sensors are mostly battery powered.

Not done this is consideration of quickly consuming of the battery and it’s hard to get the status continuously, and the sensors are designed to report status changes.

The compromise solution is to call the API with certain rules, like at
one minute
tow minutes
three minutes
…
up to ten minutes I thinks, not endless

it’s more like a status request at time point, not continuously, so it’s not accurate as expected.

Two or three years ago I dont remember I had window and door sensors by Xiaomi. They had the feuture “opened for over 5 minutes” and they are battery powered sensors also. Now they have the feature just for 1 minute.

The only I can think for now is something like this

Scene 0 (ENABLED)
-If sensor is open
-Enable Scene 1

Scene 1 (DISABLED)
-If sensor is open
-delay 5 minutes
-Close the garage door

Scene 2 (ENABLED)
If sensor is close
Disable Scene 1

For some reason it doesnt work. I guess because the sensor is already opened when Scene 1 is enabled?

Is imposible to do with ewelink. I had same problem last year. My case was that i want off the ac when a window stay open more than 5 minutes. If you make this:

  • when some window is open
  • wait for 5 minutes
  • then the ac off
    But the problem come now
    -When every windows are closed
    -then ac is on
    But when you closed the window before 5 minutes the first orther ( windows open-wait for 5 minutes and then off) still going and y the ac is off even if windows are closed.
    Is not posible do with ewelink but i found the solutions with the app SmartThings.
    With SmartThings you can to put the next condition:
    If windows have been open for 5 minutes continuously then ac off.
    Then if you closed the windows before the 5 minutes ac on and because has not be 5 minutes continuously the first order don’t work.
    Sorry for my english.


Hope i can help my experience

1 Like