r/AutomateUser • u/Puzzleheaded-Flow724 • 23h ago
Question How to control a flow based on if another flow is running?
So I have two flows.
- Spotify Start
- Hybrid Assistant Start
Both flows await for a Bluetooth connection to my car.
Since they both start at the same time and want to have Hybrid Assistant on top, I delay it starting up for 7 seconds to let time for the Spotify Start flow to finish its thing, which is to launch the Spotify app, set the Bluetooth Music volume to 100% and Play the current playlist.
That's working fine, but I don't always want the Spotify Start flow running but I always want the Hybrid Assistant Start flow running and I'm trying to add a condition to bypass that 7 seconds delay if the Spotify Start flow is stopped. I'm currently trying the "Fiber Stopped?" block but don't know what to put in the Fiber URI argument. I tried with "SpotifyFiber" (which I've set in the Spotify Start "Fiber URI" argument) and with the Spotify Start Flow URI and both gives me
java.lang.IllegalArgumentException: Not a fiber URI
What should I enter there or is there a better way?
Thanks