# Inefficient flow

**URL:** <https://community.homey.app/t/inefficient-flow/40088>\
**Category:** Questions & Help\
**Created:** [December 30, 2020, 7:42am UTC](https://community.homey.app/t/inefficient-flow/40088 "2020-12-30T07:42:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [December 30, 2020, 8:21am UTC](https://community.homey.app/t/inefficient-flow/40088/4 "2020-12-30T08:21:56Z")

</div>

The solution of @Martin_Tschanun will work fine.  
After this optimization you will probably find the need to optimize more:  
How about weekends? Same time?

I am a big fan of splitting up flows (see my post [“how to structure your flows”](https://community.homey.app/t/how-to-structure-your-flows/25109)

So to make it future proof and understandable, split it up:  
Make separate flows for setting the temperature (like Martin proposed) but start them with “when this flow is started” or a virtual device.

And create two flows started by the times, these will trigger the flows create above.

Advantage: when you decide to have a different weekend routine, just add another flow with the desired day and time (and exclude that day and time from the other flow)

And you are futureproof: even if you have a different time for every day. If you want to change the desired temp to 21c, you only need to change just one flow.

I use virtual devices tomstart the flows  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9d1b6e51763a207ce6b4daaf09187187e3250c24.png)

---

_[View the full topic](https://community.homey.app/t/inefficient-flow/40088)._
