Areas not working with automations

Hello, I noticed in the documentation that you can target an area with a service:

service: homeassistant.turn_on
  area_id: livingroom

However, when I try this with a service in automation editor, I get the following error:
UI editor is not supported for this config:

Key "target" is not supported by the UI editor.

You can still edit your config in yaml.

I would like to turn all lights on or off in an area without having to individually name them. Is this possible?

You answered your own question: