From 35e5891f5e274f31b90df2e07dd234d0c4ee7d92 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 4 Sep 2024 15:01:59 -0400 Subject: [PATCH] Add start of school year automation --- packages/school.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/school.yaml b/packages/school.yaml index 8ecb285..e4afb0b 100644 --- a/packages/school.yaml +++ b/packages/school.yaml @@ -288,6 +288,17 @@ automation: target: entity_id: input_boolean.school_today_ran + - id: 59ae3bfe-5c58-4ff4-aaf5-7b76fd0ac442 + alias: Start of School Year + initial_state: true + trigger: + - platform: template + value_template: "{{ states('sensor.school_start_days2go') | int == 1 }}" + action: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.school_in_session + - id: 05ee0f8d-5411-4486-8acf-9bfadad2b23a alias: End of School Year initial_state: true