Flow with autoexec after restart of Homey

I’m creating 2 Flows :

One that disables some flows and the restarts Homey. Just restart created several notifications that devices are not available, and thus errors in flows not executeing the way they should. So I disable some flows before the restart :

etc. This flow I start with a standard flow wich I can run from the App.

But when Homey restarts and I re-enable flows, some Apps are still not back up and running.
But I can’t see that because the Simplelog app sin’t up either. I want to try and sole that dis way :

is this the right way to go ? Will the Error-handeling of Simplelog work and restart the flow until the Simplelog App is running ?

  • Is a 1 minute wait enough to let the other apps start ?
  • Is there a way to check if all apps have started ?

The waiting time, I think, depends on the number of app you have and Homey model. It’s trial and error to find out the right time period in your specific case.

I have Homey Pro 2023 with approx. 30 apps and use a 1 to 1.5 minute delay to restart an app after Homey has restarted (yes I know it sounds strange..).

After waiting 1 minute I check whether the Sys Log app is running. If not the flow waits an addition 30 seconds.

Ok, you disable the app, enable it after restart and ‘wait’ for it to start. Sounds good.

Do all apps start at the same time after a restart ? Ie if one is ‘up’ the other ones are too ?

My flow keep restartingnitself until the Log app is running (if checking on the error works)…

A little bit different. My purpose is to restart the INNR app (smart plugs) after a restart of Homey. The app restart is necessary otherwise power measuring is not working properly. As I want to log certain actions, as a prerequisite, the Simple Log app must be running before restarting the INNR app.

So the flow does the following:

  • Trigger: Homey has restarted;
  • Then wait 1 min;
  • Then check if the Simple Log app is running. Some times it is, sometimes it is not. Hence the additional 30 sec delay;
  • Finally, restart the actual app I want to restart: INNR.

I don’t really understand in which order Homey starts apps after a restart and how long it takes. The above works in my case, but might be different in yours.

This?

After a Restart of Homey Pro this will wait until all Apps are Ready (or Timeout of 300 Sec.)

The Power User forofication on this homey is ~17 seconds before sysInternals starts,

Almost immediately after that (< 1300ms) are on this Dev Homey ALL Enabled Apps checked and running.

2 Likes

Thanks, this is very useful :grinning: !

Hmm, that is nice indeed… But not sure how far I can stretch my memory use on my 2019.

Another app… That would be no 15.