Time to calculate variables and running flows in Homey

I have a question about the time Homey uses to calculate variables, and running flows.

I have one flow for setting the heating temperature in my house based on the outdoor temperature. The flow sets a variable (SP_temp) to my desired heating temperature. And it runs every 30 minutes.

In the same flow I also calculate some variables that I use for rooms that needs a higher or lower temperature (SP_temp_boost+1, SP_temp_senk-1, and so on..)

Ultimatly I have one flow for each type of heating source in my home (one for panelovens, one for heating pump and one for floor heating). This is runned by a Heating Controller unit that sets the temperature according to us beeing on work/school or at home. But I also have built in a function to change the temperature on the sources if the SP_temp changes before there is a new event in the Heating Controller. For example if the outdoor temperature drops during the day and I need to set up the temperature in the house.

So to my question. In my flow for the floor heating I have set each thermostat to change to different variables. I trigger this with the SP_temp has changed trigger. Is this going to work or is the calculating (in my second screenshot) going to be to slow so it won`t update the SP_temp_boost+1 or SP_temp_senk-2 in time to set the right temperature in the third screenshot?

For your inspiration:

This flow plays sounds on my Homey 2019.
The first card after the start button starts a flow (=this flow) with tag ‘doorbell’
The second trigger will wait 10 seconds and then plays the sound.
Only then the top flow continues to the second card which will play a train whistle.

In short: the top flow will waits until the ‘subroutine’ is finished.

Thanks, but not sure how I can use it in my case. As long as the calculations goes fast enought I don’t need to delay the actions.

Also the flows are quite big with lots of triggers, so i think it then will be quite useless.

But thanks for the inspiration. Could be useful in other cases :slight_smile:

When SP-temp has changed both flows will run. So you need a different trigger to start the latest flow, or call one flow from the other or combine the 2 flows in one flow.

What I ment to say: if you do your calculations in a ‘subroutine’ you are sure the calculations are finished before continuing the flow.

Did some testing now and found out that if I added a 10 second delay after the SP_temp has changed in the last flow, it had enough time to calculate and set the right values.

Be aware that the animation during testing slows down a flow with many seconds. In real life it’s only a split second.