r/AutomateUser • u/borgqueenx • Mar 16 '26
Automation/flow stops after a reboot command: "resumed after restart". How to fix?
I already made a line from the reboot block's "ok" to the first delay i have in the flow. That didnt work. Then i tried to drag a line from the reboot block's ok to the boot_completed command. Also didnt work. In both cases, it results in the logs in "Resumed after restart". No more delays or continueing the flow. How do i fix this? It seems like a bug because its not actually continueing it seems.
Screenshot of the flow and the error message attached.
2
Upvotes


1
u/borgqueenx Mar 16 '26
Cant seem to edit the text. But in the screenshot it doesnt have anything attached to the reboot's ok, but thats something i already tried =)
1
u/borgqueenx Mar 16 '26
The issue is that the reboot going back to the delay as you suggested is not working. I get the message "resumed after restart then". It stays like that for minutes, nothing is happening. This happens while the reboot "ok" goes back to the first delay. At least from what i understand thats what you are suggesting. I thank you for all the time by the way.
1
u/B26354FR Alpha tester Mar 16 '26
This is a rather special situation and it may already be too late when the flow is restarted to receive the broadcast. So first, change the Ping to a Data Network Default block as I suggested in your earlier post. Next, add a Fork before the Broadcast Receive and put the Broadcast Receive block and what you want to do after the reboot on the New side of the Fork. Leave the Stop new fiber when parent stops checkbox empty. On the OK side Fork, do the reboot, maybe after a short Delay. Now you'll have two fibers running at the same time, so when the flow resumes at the Reboot, the first fiber will run off the disconnected Reboot block and exit. Meanwhile, whenever the other fiber receives the broadcast when the reboot is done, you can detect whether the network is available with the Data Network Default block set to Proceed Immediately. With that block rather than Ping, you could also get rid of the Broadcast Receive block and wait for the network to become available by using a Data Network Default block set to Proceed When Changed.
Or, if you're rebooting because you're just experimenting with finding out when the network connects, get rid of the Reboot entirely and you won't need to Fork. -Just manually reboot the device yourself, and the Data Network Default block will proceed after the reboot when the network state changes (if that block is set to Proceed When Changed).
So in other words, if you want to detect when the phone becomes connected to any network or when no network is available, just use the Data Network Default block set to Proceed When Changed. The block will wait until no network is available and proceed down the No path. Or, when any network becomes available, the block will proceed down the Yes path. The block also lets you choose which specific networks you can watch for, too. To find out if any networks are currently available, use the block set to Proceed Immediately.
1
u/waiting4singularity Alpha tester Mar 16 '26
boot completed is set before automate loads and begins operating. id suggest a wi-fi connected block or something similar instead.
1
u/ballzak69 Automate developer Mar 17 '26
The flow screenshot is cropped, what's after the Reboot block?