Add input boolean for school cancellation #38

This commit is contained in:
2022-09-14 15:09:03 -04:00
parent 3bffdf2533
commit b6b76f264b
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,9 @@ input_boolean:
kallen_two_hour_delay: kallen_two_hour_delay:
name: Kallen Two Hour Delay name: Kallen Two Hour Delay
icon: mdi:bus-clock icon: mdi:bus-clock
kallen_school_cancelled:
name: Kallen School Cancelled
icon: mdi:calendar-remove
input_datetime: input_datetime:
school_first_day: school_first_day:
@ -242,6 +245,7 @@ automation:
entity_id: entity_id:
- input_boolean.school_today - input_boolean.school_today
- input_boolean.kallen_two_hour_delay - input_boolean.kallen_two_hour_delay
- input_boolean.kallen_school_cancelled
- if: - if:
- condition: trigger - condition: trigger
id: midnight id: midnight

View File

@ -596,6 +596,10 @@ kallen_two_hour_delay:
kallen_school_cancelled: kallen_school_cancelled:
alias: Kallen School Cancelled alias: Kallen School Cancelled
sequence: sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.kallen_school_cancelled
- service: input_boolean.turn_off - service: input_boolean.turn_off
data: {} data: {}
target: target: