"group" lights - display if a light in a group is on

Is there a built-in (easy) way to do the following:

Have a “group” of lights that will display as “on” if any single light is on, otherwise display as “off”. I would use this for “upstairs lights” or “basement lights”. Would also want to be able to toggle a group that is on (i.e. has 1 or more lights not off) to off thereby turning all lights off.

That is exactly how the group function works. Once one entity in the group is on, the group is on. If you turn the group off, it will turn all entities off (whether they’re on or not)

I have been using groups to “pair” switches. I didn’t even think through how they might work otherwise.

Thanks!