Automation with response_variable and if statement

Hi Guys,
I want to get train my skill in automation and want to use the response_variable after a service call in an if statement, but always i got an error, is someone here to can help me?

I just want simple call a service use the response in my if statement to check is the weather today above 24. but what is wrong or it isn’t possible? for run notify it is working

alias: Abdunkeln
description: ""
trigger:
  - platform: time
    at: "11:00:00"
condition:
  - condition: numeric_state
    entity_id: weather.home
    attribute: temperature
    above: 20
action:
  - device_id: 07b81e29fa845ff346eda6a3108ceb30
    domain: cover
    entity_id: 472cbae5e6d100db145fc97b83303d1d
    type: close
  - device_id: d5958b4bc30c29f88c9c35433a22debb
    domain: cover
    entity_id: cover.wohnzimmer_rolladen
    type: close
  - service: weather.get_forecasts
    target:
      entity_id: weather.home
    data:
      type: daily
    response_variable: wheater_test
  - service: notify.notify
    data:
      message: >-
        Heute wird es über {{
        wheater_test['weather.home'].forecast[0].temperature }} Grad, ich werde
        die Südseite abdunkeln      
      title: Wird heiß heute
  - if:
      - condition: template
        value_template: "{{ wheater_test['weather.home'].forecast[0].temperature > 24 }}"
    then: []
mode: single

It you want to only send that notification if the temperature is above 24 degrees, you need to place it in the then block, not before the ifaction:

  - if:
      - condition: template
        value_template: "{{ wheater_test['weather.home'].forecast[0].temperature > 24 }}"
    then:
      - service: notify.notify
        data:
          message: >-
            Heute wird es über {{ wheater_test['weather.home'].forecast[0].temperature }} 
            Grad, ich werde die Südseite abdunkeln      
          title: Wird heiß heute

I want to use it for control window cover and send message, but the test always failed, so I thought i make a mistake

Which test always fails?