Hello, I wrote this code. when i walk in my kitchen I want my undercabinent lights to turn on and a computer moniter running DAKboard to turn on. This always works. Sometimes we turn the kitchen lights on but sometimesthe undercabinent is sufficient. in the case that the kitchen lights are all on I want those to turn off when there is no motion. Now I am using TP link wifi switches because thats what i had installed. I am using the TP-Link connect smart app which polls the switches to see if they are on every 15 min. I set 2 turn off commands because i think if it is busy polling the switchs it will not turn them off. But one of them is a Z wave switch. that also doesn’t turn off all the time. I turn the switches on with alexa through smart things. so as soon as they turn on smart things knows and shouldn’t have to wait 15 minutes to poll Here is the logs and my script. I might not be around a computer to reply untill Friday morning hopefully someone can help.
Thanks
8/30/2017, 6:05:32 PM +988ms
+2ms â•”Received event [Kitchen sensor].motion = inactive with a delay of 822ms
+689ms â•‘RunTime Analysis CS > 33ms > PS > 326ms > PE > 330ms > CE
+697ms â•‘Piston waited at a semaphore for 259ms
+699ms â•‘Runtime (36044 bytes) successfully initialized in 326ms (v0.2.0e5.20170812) (696ms)
+701ms â•‘â•”Execution stage started
+722ms â•‘â•‘Comparison (enum) inactive changes_to (string) active = false (2ms)
+725ms â•‘â•‘Condition #4 evaluated false (12ms)
+727ms â•‘â•‘Condition group #1 evaluated false (state did not change) (14ms)
+741ms â•‘â•‘Comparison (enum) inactive changes_to (string) inactive = false (1ms)
+744ms â•‘â•‘Condition #10 evaluated false (11ms)
+746ms â•‘â•‘Condition group #5 evaluated false (state did not change) (13ms)
+750ms ║╚Execution stage complete. (49ms)
+758ms ╚Event processed successfully (758ms)
8/30/2017, 6:05:32 PM +553ms
+2ms â•”Received event [Kitchen sensor].motion = active with a delay of 910ms
+319ms â•‘RunTime Analysis CS > 29ms > PS > 78ms > PE > 212ms > CE
+328ms â•‘Runtime (35974 bytes) successfully initialized in 78ms (v0.2.0e5.20170812) (325ms)
+330ms â•‘â•”Execution stage started
+352ms â•‘â•‘Comparison (enum) active changes_to (string) active = true (1ms)
+354ms ║║Cancelling condition #4’s schedules…
+356ms â•‘â•‘Condition #4 evaluated true (13ms)
+357ms ║║Cancelling condition #1’s schedules…
+358ms â•‘â•‘Condition group #1 evaluated true (state changed) (17ms)
+363ms ║║Cancelling statement #2’s schedules…
+373ms â•‘â•‘Skipped execution of physical command [Fan].on([]) because it would make no change to the device. (3ms)
+374ms â•‘â•‘Executed [Fan].on (6ms)
+381ms â•‘â•‘Skipped execution of physical command [moniter].on([]) because it would make no change to the device. (4ms)
+382ms â•‘â•‘Executed [moniter].on (6ms)
+398ms â•‘â•‘Comparison (enum) active changes_to (string) inactive = false (1ms)
+401ms â•‘â•‘Condition #10 evaluated false (11ms)
+402ms â•‘â•‘Condition group #5 evaluated false (state did not change) (14ms)
+406ms ║╚Execution stage complete. (77ms)
+416ms ╚Event processed successfully (416ms)
8/30/2017, 6:04:00 PM +667ms
+2ms â•”Received event [Kitchen sensor].motion = inactive with a delay of 342ms
+1369ms â•‘RunTime Analysis CS > 25ms > PS > 1084ms > PE > 260ms > CE
+1377ms â•‘Piston waited at a semaphore for 1016ms
+1379ms â•‘Runtime (36045 bytes) successfully initialized in 1084ms (v0.2.0e5.20170812) (1377ms)
+1381ms â•‘â•”Execution stage started
+1403ms â•‘â•‘Comparison (enum) inactive changes_to (string) active = false (1ms)
+1405ms â•‘â•‘Condition #4 evaluated false (11ms)
+1407ms â•‘â•‘Condition group #1 evaluated false (state did not change) (14ms)
+1421ms â•‘â•‘Comparison (enum) inactive changes_to (string) inactive = false (1ms)
+1424ms ║║Cancelling condition #10’s schedules…
+1425ms â•‘â•‘Condition #10 evaluated false (12ms)
+1427ms ║║Cancelling condition #5’s schedules…
+1428ms â•‘â•‘Condition group #5 evaluated false (state changed) (16ms)
+1433ms ║╚Execution stage complete. (52ms)
+1442ms ╚Event processed successfully (1443ms)