Group query

I’m trying to set up a notification to message me if any lights (one or more) are left on in an all lights group is left on. I am therefore wondering what logic I believe its not working because it expects ALL lights to be on. Therefore I assume I want an automation that requires ANY within group. What should the logic look like. Appreciate any advice.

By default the group will be on if at least one member of the group is on, otherwise off. If this is not the case, you may have the all entities option enabled. You can turn it off in the group options setting for the group in the UI.

Thanks I assumed it was all or nothing. Appreciated