Weather is sunny for 45 minutes

Hello,

I would like my HA to always check on the hour in the morning if the outside temperature is greater than 7 degrees and if the sun has been shining for more than 45 minutes. I have the following configuration in my automation for this

alias: KLIMA Fußbodenheizung bei Sonne abschalten
description: ''
trigger:
  - platform: time
    at:
      - '08:00:00'
      - '09:00:00'
      - '10:00:00'
      - '11:00:00'
      - '12:00:00'
condition:
  - condition: numeric_state
    entity_id: sensor.netatmo_zuhause_wohnzimmer_balkon_temperature
    above: '7'
  - condition: state
    entity_id: weather.dwd_weather_city
    state: sunny
    for:
      hours: 0
      minutes: 45
      seconds: 0

Although the sun has been shining all day, it breaks my automation at this point:

grafik

grafik

What is my problem?

Thanks a lot
Loki

This probably isn’t it, but I’m not sure as my instance is in English.

Is the state provided by the sensor actually “sunny” or is it “Sonnig”?

I think it should be “sunny” if I can see it that way in the developer tool, right?

grafik

Correct.