WTH Be able to use floors as areas

I would like to be able for example to select all the lights on a floor to turn them off and also see how to turn off the lights in a room for example

You can use floors in actions (to turn on/off the whole floor). I’m not sure if the area card accepts floors either.

As Petro said, this is possible using the “Choose area” option in any target selector, then click the floor name:

In YAML the same action is configured as follows:

action: light.turn_off
metadata: {}
data: {}
target:
  floor_id: first_floor