The idea behind is simplest: when we are at night AND(!!!) door sensor sensed the door opening - switch the light in the coridor on.
But as I can see the lights are switched on either on night arrival or on door opening. That means - the lights switch on when the night arrives.
Why??? The condition clearly says AND! Or at least I think it says so, but…
Please, any help will be highly appreciated…
So right now, the Day or Night is reporting 1 (whatever that means), and since your test is for 0, the result of the condition is false (showing (false) as of 06:36:47; the 1 in front of that is the current value from the Day or Night device Status variable).
The door sensor, where you are testing for “1”, is currently at a value of 0, so that condition is also false as of yesterday at 11am.
Watch how these change. If the light comes on when you don’t expect it, go visit this and see what status the devices are in, and check your logic (both as written and what you expect from these devices).
Maybe check My Modes and see if your “armed” sensor is set by default to trigger anything. Check “what to do if an armed sensor trips”. You Day or Night may be considered a sensor.
If you are using Day Night plugin (I don’t have this) it might have defaulted something in sensors being armed to trigger actions you might not be seeing.
I personally would remove Day Night plugin if that is what you are using and use the built-in Sunrise/Sunset in Reactor.