Automation condition on another automation running

Hi Guys

I am trying to do some light automation, in have done an automation for turning om some ligt when there is movement and the light level is low enough.
I then have a script that turns the light off when there has been no movement for a time.
Problem is when i have turned on the light manually, then turn-off automation still turns the light off, and that is not always good :slight_smile:
Is there a way to make the turn-off script have the other light automation as a condition ?
So that the turn-off automation only rund when the light automation runs.

Regards Jens

I don’t know if it helps you but I just now posted a suggestion to another person asking almost the exact same question in another thread: