# Startup flow does not execute

**URL:** <https://community.homey.app/t/startup-flow-does-not-execute/29556>\
**Category:** Questions & Help\
**Created:** [May 8, 2020, 5:43pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556 "2020-05-08T17:43:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![W\_vd\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w_vd_p/32/16860_2.png) [@W\_vd\_P](https://community.homey.app/u/W_vd_P)\
**Post date:** [May 8, 2020, 5:43pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/1 "2020-05-08T17:43:29Z")

</div>

Hi,  
I’ve created a flow that is supposed to execute after startup (this option is only available if you enable the ‘power user’ experimental feature). The flow only switches off one light, a zigbee driver.  
When I test the flow it works as expected, however when I reboot Homey is doesn’t run. Does someone know if I can check logs anywhere to see if it is executed but, for example, encountered an error?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [May 8, 2020, 5:49pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/2 "2020-05-08T17:49:39Z")

</div>

Maybe it is executed before the Zigbee network is initialized?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [May 8, 2020, 5:54pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/3 "2020-05-08T17:54:47Z")

</div>

Did you add a delay for as long Homey needs to reboot and to load the apps and devices?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [May 8, 2020, 6:48pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/4 "2020-05-08T18:48:00Z")

</div>

Try with adding a notification, push msg or log entry and you will see it works. Zigbee is still slow to initialize and the app should also be loaded. Test it with a restart then test when it works after the restart to verify the delay necesary then change the delay in the flow.

---

<div class="post-metadata">

**Author:** ![W\_vd\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w_vd_p/32/16860_2.png) [@W\_vd\_P](https://community.homey.app/u/W_vd_P)\
**Post date:** [May 8, 2020, 8:26pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/5 "2020-05-08T20:26:54Z")

</div>

I’ve added a 2 minute delay, that does not do the trick. Do you have an idea about how much time it takes to init the zigbee network?

---

<div class="post-metadata">

**Author:** ![W\_vd\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w_vd_p/32/16860_2.png) [@W\_vd\_P](https://community.homey.app/u/W_vd_P)\
**Post date:** [May 8, 2020, 8:48pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/6 "2020-05-08T20:48:46Z")

</div>

The push message arrives, so yes the flow seems to work.  
When I restart the homey I can control the lights after 1 minute. Tried to set a delay of 240 seconds in the flow, but still the light stays on.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [May 8, 2020, 8:52pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/7 "2020-05-08T20:52:21Z")

</div>

Can you try to start flow 2 with a delay of fe 240 seconds and switch the light in flow 2?

---

<div class="post-metadata">

**Author:** ![W\_vd\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w_vd_p/32/16860_2.png) [@W\_vd\_P](https://community.homey.app/u/W_vd_P)\
**Post date:** [May 8, 2020, 9:59pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/8 "2020-05-08T21:59:39Z")

</div>

This seems to work. I don’t know why, do you have an explanation?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [May 9, 2020, 8:26am UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/9 "2020-05-09T08:26:52Z")

</div>

It looks like Homey checks the device at the start /execution of the flow,  
If it is unavailable it will not delayed switch it.  
The check is delayed by starting the second flow with the delay.

---

<div class="post-metadata">

**Author:** ![W\_vd\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w_vd_p/32/16860_2.png) [@W\_vd\_P](https://community.homey.app/u/W_vd_P)\
**Post date:** [May 11, 2020, 4:46pm UTC](https://community.homey.app/t/startup-flow-does-not-execute/29556/10 "2020-05-11T16:46:47Z")

</div>

Do the homey devs read this forum as well? Or is there another way to inform them about this (I would call it) bug?
