1) Give a description of the problem
Have a virtual switch representing me “out on a walk”, which triggers Google fit walk tracking on my phone
2) What is the expected behaviour?
Virtual switch turns off when it is 1) on and 2) front door contact sensor opens
3) What is happening/not happening?
Piston is not executing the OFF command. Fails at “contact changes to open” condition.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
10/22/2020, 8:09:28 AM +221ms
+0ms ╔Received event [Front Door].contact = open with a delay of 54ms
+94ms ║RunTime Analysis CS > 20ms > PS > 41ms > PE > 33ms > CE
+96ms ║Runtime (38593 bytes) successfully initialized in 41ms (v0.3.110.20191009) (95ms)
+97ms ║╔Execution stage started
+108ms ║║Comparison (enum) on is (string) on = true (1ms)
+110ms ║║Cancelling condition #2’s schedules…
+111ms ║║Condition #2 evaluated true (9ms)
+114ms ║║Comparison (enum) open changes_to (string) open = false (0ms)
+116ms ║║Cancelling condition #3’s schedules…
+117ms ║║Condition #3 evaluated false (6ms)
+118ms ║║Condition group #1 evaluated false (state did not change) (17ms)
+120ms ║╚Execution stage complete. (23ms)
+121ms ╚Event processed successfully (122ms)
I’ve also tried the unspecified “contact changes” trigger followed by an inner IF (contact == open), and this wasn’t working either. This one is confusing the hell out of me because it seems like the most dead simple piston and it just will not work. I also have the IF statement set to “never cancel tasks”, as I thought maybe turning the switch off would somehow cancel the first condition, even though that is contradictory and doesn’t really make sense. That didn’t help either.