Notify service not executed in automation

Hi,
I have a strange error in on of my automations. The automations will be executed as it should, but one action (the first one) will not be executed and just skipped.

Here is my automation:

alias: Energy - Batterie-Einspeisung ausschalten
description: ""
trigger:
  - platform: sun
    event: sunrise
    offset: "00:30:00"
condition: []
action:
  - service: notify.mobile_app_mi_9t
    data:
      message: >-
        In den letzten 24h wurden
        {{states.sensor.batterie_entladen_last_24h.state}}kWh eingespeist.
      title: Einspeisung ausgeschaltet
  - type: turn_off
    device_id: 6fcdb0da7904996011f7ca25b616bd25
    entity_id: switch.shelly_batterie_einspeisung_switch_0
    domain: switch
  - service: automation.turn_on
    data: {}
    target:
      entity_id: automation.battery_ladegerat_einschalten
mode: single

The strange thing is, that when I manually execute the automation, the notifiy action is running as expected.

Any ideas whats the wrong?

Debug shows also that this part did not run (running_script: false)

I don’t see where it says it didn’t run.

Isn´t “running_script: false” the indicator that this part did not run?
But anyways, I do not get the message…

Problem is solved now!
I duplicated the automation to try some changes and for some reasons the duplicated one is now working. Technially it is exactly the same as before but with different ID/name.
So, not sure what was the problem, but I guess it was just a system internal hickup…

No. That just means it’s not running now