Turn off outside lights when I turn any inside light on?

The title sums this one up pretty well, I’m trying to come up with the neatest way to automate this.

I have automations that turn my outside (and 1 inside light) when I get home. I would then like to have the outside lights turn off when I turn on any of my inside lights (apart from the one which turns on with the coming home automation).

The best way I can think of is to set up a few specific groups and using the state of the group as the trigger?
Otherwise, a myriad of conditions and triggers…

Yeah, just have a group called indoor_lights, and a group called outdoor_lights.

Put all your indoor lights (edit - minus the indoor light you want to keep on) in the former, all your outdoor lights (edit - plus the indoor one you want to keep on) in the latter, then an automation that triggers when indoor_lights switch on, and actions turning off outdoor_lights. :thumbsup: