I agree and thx so much for the explanations.
But I still believe the order of the events matters - when turning off the light switch manually, if the second program is triggered after the first program it can't work IMO
When I turn off the light switch, the light status is now Off and I am also causing the motion sensor status to become On (since I am passing by it). So program 1 will trigger (because the motion sensor is now On and the basement light status is now Off) - so the light will turn on.
If Program 2 runs before any of that (because of the light Control is switched off), then program 1 is disabled for 1 minute (in which case the motion sensor status will become Off within that time range) so when reenabling Program 1 after one minute - the conditions of Program 1 are not met anymore so the light won't turn on. If Program 1 is triggered before Program 2 then it would be too late - the light will already have been turned back on.
I am starting to think Control events are handled before Status events which would confirm why it works.
Not trying to be difficult just trying to understand...