Automation for esphome midea acts wrong...can someone please help

EDIT1:
Turned out that i had to set cooling mode before turning unit on…works now

Hello everyone…

My midea mini split on esphome steroids is working fine, so i created an automation to keep room liveable in case it gets to hot…
It gets triggered but starts the ac in heating mode.
Down below is the config…
Maybe i am just having a noob mistake in it…
Thx for ideas

alias: Keep bedroom fresh
description: Turn on when room over 25C
trigger:
  - type: temperature
    platform: device
    device_id: 569bdd265a4b0227c03b6f6b8a166f74
    entity_id: sensor.ble_temperature_schlafzimmer_a4c13888d685
    domain: sensor
    for:
      hours: 0
      minutes: 0
      seconds: 5
    above: 25
condition: []
action:
  - service: climate.turn_on
    data: {}
    target:
      device_id: 29db89185fda53e7e9425b9a7e403882
  - service: climate.set_temperature
    data:
      hvac_mode: cool
      temperature: 20
    target:
      device_id: 29db89185fda53e7e9425b9a7e403882
  - service: notify.notificationgroup
    data:
      message: Bedroom AC had to be turned on due to excessive heat
      title: Keep Bedroom fresh
mode: queued
max: 10