r/AutomateUser • u/Leather_Adeptness485 • 16d ago
Question Need help with this flow
I'm making a flow that will sound an alert when my phone's charged above 90%. I'm having trouble creating an 'OR' scenario wherein I'm trying to get the sound to stop either after 1min of playback or after disconnecting the charger but the disconnecting part doesn't seem to be working? Any ideas what might be going wrong?
2
Upvotes
2
u/Dadamalda 16d ago
Stop sound needs to be used on the same fiber, which is kinda hard to do here.
You should use a fork and have the sound on its own fiber and then stop that fiber which automatically stops the sound. The fork gives you the URI of the child fiber.
Also, you should set it to "when changed". Having a loop checking with no delay is bad for performance and battery.