Open Windows and Doors Automation, that considers outdoor temperature

First off I’m still fairly new to Home assistant, but I have an automation that sends notifications if the Air Conditioner is on and a window or door is open for 30 minutes. It seems to work well, but what I would like to do now is to have a condition that only allows it to send the notification if the outside temperature (from the weather attribute?)is greater than the inside temperature ( from my smart thermostat-ecobee).

Not really sure where to start with something like that. Any help is appreciated. See below for my current automation.

alias: HVAC Running with Windows/Doors Open-AC
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.house_windows_and_doors
    to: "on"
    for:
      hours: 0
      minutes: 30
      seconds: 0
    from: "off"
condition:
  - condition: device
    device_id: 1
    domain: climate
    entity_id: 2
    type: is_hvac_mode
    hvac_mode: cool
action:
  - metadata: {}
    data:
      message: Windows or Doors open while AC is running
      title: CLOSE THE WINDOWS AND DOORS!
    action: notify.notify
mode: single

That can be accomplished with a Numeric State Condition like the following:

  alias: Check if it is cooler outside
  condition: numeric_state
  entity_id: weather.EXAMPLE
  attribute: temperature
  below: sensor.EXAMPLE_TEMP

Where to start is to figure out if you already have a temperature sensor entity from your thermostat integration. If you do, you can just copy/paste your entity IDs into the example above. If not, you will need to create one using a Template Helper with a State template like:

{{ state_attr('climate.EXAMPLE', 'current_temperature') }}

Sorry for the late reply but thank you for the info. Ill give this a try tonight and let you know if I have any other issues

Pleased to say this is now working, Thanks for your help!