How to use new Area card in yaml mode?

Hey, just a quick question:
In the release notes of the 2021-12 update i read that a new area card was introduced. But i can’t seem to find the documentation about it. I would love to use it in my dashboard but i don’t know how to add it as i am using yaml mode.

i appreciate all hints :slight_smile:

    cards:
      - type: area
        area: bathroom

Replace with your area. There is no more configuration than this at the moment.

Ok, cool thanks. I tried this but it just shows an error: Area not found

I even created a new area called “Test” and added some devices as my other areas have some characters like “ü” in it. But still getting the same error with the Test area.

It’s right to refer to the area by its name or is there an area id or something like that?

I added the card in the GUI, selected the area in the GUI dropdown and then switched to YAML mode to get the YAML. There is no area_id in it, it’s just the name of the area. Does doing a reload of the webpage fix it? You should probably make sure it is lowercase though, because everything in home assistant is lowercase, even if the friendly name is not.

Lowercase did the trick, thanks for the help! :slight_smile:

1 Like