Split system turn on heat or cool mode depending on outside temp

Hey legends. I have a basic automation that i ran in winter which is below. I was wanting in incorporate a cooling option based on temp above say 25 degrees otside, i dont really know how to use trigger ids yet buyt am trying to learn.

thank you

alias: "heating turn on in morning "
description: ""
triggers:
  - trigger: sun
    event: sunrise
    offset: 0
conditions:
  - condition: numeric_state
    entity_id: sensor.alfresco_motion_sensor_temperature
    below: 15
actions:
  - action: climate.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: climate.jake_s_device
  - action: climate.set_temperature
    metadata: {}
    data:
      hvac_mode: heat
      temperature: 22
    target:
      entity_id: climate.jake_s_device
mode: single