Move school modifier scripts to automations using toggles #68
This now uses the toggles directly to control the mode, rather than having to push a button which then turns them on just for context.
This commit is contained in:
@ -276,6 +276,76 @@ automation:
|
||||
- service: script.turn_on
|
||||
entity_id: script.school_year_over
|
||||
|
||||
- id: 068c20ee-23ba-4cd5-af31-dcfff7bdbfed
|
||||
alias: Kallen Two Hour Delay
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.kallen_two_hour_delay
|
||||
state: 'on'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.kallen_band_practice
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.kallen_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.house_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.master_bedroom_scheduling_morning
|
||||
mode: single
|
||||
icon: mdi:bus-clock
|
||||
|
||||
- id: f8ecfc73-cb78-42b6-9b21-e17ef1e72741
|
||||
alias: Kallen School Cancelled
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.kallen_school_cancelled
|
||||
state: 'on'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.kallen_two_hour_delay
|
||||
- input_boolean.school_today
|
||||
- input_boolean.school_early_release
|
||||
- input_boolean.school_today_extended
|
||||
- input_boolean.kallen_school
|
||||
- input_boolean.kallen_band_practice
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.kallen_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.house_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.master_bedroom_scheduling_morning
|
||||
mode: single
|
||||
icon: mdi:calendar-remove
|
||||
|
||||
script:
|
||||
kallen_school_today:
|
||||
alias: 'Kallen School Today'
|
||||
@ -321,72 +391,6 @@ script:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.kallen_band_practice
|
||||
|
||||
kallen_two_hour_delay:
|
||||
alias: Kallen Two Hour Delay
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.kallen_two_hour_delay
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.kallen_band_practice
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.kallen_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.house_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.master_bedroom_scheduling_morning
|
||||
mode: single
|
||||
icon: mdi:bus-clock
|
||||
|
||||
kallen_school_cancelled:
|
||||
alias: Kallen School Cancelled
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.kallen_school_cancelled
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.kallen_two_hour_delay
|
||||
- input_boolean.school_today
|
||||
- input_boolean.school_early_release
|
||||
- input_boolean.school_today_extended
|
||||
- input_boolean.kallen_school
|
||||
- input_boolean.kallen_band_practice
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.kallen_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.house_scheduling_morning
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: script.master_bedroom_scheduling_morning
|
||||
mode: single
|
||||
icon: mdi:calendar-remove
|
||||
|
||||
kallen_school_reset:
|
||||
alias: 'Kallen School Reset'
|
||||
sequence:
|
||||
|
Reference in New Issue
Block a user