I’m having a piston that toggles the switch and updates tile state in top-level “main loop”. Then it has couple of triggers to execute piston on desired conditions.
The major reason for such design is to make it possible to tap tile on dashboard to toggle the switch. I like it because I could keep all the logic in a single piston. It is also easy to test such pistons.
However I’ve been noticing “ghost” piston execution. Apparently that are “recovery” piston calls.
So the question is - how I could I detect that current piston execution is cause by recovery so I could skip toggling the switch?