Open RF based garage door when I arrive home

I am trying to get this automation to work so that when I arrive home and the contact sensor on the gate is closed, the Broadcom RF sends the signal to my gate to open. The Gate is a dumb one-button open/close RF remote, so I added the contact sensor, which checks that the gate is closed before sending the RF command (otherwise, if the gate is opened, it will start closing when I reach home).

However, this is not working and I’m not sure why.

alias: arriving home
description: ""
  - platform: zone
    entity_id: device_tracker.15_pm
    zone: zone.home
    event: enter
  - type: is_not_open
    condition: device
    device_id: xxxxxxxxxxxxxxxxxxxxxxxx
    entity_id: xxxxxxxxxxxxxxxxxxxxxxxx
    domain: binary_sensor
  - service: remote.send_command
    metadata: {}
      device: Gate
      command: Power
      device_id: xxxxxxxxxxxxxxxxxxxxxxx
mode: single