# Advanced Flow execution crashes Homey Pro

**URL:** https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801
**Category:** Questions & Help
**Tags:** flow, homey-pro, advancedflow
**Created:** [June 5, 2026, 9:14am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801 "2026-06-05T09:14:04Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Torulf\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torulf_wiberg/32/121765_2.png) [@Torulf\_Wiberg](https://community.homey.app/u/Torulf_Wiberg)
#### Post date: [June 5, 2026, 9:14am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/1 "2026-06-05T09:14:04Z")

</div>

When the below flow is enabled for execution Homey crashes and restarts every 1 to 2 hours. If the flow is disabled, there are no uncontrolled restarts. I have tried to find memory or CPU starvation, to no avail. Any pointer appreciated.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/dbda99a176d75c7ce63d2761ba8acec2bc7453c8.png)

---

<div class="post-metadata">

### Author: ![Hsd1965](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hsd1965/32/30160_2.png) [@Hsd1965](https://community.homey.app/u/Hsd1965)
#### Post date: [June 5, 2026, 9:28am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/2 "2026-06-05T09:28:27Z")

</div>

Are you sure you don’t get a divide by zero at some point?

---

<div class="post-metadata">

### Author: ![Torulf\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torulf_wiberg/32/121765_2.png) [@Torulf\_Wiberg](https://community.homey.app/u/Torulf_Wiberg)
#### Post date: [June 5, 2026, 9:44am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/3 "2026-06-05T09:44:36Z")

</div>

Yes I am as I initialize both variables with a number \>0. Both variables are also monotonically incremented and never increment above 500 before Homey crashes. However, I would in any case not expect Homey to restart if a division by zero occurred, at the most the script/flow.

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [June 5, 2026, 9:45am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/4 "2026-06-05T09:45:51Z")

</div>

Homey isn’t a Commodore 64, divide-by-zero should not crash the machine.

---

<div class="post-metadata">

### Author: ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)
#### Post date: [June 5, 2026, 9:47am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/5 "2026-06-05T09:47:09Z")

</div>

I don’t see anything strange.

Maybe this helps: select all the cards and copy/paste them in a new/blank canvas.

---

<div class="post-metadata">

### Author: ![Hsd1965](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hsd1965/32/30160_2.png) [@Hsd1965](https://community.homey.app/u/Hsd1965)
#### Post date: [June 5, 2026, 9:47am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/6 "2026-06-05T09:47:57Z")

</div>

It shouldn’t indeed. But with computers you never know …

Because the issue is not clear you need to isolate possible issues step by step.

Maybe temporarily remove the “Set measure\_battery to” card to rule out that writing this value every 30 seconds is causing the issue?

---

<div class="post-metadata">

### Author: ![Torulf\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torulf_wiberg/32/121765_2.png) [@Torulf\_Wiberg](https://community.homey.app/u/Torulf_Wiberg)
#### Post date: [June 5, 2026, 10:14am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/7 "2026-06-05T10:14:19Z")

</div>

Will try. Is there a known issue that can be resolved by this?

---

<div class="post-metadata">

### Author: ![Torulf\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torulf_wiberg/32/121765_2.png) [@Torulf\_Wiberg](https://community.homey.app/u/Torulf_Wiberg)
#### Post date: [June 5, 2026, 10:15am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/8 "2026-06-05T10:15:18Z")

</div>

Will try without writing to a device.

---

<div class="post-metadata">

### Author: ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)
#### Post date: [June 5, 2026, 10:17am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/9 "2026-06-05T10:17:11Z")

</div>

Not an expert. Thought to have read this somewhere on this forum.

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [June 5, 2026, 12:06pm UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/10 "2026-06-05T12:06:19Z")

</div>

You need to isolate the problem, for example by adding a message card after every card.

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [June 5, 2026, 3:33pm UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/11 "2026-06-05T15:33:39Z")

</div>

Sometimes a flow is corrupted, but not marked as “broken” by Homey.  
One “fix” by Homey is to disable a flow without any comment or suggested fix (how lovely..).

Creating a new flow, like @Wim_Post suggested might just solve it.  
Your flow design is fine though, you should be able to write values to devices quite often, but avoid “extremes” like “every second” I’d say.

---

<div class="post-metadata">

### Author: ![Torulf\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torulf_wiberg/32/121765_2.png) [@Torulf\_Wiberg](https://community.homey.app/u/Torulf_Wiberg)
#### Post date: [June 7, 2026, 9:44am UTC](https://community.homey.app/t/advanced-flow-execution-crashes-homey-pro/155801/12 "2026-06-07T09:44:11Z")

</div>

Well @Peter_Kawa…

The suggestion made by @Wim_Post seems to be on the spot. I copied the configuration to a virgin canvas and lo and behold. I have not had a single crash/restart in two days.  
If this issue has been discussed before without Athom correcting at least the lack of error reporting to the user reflects badly on the ambition of Athom.

@Wim_Post thank you very much for your suggestion, and to @Peter_Kawa for attesting to the fact.
