Error creating automation - Keep getting "Message malformed: must contain at least one of below, above."

I feel like I am going crazy here but I am so basic with this I am definitely missing something obvious.

I just want an automation to trigger when the battery of my tablet falls below 20%. Currently this is my trigger:

platform: numeric_state
entity_id:
  - sensor.fully_kiosk_james_office_battery
below: 20

But whenever I try to save I get the following error message:

Message malformed: must contain at least one of below, above.

Hi chewitt86,

With YAML, indentation and spacing are vital to the interpreter to know what the context is.
In this case you need to indent the entity_id: and the below: key. check in the docs to see this.

Automation Trigger - Home Assistant.

The Best way I know of to learn HA YAML is to build some automations and scripts with the UI editor, then look at the ‘edit as YAML’ button to see what it created. Also looking at peoples blueprints will give you lots of tips and tricks.

No need for: