Template helper - exclude specific rooms

Hello everybody,

i have a helper with the folowing template

{{ set(states.light
       |selectattr("state","eq","on")
       |map(attribute="entity_id")
       |map("area_name")
       |list) }}

is there a chance to exclude specific rooms or could i do it if i only want to select those rooms where a label “display” is set?

Thanks for your help

Cheers
Grisu