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)