Hi everybody,
can you please take a look at my automation below and tell me what’s wrong with it?
It is supposed to trigger after 05:00:00, then turn on a boolean; this boolean will be off at that time, because it gets turned off by that automation at 03:00:00.
Then, when the boolean turns on, some actions are supposed to be executed. The automation triggers, but nothing happens; however, if I go to the automation editor and manually run the actions, they do work. So why won’t they run when the automation is triggered?
Thank you for your input
alias: Guten Morgen
description: ""
trigger:
- platform: time
at: "03:00:00"
alias: 03:00 Uhr Boolean Aus
id: aus
- alias: Boolean Ein
platform: state
entity_id:
- input_boolean.guten_morgen
to: "on"
id: gutenmorgen
from: "off"
- platform: state
entity_id:
- binary_sensor.unten_kueche_presence_presence
from: "off"
to: "on"
id: kuechemotion
alias: Küche Motion
condition: []
action:
- if:
- condition: trigger
id:
- aus
then:
- service: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.guten_morgen
alias: Boolean Aus
- alias: Boolean Ein
if:
- condition: trigger
id:
- gutenmorgen
then:
- service: cover.set_cover_position
data:
position: "{{ states(\"input_number.unten_wohnzimmer_rollo_auf\") }}"
target:
entity_id: cover.unten_wohnzimmer
- service: cover.set_cover_position
data:
position: >
{{
states('input_number.unten_arbeitszimmer_rollerblinds_alle_morgens_hoch')
| int }}
target:
entity_id:
- cover.unten_arbeitszimmer_rollorblinds_vorne
- cover.unten_arbeitszimmer_rollorblinds_mitte
- service: cover.set_cover_position
data:
position: "{{ states(\"input_number.unten_arbeitszimmer_rollo_auf\") }}"
target:
entity_id: >-
cover.unten_arbeitszimmer_vorne, cover.unten_arbeitszimmer_mitte,
cover.unten_arbeitszimmer_strasse
- service: cover.set_cover_position
data:
position: >
{{ states('input_number.unten_kuche_rollerblinds_morgens_hoch') |
int }}
target:
entity_id: cover.unten_kueche_rollerblinds
- service: cover.set_cover_position
data:
position: |
{{ states('input_number.unten_kueche_rollo_auf') | int }}
target:
entity_id: cover.unten_kueche
- alias: Küche Motion
if:
- condition: and
conditions:
- condition: trigger
id:
- kuechemotion
- condition: time
after: "05:00:00"
before: "00:00:00"
then:
- service: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.guten_morgen
mode: single