Hi guys,
Set up a couple of pistons which attempt to open our old electric gates by triggering a Qubino Flush 1D relay to start the start/stop routine and then lock it open.
The piston itself works perfectly, I also have a close one setup. However the virtual switches i’m using to start them don’t reliably start the pistons.
At first I thought it was because I was using a momentary tile, so I went to a on/off button instead and set it to work when it was switching on and occasionally that wouldn’t start the piston. I thought then it was because then SmartThings wasn’t updating the state of the on/off button so thought that “on” wasn’t a “changed to” state so I changed it to “any kind of on” but again, after waiting a while and triggering the virtual switch, the piston failed to start. As usual the second time I press the virtual button to on it works, but that’s no good for setting in scenarios or using voice controls.
I noticed that despite me telling the piston to fire on changes to any version of “on” it say that it was “on” but evaluated it as false. I assume i’m doing something wrong with the virtual switches.
` 22/09/2017, 19:26:33 +488ms
+1ms ╔Received event [Gates - Lock Open].switch = on with a delay of 73ms
+214ms ║RunTime Analysis CS > 17ms > PS > 47ms > PE > 150ms > CE
+223ms ║Runtime (37128 bytes) successfully initialized in 47ms (v0.2.0e9.20170921) (221ms)
+224ms ║╔Execution stage started
+240ms ║║Comparison (enum) on changes_to_any_of (string) on = false (0ms)
+242ms ║║Cancelling condition #8’s schedules…
+243ms ║║Condition #8 evaluated false (9ms)
+244ms ║║Cancelling condition #7’s schedules…
+245ms ║║Condition group #7 evaluated false (state changed) (12ms)
+248ms ║╚Execution stage complete. (24ms)
+261ms ╚Event processed successfully (261ms)`