Templating a binary sensor for two zones

Tags: #<Tag:0x00007f326e037e18>

I’m looking to add a binary sensor to trigger an automation when I’ve been in either of two places for over 30 minutes.

The first step is to create the binary sensor, but this isn’t working (it’s hanging HA config validation and restarts);

binary_sensor:
  - platform: template
    sensors:
      me_active:
      value_template: "{{ is_state('person.me', 'zone.gym') or is_state('person.me', 'zone.pool') }}"

Solved it, the last line wasn’t indented.