Advanced flow - light time control dont work

Hi, first of all pls excuse my bad english, its not my native language.

so here is my problem: i created an advanced flow. it will get startet by turn on or off a lamp. then a timer should check every 5 minutes if actual time ist between, lets say 23.00 in the evening and 6.30 in the morning. if thats true switch the lamp on, otherwise switch it off.

i hoped that the switch on or off in the end will lead the flow to the start again, creating someting like a loop but what really happend is - nothing.

A test shows, that the flow runs 1 time like expected but then stops at the end command (on or off) it will NOT return to the original condition.

here is the flow:

so can someone get me on the rail???

thank you very much in advice :slight_smile:

First: the timer-card will not wait for 5 minutes and then continue the flow. You should use a trigger (WHEN-card) ‘timer 2 ends’. Or use the ‘wait 5 minutes’-card.

Let’s say that you turn the light on at 22:00. After 5 minutes it’s 22:05. So the card ‘it’s between 20:00 and 6:00’ is true. So the light is turned on. But the light is already on. So nothing happens and the flow will not be restarted.

Oh, I understand…thank you very much!