Homey Community Forum

Creating a flow to divide a day in several time slots, or scheduling app


I’d like build a flow that divides a 24 h in several time slots, eg. for 3 slots

  1. 00 01–0800
  2. 0801-- 1600
  3. 1601- 00 00 hours

The current flow editor allows me to set only 2 slots with the Time is between card in the AND branch and the ‘rest’ in ELSE branch.

Headlong solution would be to let ELSE section start another flow that will further create flows for slots 2 and 3.

How do you build a flow (or as few flows as possible) to achieve this? Or perhaps some kind of scheduling app.

PS I also really miss an IF condition in the THEN section…


Did you look at the solution provided here by @AVP?
Guess it does What you want,
Read it here:

And you can Start a 2nd flow from an Else …
And I guess I have here a Flow with 3 Time-slots (yes, that is the simple max) that starts a 2nd Flow in the Else like you ask…

And Yes a If statement in the Then selection is not possible, you should move then to the Conditions, that looks the same to me unles you want to Execute ActionA and If (SomeOtherCondition) Execute ActionB
but then the Start a Flow would work…
That (multiple flows) also is the way to differentiate for 3 timeslots, as with one If condition you cant have 3 outcomes… a Condition is simple true or false… But imho differentiating beween the 3 timeslots should be done with 2 casceded flows both with one condition:

Flow1 is started, And Time Before 8u00 Then Action1 Else Start Flow2
Flow2 is started And Time Before 16u00 Then Action2 Else Action3


Thanks, I manage to implement it as discussed here.
Have made flows to set Time of day variable (day evening night). It saved mind from wrapping it around the time ranges and can be used in other flows.

Then two flows to branch the logic
    1. If evening :
     Then Start timer
      Else 1.1

    1.1 If night:
            Then Start timer`

And finally the flow to react on the timer reaching zero and turning the lights off.
All in all lots of flows, but the logic is controlling two motion sensors and two different lights therefore it is quite acceptable.

I do miss condition in the else branch thought, even if it’s simple if, it would save flows from growing in numbers like now.