As far as the routines, could you nest conditions into their own paragraphs. For instance, I have two multi-sensors in my living room at different areas:
If
Time = 4:00PM to 7:00PM
and
Location = Home
and
Mode = Home or Entertaining
And
[(Livingroom sensor1 = Motion Detected
And
Living room sensor 1 = Lux <= 10)
Or
(Livingroom sensor2 = Motion Detected
And
Living room sensor 2 = Lux <= 10)]
Then
Turn on Living Room Laps and dim to 50%