Security Lighting Failure

light

#1

1) Give a description of the problem
Porch Light is not turning off and variable is not being set

2) What is the expected behaviour?
IFTTT sends command to turn on porch light if WyzeCam detects motion. It sets a variable, waits 10 minutes, turns off, resets variable.

3) What is happening/not happening?
I don’t see the variable being set so the light never turns off.

**4) Post a Green Snapshot of the piston

5) Attach logs after turning logging level to Full
3/9/2020, 11:15:03 PM +991ms
+2ms ╔Received event [Porch Lights].switch = on with a delay of 142ms
+155ms ║RunTime Analysis CS > 27ms > PS > 89ms > PE > 39ms > CE
+157ms ║Runtime (39063 bytes) successfully initialized in 89ms (v0.3.110.20191009) (155ms)
+158ms ║╔Execution stage started
+167ms ║║Comparison (string) stay is_any_of (string) stay,away = true (2ms)
+168ms ║║Cancelling condition #2’s schedules…
+169ms ║║Condition #2 evaluated true (7ms)
+172ms ║║Comparison (enum) on changes_to (string) on = false (0ms)
+174ms ║║Condition #3 evaluated false (3ms)
+174ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+176ms ║╚Execution stage complete. (18ms)
+177ms ╚Event processed successfully (177ms)


#2

Try turning off Switch 24 manually, so the piston sees it, then have another go.


#3

Try switching lines 25 and 23.
Trigger first, condition later.

And send the variable as SMS to your phone each step for testing purposes only:
Set variable {securitylighting} = true
Send SMS {securitylighting}


#4

This seems to have corrected the issue, Ill continue to watch.