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
}}
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