Condition not becoming true

Richard, one condition is not becoming true and has a year 1999 last become true status! It is weird because all of its triggers and dependant conditions are true and not this one. It has been working fine for months and suddenly when I added another condition, it stop working. Any clue?

After reading that whole expression … it turns out this is false because of the last part:

NOT(06:30:00; bedroom_open; 10:30:00)

NOTE:
You can reduce:
(bedroom_is_closed;bedroom_open) AND bedroom_open

To just:
bedroom_open

If it is open than it has to have been after it was closed!
[hr]
I wonder if there is an easier way to simplify this by decomposing this into multiple statements.
Maybe something like:

LightsOut Bedroom_off and vreo_lamp_off and mirid_lamp_off
NightMotion LightsOut and (is_night; bedroom_open)
NightLightOn NOT (06:30:00; NightMotion; 10:30:00)

I think this is easier to comprehend.

By the way where are you located that 10:30 can still be considered night ?

Richard, thank you.

I do not decompose it because I am trying to have the less conditions possible. I already have like 50!

About the night at 10.30, it was just for opening a greater window hehe, it was a BIG precaution.