# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viking42](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/viking42/32/12687_2.png) [@Viking42](https://community.homey.app/u/Viking42)\
**Post date:** [December 30, 2020, 7:42am UTC](https://community.homey.app/t/inefficient-flow/40088/1 "2020-12-30T07:42:32Z")

</div>

Hi,

I have a nice flow here, works fine,

but i suspect its highly inefficient,  
This sending an order to the thermostat every 15minutes will empty the thermostat batteries, and create unecessary signals.

Is there something else i could put in the “when” that would make the flow more streamlined?

- “This flow is started” is probably not okay as its for manual triggering only?
- “the time is 07h30” would probably trigger it only once a day while the flow needs to be triggered twice a day

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/f/4ff0701d0c58b98c9260daa0b07cddbf38329e69.png)

---

<div class="post-metadata">

**Author:** ![Martin\_Tschanun](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_tschanun/32/30688_2.png) [@Martin\_Tschanun](https://community.homey.app/u/Martin_Tschanun)\
**Post date:** [December 30, 2020, 8:03am UTC](https://community.homey.app/t/inefficient-flow/40088/2 "2020-12-30T08:03:33Z")

</div>

Hi  
why you not create two flows:  
at 7.30 set temp to 22  
at 17 set temp to 19.5

---

<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)
