2 flows error

Good evening,

I hope you can help. We have spotlights on the driveway. We want these to be on every night from 6:00 PM to 1:00 AM (and then go out). If the contact alarm on the driveway goes off between 01:00 and 07:00, we want the spotlights to turn on and then turn off after 5 minutes.

We now have the following flows

If
The time is 6:00 PM
Then
Turn on spotlights

If
The time is 01:00
Then
Turn off spotlights

If
The contact alarm goes on
And
The time is between 01.00 AM and 07.00 AM
Then
Turn on spotlights

If
The contact alarm goes on
And
The time is between 01.00 AM and 07.00 AM
Then
Turn off spots after 300 sec

But apparently something is wrong. The spots switch on at 6:00 PM, but if the contact alarm goes off between 6:00 PM and 1:00 AM, the spots go out (and don’t turn on any more). However, this is not visible in the log of the flow and it even says that the spots are still on…

What goes wrong here? It seems that the contact alarm is causing a malfunction, but apart from the flows mentioned above, the contact alarm does not return in any other flow.

What kind of flows could I possibly use to make it run better?

Many thanks!

Hm, you wrote:

And both flows, no. 3 and 4, say:

So in the description there are already different conditions. For this reason it’s always better to post (share or screenshot out of the web app) the original flows.

You can easily check if the contact sensor is working properly in the Homey app:
Open door = yellow exclamation mark appears in the device tile
Close door = yellow exclamation mark goes out

Also, you could check if there are other flows related to the door/window sensor. Maybe there are overlaps.

Another hint: With some contact sensors you can invert the open/closed function.