If you are not using core and you were just using the regular routines, then you have to have one routine for each combination that you want. And then you set each up to only run at specific times of day.
So you would have a routine for “I just got home during the day” and a different routine for “I just got home at night.”
Setting all of these up and keeping track of them can get pretty complicated, which is why a lot of people prefer core, where you can just put all the different combinations into one rule (Core calls a rule a “piston”) and they’re easier to keep track of.
But you can definitely do it with just the official routines, it’s just that you have to walk through every possible combination and make sure that the modes are getting set the way you want them to be. And that’s going to require a separate routine for each possible combination.