saw this WTH are floors and areas useless - #5 by Mariusthvdb in another WTH, and made me look for floor_entities().
but, they’re still not there… seem to remember core dev talk about adding that essential functionality to the template engine, must have gotten lower on the priority list.
Please up that, it would truly be very welcome.
I am aware we can do hacky things like
{{['dorm','aanbouw','woongedeelte']|map('floor_areas')|sum(start=[])
|map('area_entities')|sum(start=[])
|select('in',label_entities('binnenlamp'))
|select('is_state','on')|list|sort}}
to list the entities in all areas that make up that floor…but how much better would it be to do
{{ floor_entities('begane_grond')
|select('in',label_entities('binnenlamp'))
|select('is_state','on')|list|sort}}