Question for a Simple Routine. Motion > Action > Wait > Action


#1

1) Give a description of the problem
Wait and Turn Off is not working

2) What is the expected behavior?
When motion is detected, turn light on, wait ten minutes, turn off

3) What is happening/not happening?
Light is not turning off after 10 minutes

4) Post a Green Snapshot of the pistonimage


5) Attach any logs (From ST IDE and by turning logging level to Full)
12/7/2018, 11:14:02 AM +141ms
+1ms ╔Received event [Home].time = 1544199243558 with a delay of -1417ms
+102ms ║RunTime Analysis CS > 13ms > PS > 69ms > PE > 20ms > CE
+105ms ║Runtime (37049 bytes) successfully initialized in 69ms (v0.3.108.20180906) (102ms)
+106ms ║╔Execution stage started
+107ms ║╚Execution stage complete. (1ms)
+108ms ╚Event processed successfully (108ms)
12/7/2018, 11:04:21 AM +240ms
+2ms ╔Received event [Garage Motion Sensor].motion = inactive with a delay of 1048ms
+132ms ║RunTime Analysis CS > 20ms > PS > 91ms > PE > 21ms > CE
+135ms ║Runtime (37054 bytes) successfully initialized in 91ms (v0.3.108.20180906) (131ms)
+136ms ║╔Execution stage started
+146ms ║║Comparison (enum) inactive changes_to (string) active = false (1ms)
+148ms ║║Cancelling condition #2’s schedules…
+150ms ║║Condition #2 evaluated false (7ms)
+151ms ║║Cancelling condition #1’s schedules…
+152ms ║║Condition group #1 evaluated false (state changed) (10ms)
+155ms ║╚Execution stage complete. (20ms)
+156ms ╚Event processed successfully (156ms)
12/7/2018, 11:04:03 AM +417ms
+1ms ╔Received event [Garage Motion Sensor].motion = active with a delay of 1040ms
+102ms ║RunTime Analysis CS > 20ms > PS > 65ms > PE > 17ms > CE
+105ms ║Runtime (37059 bytes) successfully initialized in 65ms (v0.3.108.20180906) (102ms)
+106ms ║╔Execution stage started
+116ms ║║Comparison (enum) active changes_to (string) active = true (1ms)
+118ms ║║Cancelling condition #2’s schedules…
+120ms ║║Condition #2 evaluated true (7ms)
+121ms ║║Cancelling condition #1’s schedules…
+122ms ║║Condition group #1 evaluated true (state changed) (11ms)
+126ms ║║Cancelling statement #3’s schedules…
+133ms ║║Skipped execution of physical command [Garage Light].on([]) because it would make no change to the device. (4ms)
+134ms ║║Executed [Garage Light].on (6ms)
+139ms ║║Executed virtual command [Garage Light].wait (0ms)
+140ms ║║Requesting a wake up for Fri, Dec 7 2018 @ 11:14:03 AM EST (in 600.0s)
+146ms ║╚Execution stage complete. (41ms)
+148ms ║Setting up scheduled job for Fri, Dec 7 2018 @ 11:14:03 AM EST (in 599.994s)
+160ms ╚Event processed successfully (159ms) indent preformatted text by 4 spaces


#2

Hi @seanmclean
we were just talking about this :slight_smile:


#3

Ah, thanks! Let me go try. Back in ten minutes and I’ll close this if my lights turn off :slight_smile:


#4

Worked great, thanks!


#5

You are welcome…
Have fun:)