Turn off thermostat if door is opened for 10 seconds?

Hey guys, I know how to do all of this except for the 10 second part. If I have an input named “Back_door_open”, what do I need to have my condition statement say? Any help is appreciated.

I know this doesn’t answer your 10 second question. I’m not sure about times, something to do with (NOW > 00:10) function.
From the little time knowledge i do have though, i think you will need to do another check of the door status after 10s to see if it’s still closed. Otherwise, you are purely adding a delay to the action. Over to someone with a decent bit of knowledge.

To give you a work around.
i have a PLEG that constantly checks the back door trip status and the heater status (not the actual thermostat setpoint)
If the back door is open (for any length of time) and the heater is on, then turn it off.
In 30 mins or so when the thermostat sends a repeat on or off command as most of them do, then the heater will turn on.

It works for me, as my thermostats only wake every 15 mins, so i don’t want to change the setpoint all the time.

[quote=“thetwc, post:2, topic:188483”]I know this doesn’t answer your 10 second question. I’m not sure about times, something to do with (NOW > 00:10) function.
From the little time knowledge i do have though, i think you will need to do another check of the door status after 10s to see if it’s still closed. Otherwise, you are purely adding a delay to the action. Over to someone with a decent bit of knowledge.

To give you a work around.
i have a PLEG that constantly checks the back door trip status and the heater status (not the actual thermostat setpoint)
If the back door is open (for any length of time) and the heater is on, then turn it off.
In 30 mins or so when the thermostat sends a repeat on or off command as most of them do, then the heater will turn on.

It works for me, as my thermostats only wake every 15 mins, so i don’t want to change the setpoint all the time.[/quote]

thanks but that won’t work for my situation. the reason i am trying to do what im saying is because i take my dog out a lot but i normally shut the door behind me, so i only want the air to shut off if the door is left open. right now it shuts off and turns back on every time i open the door and that wastes a lot of energy.

I thought I could do it with this:
Back_door_open AND (Back_door_open>10)

or this:
Back_door_open AND (Back_door_open; Now>10)

but neither seems to be working.

Back_door_open AND (Back_door_open>10)
This is wrong because you are comparing a boolean value (Back_door_open) to 10 ... which is always FALSE because a boolean has a value of 0 or 1 in a numeric context (i.e. with the > operator).

NOW is equivalent to an INTERVAL timer that fires EVERY MINUTE.

Back_door_open AND (Back_door_open; Now>10)
This will work ... but it can take from 11 to 71 seconds to trigger, because NOW is evaluated every minute ...

If you want 10 second accuracy you MUST have an input schedule:

MyTimer - On Self Retrigger, OFF in 10 seconds

Conditions:
DoorIsOpen Back_door_open
DoorLeftOpen Back_door_open and (Back_door_open; !MyTimer)

Actions:
DoorIsOpen Using Advanced Tab, Select PLEG Device, Action is StartTimer, TimerName is MyTimer
DoorLeftOpen What you want to do here!

I think I have this working now but I have a similar question. If I want to shut a light off if there is no motion after 5 minutes, how would I set up that condition? I have an input called “Patio_motion” that is triggered when my motion sensor detects motion. Would the below condition work if I set the action associated with it to turn off the lights?

!Patio_motion AND (!Patio_motion; Now>5)

[quote=“tp546, post:6, topic:188483”]I think I have this working now but I have a similar question. If I want to shut a light off if there is no motion after 5 minutes, how would I set up that condition? I have an input called “Patio_motion” that is triggered when my motion sensor detects motion. Would the below condition work if I set the action associated with it to turn off the lights?

!Patio_motion AND (!Patio_motion; Now>5)[/quote]

I believe you have to do your time different “00:05:00” for 5 min