I'm stupid...forgot how triggers work...
This commit is contained in:
+20
-16
@@ -199,7 +199,16 @@ automation:
|
|||||||
at: 00:00
|
at: 00:00
|
||||||
id: midnight
|
id: midnight
|
||||||
action:
|
action:
|
||||||
- service: script.kallen_school_reset
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: day_end
|
||||||
|
then:
|
||||||
|
- service: script.kallen_school_reset
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: midnight
|
||||||
|
then:
|
||||||
|
- service: script.kallen_school_reset_late
|
||||||
|
|
||||||
- id: a6eeb075-d21b-436c-983f-39188ee9b016
|
- id: a6eeb075-d21b-436c-983f-39188ee9b016
|
||||||
alias: Work Reset
|
alias: Work Reset
|
||||||
@@ -255,21 +264,16 @@ script:
|
|||||||
|
|
||||||
kallen_school_reset:
|
kallen_school_reset:
|
||||||
sequence:
|
sequence:
|
||||||
- if:
|
- service: input_boolean.turn_off
|
||||||
- condition: trigger
|
entity_id:
|
||||||
id: day_end
|
- input_boolean.school_today
|
||||||
then:
|
- input_boolean.kallen_two_hour_delay
|
||||||
- service: input_boolean.turn_off
|
- input_boolean.kallen_school_cancelled
|
||||||
entity_id:
|
|
||||||
- input_boolean.school_today
|
kallen_school_reset_late:
|
||||||
- input_boolean.kallen_two_hour_delay
|
sequence:
|
||||||
- input_boolean.kallen_school_cancelled
|
- service: input_boolean.turn_off
|
||||||
- if:
|
entity_id: input_boolean.school_today_extended
|
||||||
- condition: trigger
|
|
||||||
id: midnight
|
|
||||||
then:
|
|
||||||
- service: input_boolean.turn_off
|
|
||||||
entity_id: input_boolean.school_today_extended
|
|
||||||
|
|
||||||
tina_work_today:
|
tina_work_today:
|
||||||
sequence:
|
sequence:
|
||||||
|
|||||||
Reference in New Issue
Block a user