I propose additional scenario conditions for discussion
Control the state of smart devices (for example, the switch is on or the door is open) at the moment when the scenario should be triggered (time offset 0) or if at the moment the scenario is triggered the switch was turned on X time ago (time offset X). That is, when executing events that are currently available, under the “AND” condition control the state of the necessary devices and have the option of not executing the scenario if the switch is on or the door is open or something similar.
The situation at the moment: the lighting in the corridor is turned on by the scenario when the door is opened. When I am going to go outside, I turn on the light manually, open the door, wait for some time for the scenario to start, turn off the light manually. At the same time, quite often the scenario turns it on again after turning off the light and I have to turn off the light manually again. With the additional condition that I described at the beginning, I want to get rid of such inconvenience.