I'm having a similar issue as described here and in
another thread, which the OP posted in as well.
I made a flow to enable/disable another flow based on whether or not I'm home, using Wi-Fi connected/disconnected as a trigger, since having that other flow enabled when I'm out causes it to trigger like crazy (trigger is sensor > face down and not face down, so it fires constantly when driving with the phone in my pocket). But I keep finding that flow disabled when at home, and when I just checked the log for the one responsible, I see the Wi-Fi occasionally disconnecting very briefly then reconnecting (not sure if it's the phone renewing the lease or Android briefly putting the radio to sleep or what). The problem is, the last Wi-Fi trigger is a connect, but then on a check to see if it's connected (done because I use both triggers in the same flow then use a condition to determine the current state to see whether to enable or disable the other flow), it wasn't, and so the other flow was disabled. The thing is, it seems to be a problem with Automagic not seeing all connect/disconnect events, because otherwise it should have shown a disconnect trigger between the connect trigger and the failed condition (where it shows as not being connected). And I have FEP set to stop the flow and execute a new instance, so it should have not only detected the disconnect, but restarted based on that, and then again when detecting the reconnect after that, which it also apparently missed.
In other words, here's what happened:
Wi-Fi disconnected
Flow triggered and disabled other flow
Wi-Fi connected
Flow triggered
Wi-Fi disconnected while flow running
Flow did check, found Wi-Fi not connected, disabled other flow
Wi-Fi reconnected
Automagic did nothing
And here's what should have happened:
Wi-Fi disconnected
Flow triggered and disabled other flow
Wi-Fi connected
Flow triggered
Wi-Fi disconnected while flow running
Flow triggered, canceling running instance and starting a new one
Wi-Fi reconnected, either while flow running or after
Flow triggered, canceling running instance (if occured while running) and enabling other flow
The next step is to try using the trigger itself as the condition for whether to enable or disable the other flow, instead of relying on a conditional check, but even that may not work if Automagic is missing triggers.