1) Give a description of the problem
I know via the AND truth table two switches AND (&&) together should produce true only when the both are true (or ON) and false the rest of the time. However i can’t get this trigger to work for me
2) What is the expected behavior?
When both switches are ON then the overall logic should be true so therefore my piston should trigger as long as my other conditions are true. The piston is basically suppose to trigger my Good night flow when i have flipped my Asleep trigger to ON (meaning i am going to bed), and my gf has switched hers to ON as well.
3) What is happening/not happening?
I don’t see the Night mode coming on. The logs below show that this piston never triggered to anything. My only guess is that AND switches together can’t be used as a trigger they have to be used as a condition. The reason for my hunch is because i have another logical operation in another piston that XOR’s the same switches but in that piston they are used as conditions not triggers.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
5/29/2018, 11:20:18 PM +507ms
+1ms ╔Received event [Home].routineExecuted = 83160a5b-39b3-45fc-900d-fcdf32b01f59 with a delay of 64ms
+156ms ║RunTime Analysis CS > 19ms > PS > 52ms > PE > 85ms > CE
+159ms ║Runtime (40704 bytes) successfully initialized in 52ms (v0.3.104.20180323) (157ms)
+160ms ║╔Execution stage started
+179ms ║║Comparison (enum) present is (string) present = true (2ms)
+181ms ║║Condition #13 evaluated true (15ms)
+186ms ║║Comparison (string) :425cbfce23c780743c01ab5a5ee6e3c0: executes (string) :425cbfce23c780743c01ab5a5ee6e3c0: = true (2ms)
+188ms ║║Cancelling condition #15’s schedules…
+189ms ║║Condition #15 evaluated true (7ms)
+190ms ║║Cancelling condition #14’s schedules…
+191ms ║║Condition group #14 evaluated true (state changed) (9ms)
+192ms ║║Cancelling condition #1’s schedules…
+193ms ║║Condition group #1 evaluated true (state changed) (27ms)
+195ms ║║Cancelling statement #18’s schedules…
+207ms ║║Executed virtual command executePiston (7ms)
+210ms ║╚Execution stage complete. (51ms)
+212ms ╚Event processed successfully (212ms)
5/28/2018, 1:27:27 AM +236ms
+5ms ╔Starting piston… (v0.3.104.20180323)
+316ms ║╔Subscribing to devices…
+445ms ║║Subscribing to Home.routineExecuted.83160a5b-39b3-45fc-900d-fcdf32b01f59…
+577ms ║║Subscribing to Amanda V…
+578ms ║║Subscribing to Miguel’s iPhone…
+579ms ║╚Finished subscribing (279ms)
+659ms ║Comparison (enum) present is (string) present = true (4ms)
+668ms ║Comparison (string) null executes (string) :425cbfce23c780743c01ab5a5ee6e3c0: = false (3ms)
+683ms ║Calculating (boolean) true && (boolean) true >> (boolean) true
+690ms ║Comparison (boolean) true changes_to (boolean) true = false (5ms)
+693ms ║Cancelling condition #17’s schedules…
+694ms ║Cancelling condition #14’s schedules…
+695ms ║Cancelling condition #1’s schedules…
+729ms ╚Piston successfully started (725ms)