How can I program a delay on break?


#1

1) Give a description of the problem
I would like to keep my fan running for 30 minutes after no motion is detected and allow it an opportunity to register motion again during that time.

2) What is the expected behavior?
To keep looking for motion during the count down time.

3) What is happening/not happening?
I believe once the motion is detected is waits for 30 minutes and then turns off. I’d like it to keep checking for motion during that time.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
|+1ms|╔Received event [Home].test = 1530834427487 with a delay of 2ms|
|—|---|
|+128ms|║RunTime Analysis CS > 15ms > PS > 30ms > PE > 82ms > CE|
|+132ms|║Runtime (37042 bytes) successfully initialized in 30ms (v0.3.104.20180323) (131ms)|
|+134ms|║╔Execution stage started|
|+146ms|║║Comparison (decimal) 80.0 is_greater_than (integer) 74 = true (2ms)|
|+147ms|║║Condition #4 evaluated true (10ms)|
|+152ms|║║Comparison (enum) active is (string) active = true (1ms)|
|+154ms|║║Condition #7 evaluated true (7ms)|
|+155ms|║║Condition group #1 evaluated true (state did not change) (18ms)|
|+156ms|║║Cancelling statement #2’s schedules…|
|+181ms|║║Executed physical command [Wemo Mini Bottom].on() (19ms)|
|+181ms|║║Executed [Wemo Mini Bottom].on (23ms)|
|+183ms|║╚Execution stage complete. (51ms)|
|+187ms|╚Event processed successfully (186ms)|


#2

You could probably do something like:

IF temperature > 74
And motion sensor is active
Then turn on

If motion sensor stays inactive for 30 minutes
Then turn off

The linked piston here is very similar:


#3

Thanks, didn’t know that was a thing! I’ll give it a shot. Thank you for helping me!