Best way to do an automation condition for "all binary_sensors in label are on"

I’m currently doing a template conditional to count the number of on entities:

{{
  label_entities("ground_level_windows_doors")
  | expand
  | selectattr('state', 'eq', 'on')
  | list
  | count
  > 0
}}

that looks good to me…

but if you’re not looking for all sensors and that’s just asking if any are on. you could do a group sensor, put all of them in the group and condition on whether that group is on.

I use the same set of sensors for a few different things and labels are a lot easier to manage across the UI than editing a group.

I guess I should file a FR to be able to create a Group from a Label :slight_smile: